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 | |
/** | |
* Created by Sam Rudloff. | |
* Date: 5/14/18 | |
* Time: 11:26 AM | |
*/ | |
class file_vault | |
{ | |
public function __construct($path) |
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 | |
# coding: utf-8 | |
# In[2]: | |
from PIL import Image | |
import random | |
import uuid | |
import os |
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 | |
# coding: utf-8 | |
# In[2]: | |
from PIL import Image | |
import random | |
import uuid | |
import os |
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
##Magic Logging Bootstrap | |
import logging | |
import sys,os | |
logging.basicConfig( | |
filename='randomWp.log', | |
level=logging.INFO, | |
format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', | |
datefmt='%Y-%m-%d %H:%M:%S' | |
) |
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
share_mount_dir='/home/srudloff/shares' | |
vpn_connected=`ifconfig | grep "tun0"|wc -c` | |
if (( vpn_connected > 0 )); then | |
if [[ $(keyring get VPN_SYSTEM DOMAIN | wc -c) -eq 0 ]];then | |
keyring set VPN_SYSTEM DOMAIN | |
fi | |
SMB_DOMAIN=`keyring get VPN_SYSTEM DOMAIN` | |
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
##Magic Logging Bootstrap | |
import logging | |
import sys | |
logging.basicConfig( | |
filename='randomWp.log', | |
level=logging.INFO, | |
format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', | |
datefmt='%Y-%m-%d %H:%M:%S' | |
) |
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 argparse | |
import nbclient | |
import nbformat | |
import nbparameterise | |
import sys | |
old_stdout = sys.stdout | |
parser = argparse.ArgumentParser( | |
description='Notebook Runner' | |
) |
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
$('textarea.AutoExapander').keyup(function (e) { | |
e.target.rows = e.target.value.split('\n').length + 1 | |
}); | |
$(document).ready(function () { | |
$('textarea.AutoExapander').each(function (index, ele) { | |
ele.rows = ele.value.split('\n').length + 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 Totalizer() { | |
this.output = null | |
this.elements = [] | |
this.total = 0 | |
} | |
Totalizer.prototype.setOutput = function (output) { | |
this.output = $(output); | |
this.updateOutput() | |
} |
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
// ==UserScript== | |
// @name Redmine - SpongeMock | |
// @match https://*.*.*/issues/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var letters = "abcdefghijklmnopqrstuvwxyz" | |
function mocking(text){ |
OlderNewer