Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
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; |
The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
<?php | |
preg_replace('/(?!^.?)[0-9](?!(.){0,3}$)/', '*', $credit_card_number); | |
?> |
I recently relocated for new employment. I've been staying in an extended stay hotel for about 3 weeks now. The hotel I'm staying in gives its guests free Wifi access. However, it requires users to accept terms and conditions on a splash page via browser interface before they can use the network. This makes it difficult to use my Chromecast with the network, as it doesn't have a means of accessing tht splash page. While I could call the IT help line, I decided to explore a work-around.
Like many networks, my hotel's network attempts to improve security by using MAC address filtering. Luckily, Mac OS X (10.4 - 10.10) makes it very easy to spoof your network card's MAC address.
Here's how to add a devices like Chromecast, AppleTV, Roku to a wireless network that requires a browser to authenticate and accept terms and conditions.
set -g default-terminal "screen-256color" | |
set-option -g prefix C-a | |
unbind C-b | |
# Ensure that we can send Ctrl-A to other apps | |
bind C-a send-prefix | |
set -g status-keys vi |
{ | |
"email": "Some email address documentation", | |
"email": "test@example.com", | |
"age": "some documentation about age", | |
"age": 23 | |
} |
#!/usr/bin/env node | |
var https = require('https'); | |
var options = { | |
hostname: 'www.toggl.com', | |
path: '/api/v6/time_entries.json', | |
headers: { | |
'Content-Type': 'application/json' | |
}, | |
auth: "YOUR_API_TOKEN:api_token" | |
}; |
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d |
node <script> 2>&1 | gist.sh | |
#!/bin/sh | |
sed -Ee "s#[(]?(/[^:]*/([^ ]*)):([0-9]+):([0-9]*)[)]?#[\2:\3:\4] mvim://open/?url=file://\1\&line=\3\&column=\4#g" |