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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"" Load plugin manager | |
"" | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Download vim-plug if not already installed | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall | source $MYVIMRC |
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
#!/usr/bin/env python | |
import getpass | |
import os | |
import re | |
import signal | |
import sys | |
from collections import namedtuple | |
from urllib import urlencode | |
from urllib2 import build_opener |
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
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
import getpass | |
import logging | |
import logging.config | |
import os | |
import socket | |
try: |
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 | |
set -e | |
function die() { echo "$1"; exit 1; } | |
function action() { | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" | |
echo "@@@ $(date)" | |
echo "@@@ $1" | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" |
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
<?php | |
header('Pragma: no-cache'); | |
header('Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate, proxy-revalidate'); | |
$domain = $_SERVER["SERVER_NAME"]; | |
$url = $_SERVER["SCRIPT_NAME"]; | |
$options = ['summary', 'hours', 'days', 'months', 'top10']; | |
$option = filter_input(INPUT_GET, "option", FILTER_SANITIZE_STRING); |
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 | |
# This script installs a basic build environment for debian | |
ACTION="${1}" | |
ARGS="${#}" | |
DEBIAN_VERSION="unstable" | |
INSTALL_PACKAGES=( | |
apt-file | |
cdebootstrap |
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
################################################################################ | |
## Custom headers forwarded by the nginx ingress controller ## | |
## ## | |
## X-Code HTTP status code retuned by the request ## | |
## X-Format Value of the Accept header sent by the client ## | |
## X-Original-URI URI that caused the error ## | |
## X-Namespace Namespace where the backend Service is located ## | |
## X-Ingress-Name Name of the Ingress where the backend is defined ## | |
## X-Service-Name Name of the Service backing the backend ## | |
## X-Service-Port Port number of the Service backing the backend ## |
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
#!/usr/bin/env python3 | |
import struct | |
import re | |
import socket | |
import sys | |
MAC = '1c:5a:6b:b8:93:c0' | |
def wake_on_lan(mac): |
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
#!/usr/bin/env python | |
# also check https://gist.github.com/fliphess/7836479 | |
import tornado.ioloop | |
import tornado.web | |
import base64 | |
import netaddr | |
import bcrypt | |
def require_basic_auth(handler_class): |
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
#!/usr/bin/env bash | |
function usage() { | |
cat <<EOF | |
Open current git repo in your browser | |
Arguments: | |
--pipe - Show pipeline | |
--cr - Show container registry | |
--mr - Show merge requests |
NewerOlder