Update VirtualBox add-ons: sudo /etc/init.d/vboxadd setup
Get direct public link to Google Drive file:
- Make Google Drive folder public
- Navigate to folder (e.g.
https://drive.google.com/#folders/0B1POFdXy77b6RWR6ai1IN2hCQ00
) - Direct link folder will be
https://googledrive.com/host/{folder ID}
(e.g.https://googledrive.com/host/0B1POFdXy77b6RWR6ai1IN2hCQ00
) - Copy link to file
set DIR=%TEMP%\mysql\mysql-connector-c-noinstall-6.0.2-winx64
mkdir %DIR%
cd %DIR%\..
curl -O -L https://copy.com/CHZ4eT4us6f1/mysql-connector-c-noinstall-6.0.2-winx64.zip?download=1
(extract zip)
gem install mysql2 -- --with-mysql-lib=%DIR%\lib --with-mysql-dir=%DIR% --with-mysql-include=%DIR%\include
for /f %d in ('where ruby ^| head -1 ^| xargs -0 dirname') do copy %DIR%\lib\libmysql.dll %d
gem install activerecord-mysql2-adapter
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
!Name: Halfmax | |
!Author: Jason Summers | |
!A half spacefiller found in 2005. | |
!www.conwaylife.com/wiki/index.php?title=Halfmax | |
.....O.O.................................................O.O | |
....O..O.................................................O..O | |
...OO.......................................................OO | |
..O...........................................................O | |
.OOOO.......................................................OOOO | |
O....O.....................................................O....O |
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
curl -vvv -X PATCH --data "{\"votes\":[1]}" --header "Content-Type: application/json" "http://litepoll.com/polls/ID" |
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
find . -type f -iname '*.php' -not -path "./vendor/*" -exec bash -c 'echo $0 && expand -t 2 -i "$0" >"$0.expand.tmp" && mv "$0.expand.tmp" "$0"' {} \; |
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
<?php | |
ini_set('error_reporting', E_ALL); | |
ini_set('display_errors', '1'); |
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
[ | |
{ | |
"name": "Hello, world!", | |
"script": "\"Hello, \"[^$~][,]#%\"!\"", | |
"input": "world", | |
"description": "" | |
}, | |
{ | |
"name": "Factorial", | |
"script": "[$1=$[\\%1\\]?~[$1-f;!*]?]f:\n10f;!.", |
- Bump version in source file
git commit --allow-empty -m "vX.Y.Z"
git tag --sign vX.Y.Z -m "vX.Y.Z"
git push && git push --tags
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 echo 192.168.1.42 webserver >> /etc/hosts | |
sudo cat >> ~/.ssh/config <<EOF | |
Host webserver 192.168.1.42 | |
User user1 | |
Hostname webserver | |
IdentityFile ~/.ssh/id_rsa | |
EOF | |
cat ~/.ssh/id_rsa.pub | (ssh user@webserver "mkdir -p .ssh && cat >> ~/.ssh/authorized_keys") | |
git init project | |
cd project |
OlderNewer