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 -xe | |
if [[ $EUID -ne 0 ]]; then | |
fakeroot $0 | |
exit $? | |
fi | |
umask 022 | |
VERSION=$(git rev-parse --short HEAD) | |
autoreconf -fsi | |
./configure --prefix=/opt/tinc |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link href="jsbin.vijosojile.css" rel="stylesheet"> | |
</head> | |
<body> | |
<input type="range"> |
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
import os | |
blacklist = ['.exe', '.pyc', '.ico', '.png', '.icns', '.o', '.obj', '.lib', '.dll', '.idb', '.pdb', '.db', '.sconsign.dblite', '.tlog', '.dblite', '.res', '.vcxproj', '.fliter', '.user', '.sln', '.gz', '.1'] | |
def strip_whitespace_from_cwdir(): | |
for (root, directories, files) in os.walk("."): | |
for f in files: | |
if not ('.git' in root or '.vs' in root or '__pycache__' in root or '.sconf_temp' in root or '.tlog' in root or 'build' in root or os.path.splitext(f)[1] in blacklist): | |
strip_whitespace_from_file(os.path.join(root, f)) | |
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 | |
from __future__ import print_function | |
import pandoc | |
import requests | |
import sys | |
import re | |
if len(sys.argv) == 2: | |
markdown_file = sys.argv[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
/*! Microsoft EdgeHTML 13.10586 | Copyright (C) Microsoft. All rights reserved. */ | |
address { | |
display: block; | |
font-style: italic; | |
} | |
article { | |
display: block; | |
unicode-bidi: embed; |
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
--- | |
Language: Cpp | |
# BasedOnStyle: LLVM | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlinesLeft: false | |
AlignOperands: true | |
AlignTrailingComments: true |
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 | |
ini_set('display_errors', 'Off'); | |
error_reporting(E_ALL | E_STRICT); | |
/** | |
* Bootstrap Listr | |
* | |
* Author: Jan T. Sott | |
* Info: http://github.com/idleberg/Bootstrap-Listr |
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
import requests | |
from bs4 import BeautifulSoup | |
import json | |
removed = json.load(open('removed.json').read()) | |
session = requests.Session() | |
with open('password') as f: | |
data = { | |
'name': 'wolfy1339a', |
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
// based off the code from http://zarb.org/~gc/html/libpng.html but simplified/stripped down by Lockheedmartin. | |
// Conversion to C++ by wolfy1339 | |
#include <unistd.h> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <cstring> | |
#include <cstdarg> | |
#include <png.h> | |
int x, y, width, height, r, g, b; |
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 print_function | |
import hexchat | |
__module_name__ = 'Takeover plugin' | |
__module_version__ = "1.0" | |
__module_description__ = 'Python plugin to takeover channels' | |
def chunks(l, n): | |
"""Yield successive n-sized chunks from l.""" |
NewerOlder