From here.
Run git config --global --edit and add the following under the [alias] section.
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
| save = !sh -c 'export PREV=$(git symbolic-ref HEAD|cut -d/ -f3-) && git checkout -b "$1" && git commit -am "$1" && git checkout "$PREV"' - |
| package com.sam016.vsflatomation.service.ble; | |
| import java.util.HashMap; | |
| import java.util.UUID; | |
| public class AllGattCharacteristics { | |
| private static HashMap<String, String> attributes = new HashMap(); | |
| static { | |
| attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name"); |
| # Flush DNS Cache | |
| alias flushdns="sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder && echo 'DNS Cache cleared!'" |
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
From here.
Run git config --global --edit and add the following under the [alias] section.
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
| # Mixings from: | |
| # https://www.clayharmon.com/words/posts/enabling-gzip-compression-on-ec2 | |
| # http://www.samaxes.com/2008/04/htaccess-gzip-and-cache-your-site-for-faster-loading-and-bandwidth-saving/ | |
| # http://www.tonmoygoswami.com/2013/05/how-to-enable-gzip-on-amazon-elastic.html | |
| # ------------------------------------------------------------------------------ | |
| # | Compression | | |
| # ------------------------------------------------------------------------------ | |
| <IfModule mod_deflate.c> |
| mkdir em && robocopy em node_modules /MIR | |
| rmdir em && rmdir node_modules |
| /** | |
| * Merge two JS Objects | |
| * | |
| * returns a new Object with values of | |
| * first and second added to each other. | |
| * | |
| * Note: | |
| * Object items should only have integers for values | |
| * ..otherwise, boom! | |
| */ |