GET http://urlspoiler.herokuapp.com/gists?id=required&file=optional&format=optional
id=<the ID of the gist>
- Extract the ID from a gist url:
https://gist.github.com/<id>
file=
| #!/usr/bin/ruby | |
| `cat ~/.bash_aliases | egrep '^alias' | sed 's/alias//'`.split("\n").each do |line| | |
| parts = line.strip.split(/=/) | |
| name, cmd = parts[0], parts[1].gsub(/('|")/,'') | |
| file = '/home/%s/.config/fish/functions/%s.fish' % [`whoami`.strip, name] | |
| content = [ 'function %s' % name, ' %s $argv;' % cmd, 'end' ].join("\n") | |
| File.open(file, 'w+'){|io| io.write(content) } | |
| end |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; | |
| http.createServer(function(request, response) { | |
| var uri = url.parse(request.url).pathname | |
| , filename = path.join(process.cwd(), uri); |
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| @mixin hp-opacity($trans) { | |
| filter: alpha(opactiy=($trans * 100)); | |
| -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{$trans * 100})"; | |
| -moz-opacity: $trans; | |
| -khtml-opacity: $trans; | |
| opacity: $trans; | |
| } |
| git config --global user.name "Tarcisio Coutinho" | |
| git config --global user.email "[email protected]" | |
| git config --global color.ui true | |
| git config --global alias.s status | |
| git config --global alias.c checkout | |
| git config --global alias.b branch | |
| git config --global alias.lol log --oneline --graph --decorate |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
GET http://urlspoiler.herokuapp.com/gists?id=required&file=optional&format=optional
id=<the ID of the gist>
https://gist.github.com/<id>file=
| <!DOCTYPE html> | |
| <head> | |
| <title>Stay Standalone</title> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
| <script src="stay_standalone.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <ul> | |
| <li><a href="http://google.com/">Remote Link (Google)</a></li> |
#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.