Skip to content

Instantly share code, notes, and snippets.

@jpbriend
jpbriend / Dockerfile
Created July 28, 2015 13:58
Dockerfile Nginx reverse-proxy with SSL and SPDY support
FROM debian:jessie
MAINTAINER Jean-Philippe Briend <jeanphilippe.briend@gmail.com> (@jpbriend)
ENV NGINX_VERSION 1.9.3
# Install dependency packages
RUN apt-get update && \
apt-get install -y \
curl \
@mckeed
mckeed / rgbw-light.groovy
Created July 17, 2015 04:09
Z-Wave RGBW Light device handler
/**
* Copyright 2015 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www&#8221; domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com
#/g/sicp Gentoomen Programming, Computer Science, Wizardry, and General Technology Book Library - File Listing
(λ . Gentoomen Library
(λ . Algorithms
(λ .Algorithm Design - John Kleinberg - Éva Tardos.pdf)
(λ .Algorithms and Data Structures in C++(diamond-torrents.info).chm)
(λ .Algorithms in C.pdf)
(λ .Algorithms_in_C_-_Sedgewick.pdf)
(λ .Algorithms_in_Pascal_-_Sedgewick.pdf)
@OnlyInAmerica
OnlyInAmerica / make-mega-adblock-hostsfile.sh
Last active September 30, 2023 23:29
Create Mega Adblock Hostsfile for use with Dnsmasq (Modified from Pi-hole)
#!/bin/bash
# Modified Pi-hole script to generate a generic hosts file
# for use with dnsmasq's addn-hosts configuration
# original : https://github.com/jacobsalmela/pi-hole/blob/master/gravity-adv.sh
# The Pi-hole now blocks over 120,000 ad domains
# Address to send ads to (the RPi)
piholeIP="192.168.1.1"
outlist='./final_blocklist.txt'
@osteenbergen
osteenbergen / example.js
Created April 23, 2015 12:08
Laterjs Timezone support with MomentJS Timezone library
// Timezone library
var moment = require("moment-timezone");
// Later
var later = require("later");
// The schedule we would like to support:
var sched = later.parse.text("at 17:00");
// In March CET switches to CEST (daylight saving) so this is a nice example
var timezone = "Europe/Amsterdam";
@marshyski
marshyski / puppetdb-curl.sh
Last active August 11, 2020 09:19
Puppet DB Curl Examples
curl -sfG 'http://localhost:8080/v3/nodes' --data-urlencode 'query=["=", ["node", "active"], true]'
curl -sf 'http://localhost:8080/v3/facts'
curl -sf 'http://localhost:8080/v3/nodes'
curl -sfG 'http://localhost:8080/v3/nodes' --data-urlencode 'query=["=", ["fact", "kernel"], "Linux"]'
curl -sfG 'http://localhost:8080/v3/nodes' --data-urlencode 'query=["=", ["fa, "operatingsystem"], "windows"]'
@Mebus
Mebus / wget.py
Created March 14, 2015 10:04
wget.py
import urllib, os
# if you comment out this line, it will download to the directory from which you run the script.
os.chdir('/tmp/test')
url = 'http://www.mydomain.com/myfile.txt'
urllib.urlretrieve(url)
@StevenLangbroek
StevenLangbroek / class.js
Last active May 3, 2019 20:05
Private variables in ES6 Classes.
/**
* So, obviously this is by no means a "new trick",
* but encapsulation in classes works the same as
* it does in "Modules" (IIFE pattern): You hide them
* in a scope, and define the methods that need access
* to them within that same scope. The constructor is
* as good a place as any for that.
*/
import _ from 'underscore';
@mathiasbynens
mathiasbynens / README.md
Last active August 5, 2023 03:20
Superfish certificate