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 | |
| airodump-ng-oui-update |
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
| // Go to mongo terminal | |
| // mongo [IP]:[PORT] | |
| db.adminCommand("listDatabases").databases.forEach(function(d) { | |
| if(d.name!="admin" && d.name!="local" && d.name!="config") { | |
| db.getSiblingDB(d.name).dropDatabase(); | |
| } | |
| }); |
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 | |
| ### NsLookup the email server | |
| PING_DOMAIN=email.com | |
| PING_NAME=someone | |
| nslookup -type=mx $PING_DOMAIN | |
| # Server: 4.2.2.2 | |
| # Address: 4.2.2.2#53 | |
| # |
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 | |
| INTERFACE=en0 | |
| NETWORKNAME="Target Network Name" | |
| # Turn on wifi if it's turned 'Off' | |
| if [ $(networksetup -getairportpower $INTERFACE | grep -c 'Off') = '1' ] | |
| then $(networksetup -setairportpower $INTERFACE on) | |
| fi |
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
| pg_ctl -D /usr/local/var/postgres9.5 -l /usr/local/var/postgres9.5/server.log start |
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/sh | |
| # http://moxtsuan.hatenablog.com/entry/2016/06/28/151900 | |
| # dyld: Library not loaded: /usr/local/opt/ruby/lib/libruby.2.3.0.dylib | |
| # Referenced from: /usr/local/bin/vim | |
| # Reason: Incompatible library version: vim requires version 2.3.1 or later, but libruby.2.3.0.dylib provides version 2.3.0 | |
| # OR | |
| # dyld: Library not loaded: /usr/local/opt/ruby/lib/libruby.2.3.0.dylib | |
| # Referenced from: /usr/local/bin/vim |
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/sh | |
| git config --global push.default current |
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/sh | |
| # To list all gpg keys | |
| gpg --list-keys | |
| gpg --list-secret-keys --keyid-format LONG | |
| # To set git gpg sign | |
| git config --global user.signingkey $SECRET | |
| git config commit.gpgsign true |
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
| FROM ensogo/passenger-ruby23:0.9.18 | |
| MAINTAINER [email protected] | |
| ENV HOME /root | |
| CMD ["/sbin/my_init"] | |
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
| RUN apt-get update | |
| # Upgrade Passenger |
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
| (function setOnPushStateFunction (window, history){ | |
| var pushState = history.pushState; | |
| history.pushState = function(state) { | |
| if (typeof window.onpushstate === 'function') { | |
| history.onpushstate({ state: state }); | |
| } | |
| return pushState.apply(history, arguments); | |
| } | |
| })(window, window.history); |