Skip to content

Instantly share code, notes, and snippets.


Robson Sobral robsonsobral

View GitHub Profile
View gist:59a922dec30ea29f3b00233c98a4b38c
### Keybase proof
I hereby claim:
* I am robsonsobral on github.
* I am sobral ( on keybase.
* I have a public key ASAkt8uL-f9T3CK-tZOXvoDrYwLll6Numf_mDlhuli_s9go
To claim this, I am signing this object:
robsonsobral / meta-tags.html
Created May 23, 2020 — forked from benwo/meta-tags.html
Standard meta tags and meta image tags (and sizes).
View meta-tags.html
<!DOCTYPE html>
<html itemscope itemtype="" lang="en">
<!-- Settings -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Search Engines -->
robsonsobral /
Created Apr 25, 2020 — forked from Manouchehri/
Allow CloudFlare only
# Source:
for i in `curl`; do iptables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
for i in `curl`; do ip6tables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
# Avoid racking up billing/attacks
# WARNING: If you get attacked and CloudFlare drops you, your site(s) will be unreachable.
iptables -A INPUT -p tcp -m multiport --dports http,https -j DROP
robsonsobral /
Created Apr 25, 2020 — forked from jschpp/
script to add all cloudflare IPs to iptables
exec > /var/log/cloudflare.log 2>&1
set -x
for ip in $(curl -s; do /usr/sbin/iptables -I INPUT -p tcp -m multiport --dports http,https -s "$ip" -j ACCEPT; done
for ip in $(curl -s; do /usr/sbin/ip6tables -I INPUT -p tcp -m multiport --dports http,https -s "$ip" -j ACCEPT; done
robsonsobral / paste.js
Created Dec 4, 2019 — forked from cesarfigueroa/paste.js
Paste onto a [contenteditable] element as plain text
View paste.js
document.querySelector('[contenteditable]').addEventListener('paste', function (event) {
document.execCommand('inserttext', false, event.clipboardData.getData('text/plain'));
View pageant-autoload-keys-at-startup.txt
To make Pageant automatically run and load keys at startup:
- Find the location of pageant.exe
- Windows key + R to open the 'run' dialog box
- Type: 'shell:startup' in the dialog box
- Create a shortcut to the pageant.exe and put into this startup folder.
View gist:1df6bb51ef0c04dc5fcc0afd5b36bddf
<script src="{{ $script.RelPermalink }}?mtime={{ (os.Stat "/static/scripts/index.js" ).ModTime.Unix }}"></script>
View getQueryString.js
function getQueryString() {
var url = arguments.length > 0 && arguments[0] !== undefined ?
arguments[0] :;
var queryString = url.indexOf('?') !== -1 ?
url.split('?')[1] :
var queries = queryString.indexOf('&') !== -1 ?
View _redirects
/* /index.html 200
robsonsobral / .gitignore
Created Nov 19, 2018
GitIgnore folder content
View .gitignore
# Ignore everything in this directory
# Except this file
You can’t perform that action at this time.