This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## | |
## Usage: | |
## http-response-headers.sh 'http://www.example.com/test/' '127.0.0.1' | |
## | |
#!/usr/bin/env bash | |
URL="$1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Installation | |
# | |
# $ bash <(curl -s https://gist.githubusercontent.com/puckbag/2e8b3c68bd21ed895ee793d8bc97f04d/raw/install-nodenv.sh) | |
# | |
# Reference | |
# | |
# https://github.com/nodenv/nodenv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet prefetch" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
<style> | |
#col-1 { | |
background-color: rgba(255, 0, 0, 0.5); | |
} | |
#col-2 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\HandlerStack; | |
use GuzzleHttp\Handler\CurlFactory; | |
use GuzzleHttp\Handler\CurlHandler; | |
use GuzzleHttp\Handler\CurlMultiHandler; | |
use GuzzleHttp\Handler\EasyHandle; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://dev.mysql.com/doc/refman/5.5/en/copying-databases.html | |
PWD=`pwd` | |
# http://stackoverflow.com/a/3572105 | |
realpath() { | |
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// demonstrate how to construct the same loop with while and with for. | |
// a limited loop in while format | |
var limit = 10; | |
var i = 1; | |
while (i<=limit) { | |
console.log(i); | |
i = i + 1; | |
} |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Provided courtesy of http://browscap.org/ | |
;;; Created on Thursday, March 27, 2014 at 12:25 PM EDT | |
;;; Keep up with the latest goings-on with the project: | |
;;; Follow us on Twitter <https://twitter.com/browscap>, or... | |
;;; Like us on Facebook <https://facebook.com/browscap>, or... | |
;;; Collaborate on GitHub <https://github.com/browscap>, or... | |
;;; Discuss on Google Groups <https://groups.google.com/forum/#!forum/browscap>. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Browscap Version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# example usage: | |
# $ sync-branch origin/production production | |
# issues: | |
# * what if files have been modified? handle pull failure. | |
# http://stackoverflow.com/a/12791408/1596013 | |
# http://stackoverflow.com/a/12142066/1596013 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
hex:00 / rgb:0 | |
hex:55 / rgb:85 | |
hex:BB / rgb:187 | |
hex:FF / rgb:255 | |
*/ | |
.normal-black { | |
color: black; } | |
.normal-red { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
doc_root= | |
ftp_domain= | |
ftp_host= | |
ftp_user= | |
ftp_pass= | |
db_remote_type=tinytds | |
db_remote_data= | |
db_remote_host= |
NewerOlder