curl -v --cookie "USER_TOKEN=Yes" http://127.0.0.1:5000/
curl --data "param1=value1¶m2=value2" https://example.com/resource.cgi
<!-- country codes (ISO 3166) and Dial codes. --> | |
<select name="countryCode" id=""> | |
<option data-countryCode="GB" value="44" Selected>UK (+44)</option> | |
<option data-countryCode="US" value="1">USA (+1)</option> | |
<optgroup label="Other countries"> | |
<option data-countryCode="DZ" value="213">Algeria (+213)</option> | |
<option data-countryCode="AD" value="376">Andorra (+376)</option> | |
<option data-countryCode="AO" value="244">Angola (+244)</option> | |
<option data-countryCode="AI" value="1264">Anguilla (+1264)</option> | |
<option data-countryCode="AG" value="1268">Antigua & Barbuda (+1268)</option> |
// Playground - noun: a place where people can play | |
import Foundation | |
import UIKit | |
import XCPlayground | |
XCPSetExecutionShouldContinueIndefinitely(continueIndefinitely: true) | |
// ----- GET ----- |
// Put those lines in application/config/config.php | |
$csrf_ignore = [ | |
'/page1.html', | |
'/about.html' | |
]; | |
$is_csrf_condition_met = true; | |
foreach($csrf_ignore as $ci){ |
package com.example.megam.banksevs; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.Toast; |
rsync (Everyone seems to like -z, but it is much slower for me)
#!/bin/bash | |
iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o tun0 -j MASQUERADE | |
iptables -A FORWARD -s 172.16.42.0/24 -o tun0 -j ACCEPT | |
iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i tun0 -j ACCEPT |
Install and setup OpenVPN | |
apt-get update; apt-get install openvpn easy-rsa | |
gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/server.conf | |
nano /etc/openvpn/server.conf | |
replace dh1024.pem with dh2048.pem | |
#uncomment push "redirect-gateway def1 bypass-dhcp" |
I hereby claim:
To claim this, I am signing this object:
## | |
## ca-bundle.crt -- Bundle of CA Root Certificates | |
## | |
## Certificate data from Mozilla as of: Sat Dec 29 20:03:40 2012 | |
## | |
## This is a bundle of X.509 certificates of public Certificate Authorities | |
## (CA). These were automatically extracted from Mozilla's root certificates | |
## file (certdata.txt). This file can be found in the mozilla source tree: | |
## http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1 | |
## |