Skip to content

Instantly share code, notes, and snippets.

@LTGIV
LTGIV / dnscc.bash
Last active September 23, 2018 18:48
DNSControl Compiler
#!/usr/bin/env bash
: <<'!COMMENT'
DNSControl Compiler v201712120445
Louis T. Getterman IV (@LTGIV)
https://Thad.Getterman.org/2017/12/11/dnscontrol-compiler
# DNSControl
https://github.com/StackExchange/dnscontrol
https://github.com/StackExchange/dnscontrol/blob/master/docs/getting-started.md
@slightlyoff
slightlyoff / push_payloads_userland.md
Last active September 30, 2022 23:11
Delivering H/2 Push Payloads To Userland

Background

One of the biggest missed opportunities thus far with HTTP/2 ("H/2") is that we are not yet able to sunset WebSockets in favor of H/2. Web Sockets and H/2 both support multiplexing messages bi-directionally and can send both textual and binary data.

Server Sent Events ("SSE"), by contrast, are not bi-directional (they're a "server-push-only" channel) and binary data cannot be sent easily. They are, however, very simple to implement. Adding to the menagerie of options, RTCPeerConnection can also be used to signal data to applications in a low-latency (but potentially lossy) way.

Because H/2 [does not support the handshake (upgrade) that WebSockets use to negotiate a connection](https://daniel.haxx.se/blog/2016/06/15/no-websockets-

@tj
tj / snippets.coffee
Last active September 1, 2018 19:01
Atom snippets for Go
'.source.go':
'Options':
'prefix': 'options'
'body': '''
// Option function.
type Option func(*$1)
// New with the given options.
func New(options ...Option) *$1 {
@thehunmonkgroup
thehunmonkgroup / resources.md
Last active October 4, 2022 01:20
ClueCon 2017 presentation, building a WebRTC testing framework with open source tools
@slok
slok / amfirer.go
Last active November 11, 2021 06:10
Alertmanager alarm tester. Fire a custom alert to your alertmanager: https://github.com/prometheus/alertmanager
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"log"
"net/http"
"net/url"
#!/usr/bin/env sh
if [ "$1" != "" ]; then
sBatchList=""
sBatchMessage="$3"
while IFS=, read col1 col2
do
sBatchList="$sBatchList $col1"
@alirobe
alirobe / reclaimWindows10.ps1
Last active October 22, 2025 05:28
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@tmornini
tmornini / gist:789d0cf3bccec2cdcf2c
Last active August 29, 2015 14:03
Subledger Getting Started
0) Live in-browser API docs (Swagger)
a) https://api.subledger.com
b) we recommend that you copy/paste all responses for future reference
1) Setup the system
a) Create an Identity via first API operation!
b) Enter key_id and secret in the Security credentials boxes in the upper-right corner of API docs
c) Create an org
d) Create a book
e) Create some accounts (Recommended: Cash, Payables, Shareholder Equity)
<?php
/*
* This file an extension for the Monolog package that implements an AMQP handler based on
* the amqp library at https://github.com/videlalvaro/php-amqplib
*
* (c) Mike Preston <[email protected]>
*
*/
@ludwigm
ludwigm / cec-commands.sh
Created May 30, 2014 21:09
CEC commands usable by raspberry pi
# libcec compile tutorial: http://nyxi.eu/blog/2013/04/15/raspbian-libcec/
# switch off TV
echo "tx 10 36" | cec-client -s
# switch on TV
echo "on 0" | cec-client -s
# or
echo "tx F0 36" | cec-client -s