This file contains 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
# | |
# Recommended minimum configuration: | |
# | |
# Example rule allowing access from your local networks. | |
# Adapt to list your (internal) IP networks from where browsing | |
# should be allowed | |
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network | |
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network | |
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network |
This file contains 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
alias status='git status' | |
alias commit='git commit' | |
alias commitall='git commit -a' | |
alias amend='git commit --amend' | |
alias amendall='git commit -a --amend' | |
alias push='git push' | |
alias pull='git pull' | |
alias pushforce='git push -f' | |
alias submodule='git submodule' | |
alias add='git add' |
This file contains 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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; |
This file contains 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
# Service Interruption Debrief | |
## Brief Executive Summary | |
EXECUTIVE SUMMARY HERE | |
***On Call during outage***: | |
***Time outage started***: |
This file contains 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
.ui.container { | |
position: relative; | |
width: 915px; | |
margin: 0px auto; | |
} | |
@media only screen and (max-width : 600px) { | |
.ui.container { | |
width: auto; | |
margin: 0em 1rem; |
This file contains 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://mystilleef.blogspot.ru/2011/10/enable-zram-in-fedora.html | |
if [ `whoami` != "root" ]; then | |
echo "Sudo required" | |
exit | |
fi | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
This file contains 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://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
printf "${RED}Check&install required utility${NC}\n" | |
rpmqa=`rpm -qa` | |
echo $rpmqa | grep -qw lynx || sudo yum install lynx | |
echo $rpmqa | grep -qw wget || sudo yum install wget |
This file contains 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
.686 | |
.model flat | |
.stack | |
data segment "data" | |
data ends | |
.CODE |
This file contains 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
// Introduced by Scott Schurr in "C++ Now! 2012" | |
class constexpr_string | |
{ | |
protected: | |
const char* const p; | |
const std::size_t s; | |
public: | |
template<std::size_t N> | |
constexpr constexpr_string(const char(&a)[N]) | |
: p(a), s(N-1) |
This file contains 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
function CloneObject(obj) | |
{ | |
if (obj === null) | |
return obj; | |
if (typeof obj !== "object") | |
return obj; | |
var copy = obj.constructor(); | |
for (var attr in obj) | |
if (obj.hasOwnProperty(attr)) |