#Country ban with UFW#
Grab your different country ip addresses and save as Linux IPTables
http://www.ip2location.com/free/visitor-blocker
##Add country## Run the following command
CREATE TABLE IF NOT EXISTS `country` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`iso` char(2) NOT NULL, | |
`name` varchar(80) NOT NULL, | |
`nicename` varchar(80) NOT NULL, | |
`iso3` char(3) DEFAULT NULL, | |
`numcode` smallint(6) DEFAULT NULL, | |
`phonecode` int(5) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
year|album|artist | |
1955|In The Wee Small Hours|Frank Sinatra | |
1956|Ellington at Newport _56|Duke Ellington | |
1956|Elvis Presley|Elvis Presley | |
1956|Songs For Swingin' Lovers|Frank Sinatra | |
1956|Birth of the Cool|Miles Davis | |
1956|Tragic Songs Of Life|The Louvin Brothers | |
1957|The Atomic Mr Basie|Count Basie | |
1957|This is Fats Domino|Fats Domino | |
1957|Here_s Little Richard|Little Richard |
<?php | |
ini_set('soap.wsdl_cache_enabled', '0'); | |
ini_set('soap.wsdl_cache_ttl', '0'); | |
define('WSDL', 'http://api.cba.am/exchangerates.asmx?wsdl'); | |
$error = false; | |
try { |
//Primitive Type Comparison | |
var a = 1; | |
var b = 1; | |
var c = a; | |
console.log(a == b); //true | |
console.log(a === b); //true | |
console.log(a == c); //true | |
console.log(a === c); //true |
#Country ban with UFW#
Grab your different country ip addresses and save as Linux IPTables
http://www.ip2location.com/free/visitor-blocker
##Add country## Run the following command
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
#!/bin/bash | |
# Clones as usual but creates local tracking branches for all remote branches. | |
# To use, copy this file into the same directory your git binaries are (git, git-flow, git-subtree, etc) | |
clone_output=$((git clone "$@" ) 2>&1) | |
retval=$? | |
echo $clone_output | |
if [[ $retval != 0 ]] ; then | |
exit 1 |
{ | |
"+1": [[63.004759, -99.392855], "Canada"], | |
"+1242": [[26.215829, -98.187851], "Bahamas"], | |
"+1246": [[13.186666, -59.55727], "Barbados"], | |
"+1264": [[18.217056, -63.050923], "Anguilla"], | |
"+1268": [[17.08682, -61.796431], "Antigua and Barbuda"], | |
"+1284": [[18.719042, -64.326495], "British Virgin Islands"], | |
"+1340": [[33.282206, -117.185162], "US Virgin Islands"], | |
"+1345": [[19.323764, -81.195721], "Cayman Islands"], | |
"+1441": [[32.301277, -64.77506], "Bermuda"], |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
Picking the right architecture = Picking the right battles + Managing trade-offs