This file contains 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 | |
apt-get update && apt-get upgrade -y | |
apt-get install -y vim git ruby ruby-dev nodejs build-essential \ | |
git libssl-dev libpam0g-dev zlib1g-dev \ | |
dh-autoreconf | |
git clone https://github.com/shellinabox/shellinabox.git | |
cd shellinabox | |
autoreconf -i |
This file contains 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 | |
set -e | |
echo "This tool will create a new sudo user." | |
echo "================================================" | |
echo "" | |
echo "Choose username:" | |
read NEWUSER | |
echo "Choose password:" |
This file contains 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
ColorColumn used for the columns set with 'colorcolumn' | |
*hl-Conceal* | |
Conceal placeholder characters substituted for concealed | |
text (see 'conceallevel') | |
*hl-Cursor* | |
Cursor the character under the cursor | |
*hl-CursorIM* | |
CursorIM like Cursor, but used when in IME mode |CursorIM| | |
*hl-CursorColumn* | |
CursorColumn the screen column that the cursor is in when 'cursorcolumn' is |
This file contains 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
ColorColumn used for the columns set with 'colorcolumn' | |
*hl-Conceal* | |
Conceal placeholder characters substituted for concealed | |
text (see 'conceallevel') | |
*hl-Cursor* | |
Cursor the character under the cursor | |
*hl-CursorIM* | |
CursorIM like Cursor, but used when in IME mode |CursorIM| | |
*hl-CursorColumn* | |
CursorColumn the screen column that the cursor is in when 'cursorcolumn' is |
This file contains 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 is the default configuration file. Enabling and disabling is configured | |
# in separate files. This file adds all other parameters apart from Enabled. | |
inherit_from: | |
- enabled.yml | |
- disabled.yml | |
# Common configuration. | |
AllCops: | |
# Include common Ruby source files. |
This file contains 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
# Changes the background color of | |
# iTerm window using applescript | |
# | |
# @param colorMatrix {Object} -- {100,0,0} | |
# | |
# @usage adjustBackground "{100,0,0}" | |
adjustBackground() { | |
osascript -e "tell application \"iTerm\" | |
set current_terminal to (current terminal) |
This file contains 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/ruby | |
cmds = [ | |
# "SPInstallHistoryDataType", | |
"SPBluetoothDataType", | |
# SPNetworkLocationDataType, | |
# SPDiagnosticsDataType, | |
# SPUSBDataType, | |
# SPSoftwareDataType, | |
#SPCameraDataType, |
This file contains 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
defaults -currentHost read -g | grep -oP 'keyboard.modifiermapping.\K([0-9-]*)' |
This file contains 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
[37;46;1mTest file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/agent.js[0m | |
[33m# userAgent() tests[0m | |
[32;1mPASS[0m Default user agent matches /CasperJS/ | |
[32;1mPASS[0m [36muserAgent()[0m tests [32;1m(3 tests)[0m | |
[32;1mPASS[0m Subject is strictly true | |
[32;1mPASS[0m Default user agent matches /plop/ | |
[37;46;1mTest file: /Users/igolden/apps/SeekerLocal/node_modules/casperjs/tests/suites/casper/alert.js[0m | |
[33m# alert events[0m | |
[32;1mPASS[0m alert events [32;1m(1 test)[0m | |
[32;1mPASS[0m alert event has been intercepted |
This file contains 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
sudo su | |
sudo apt-get update && sudo apt-get upgrade -y | |
sudo apt-get install git -y && sudo apt-get install wget -y | |
sudo apt-get install make -y | |
sudo apt-get install postgresql postgresql-contrib libpq-dev -y | |
sudo apt-get install nodejs -y | |
sudo apt-get install nginx | |
wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz | |
tar -xzvf chruby-0.3.9.tar.gz |