View gist:618b053b9ab1f948f1b2
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
// Lets say we have a file with path 'Project/Private/APIKEYS.txt' | |
git add Project/Private/APIKEYS.txt | |
git commit -m "added empty APIKEY file" | |
git push origin master | |
// Stop tracking | |
git update-index --assume-unchanged Project/Private/APIKEYS.txt | |
// Track again |
View gist:0634262b5bb070684626
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
# Create database, save Url for later use, let's call it <saved_url> | |
dokku postgresql:create <database> | |
# Link | |
dokku postgresql:link <app_name> <database> | |
# Check db url | |
dokku config <app_name> | grep DATABASE_URL | |
# if saved url is not equals to the last displayed, then: |
View gist:a817e96ec833e7667274
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
# Based on: http://donpottinger.net/blog/2014/11/17/bye-bye-heroku-hello-dokku.html | |
# Add to gemfile: | |
ruby '2.1.2' | |
gem 'pg' | |
gem 'puma' | |
gem 'rails_12factor' | |
gem 'searchkick' | |
gem 'typhoeus' |
View gist:c509eadf1e31b45825a9
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
app = Doorkeeper::Application.create!(:name => 'myapp', :redirect_uri => 'myapp://oauth/callback') |
View .gitignore
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
#Gitignore for files generated by Xilinx ISE | |
*.log | |
*.svf | |
*.scr | |
*.cmd | |
*.bak | |
*.lso | |
*.elf | |
*.ace |
View gist:97771781262c18a24521
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
Este código no es mio. | |
Autor: Desconocido | |
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script><br /> | |
<script>//<br /> | |
// Este iframe fallaba<br /> | |
//<iframe src="http://nyan.cat/" width="640" height="480"></iframe><br /> | |
console.log("js injection ");//<br /> | |
var url = "https://raw.github.com/jfix/nyancat/master";//<br /> | |
var keyCode = 16; // shift key<br /> |
View gist:9a879bf279c572d813ba
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
<script>javascript:alert(document.cookie);</script> |
View macro.sh
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
START_HERE="/Users/user/repositories"; | |
cd $START_HERE; | |
for d in $(find . -maxdepth 1 -mindepth 1 -type d); do | |
echo -e "$d"; | |
cd $d; | |
# Do a barrel roll | |
git pull; | |
View CSharp.sublime-build
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
Show hidden characters
{ | |
"shell": true, | |
"cmd": ["mcs $file ; mono $file_base_name.exe"], | |
"selector": "source.cs" | |
} |
View JavaScript.sublime-build
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
{ | |
"cmd": ["/usr/local/bin/node", "--harmony", "--use-strict", "$file"], | |
"selector": "source.js" | |
} |
OlderNewer