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 | |
####################################### | |
# | |
# Installation: | |
# <ROOT>/bin/bootiso.sh | |
# <ROOT>/etc/bootiso.conf | |
# | |
# Config file format (bootiso.conf) | |
# |
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
/* | |
Requires range.js - https://gist.github.com/bng44270/36f42505c98b4277c608694cf0c93245 | |
usage: | |
> var cron = new JSCron(false,true); | |
> cron.addJob(function() { | |
console.log("This runs every minute " + new Date().getMinutes()); | |
},'This is a test job'); | |
> cron.addJob(function() { |
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
/* | |
usage: | |
> var thisRange = new Range(1,6); | |
> thisRange | |
[1, 2, 3, 4, 5, 6] | |
*/ | |
class Range extends Array { | |
constructor(first,last) { |
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
/* | |
ImageMap - Create an linked image/image map | |
Usage: | |
HTML: | |
<div id="headerspace"></div> | |
JS: |
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
# Tested wtih Foscam Fi8910w camera | |
from os import listdir, remove as remove_file | |
from re import match as regex_match, sub as regex_sub | |
from random import random as gen_random | |
import requests | |
class Foscam: | |
def __init__(self, cachedir='/tmp', host='', user='', passwd=''): |
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
#################### | |
# ServiceNow Table API Library for Powershell | |
# | |
# Usage: | |
# 1. Define connection (host, user, password): | |
# | |
# $conn = (New-ServiceNowConnection) | |
# | |
# 2. If performing an query, setup the query: | |
# (set the "IsOr" argument to $True for New-ServiceNowQueryBuilder function if query is using boolean OR): |
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
########################### | |
# Generate Random Passwords in Powershell | |
# | |
# Usage: | |
# 1. Load password.ps1 into memory (run ". password.ps1") | |
# | |
# If this command returns a policy error, the contents of | |
# password.ps1 may be copied and pasted into the Powershell | |
# command line. | |
# |
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
/* | |
Make content within a DOM container dragable | |
Usage: | |
<div id="content"></div> | |
var container = new DragDoc('content'); |
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
##################### | |
# KeePass CLI | |
# | |
# Return passwords, create, list, and delete groups and entries from KeePass database files | |
##################### | |
from pykeepass import PyKeePass | |
from arguments import Arguments | |
from getpass import getpass |
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
" Standard settings | |
set number | |
set autoindent | |
syntax on | |
colorscheme slate | |
set laststatus=2 | |
" Keyboard shortcuts | |
nnoremap <C-l> :tabnext<CR> | |
nnoremap <C-a> :tabprevious<CR> |