This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /System/Library/CoreServices/Spotlight.app/Contents/MacOS | |
| sudo cp Spotlight Spotlight.bak | |
| sudo perl -pi -e 's|(\x00\x00\x00\x00\x00\x00\x47\x40\x00\x00\x00\x00\x00\x00)\x42\x40(\x00\x00\x80\x3f\x00\x00\x70\x42)|$1\x00\x00$2|sg' Spotlight | |
| cmp -l Spotlight Spotlight.bak | |
| sudo codesign -f -s - Spotlight | |
| sudo killall Spotlight |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This gist is compatible with Ansible 1.x . | |
| # For Ansible 2.x , please check out: | |
| # - https://gist.github.com/dmsimard/cd706de198c85a8255f6 | |
| # - https://github.com/n0ts/ansible-human_log | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Canvas Hexagonal Map</title> | |
| <style type="text/css"> | |
| canvas { | |
| border:0; | |
| display:block; | |
| margin:0 auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hotfixx() { | |
| git stash | |
| git flow hotfix start $1 | |
| git stash pop | |
| git commit -am "$2" | |
| export GIT_MERGE_AUTOEDIT=no | |
| git flow hotfix finish -Fn $1 | |
| unset GIT_MERGE_AUTOEDIT | |
| git push origin develop | |
| git push origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| killall -KILL SystemUIServer | |
| killall -KILL SystemUIServer &> /dev/null | |
| echo "Press CTRL+C when format changes." | |
| if [ -z "$1" ]; then format="YYYY.MM.dd HH:mm:ss"; else format="$1"; fi | |
| while true | |
| do | |
| defaults write com.apple.menuextra.clock "DateFormat" "$format" | |
| done |
NewerOlder