Skip to content

Instantly share code, notes, and snippets.

View elsbrock's full-sized avatar

Simon Elsbrock elsbrock

View GitHub Profile
@blabber
blabber / RaumZeitDeponyfier.user.js
Last active December 24, 2023 08:09
RaumZeitDeponyfier - Removes images from RZL blogposts which are likely to contain ponies
// ==UserScript==
// @name RaumZeitDeponifier
// @namespace http://gist.github.com/040c9009cfcb443d1d92
// @description Removes images from RZL blogposts which are likely to contain ponies
// @include http://raumzeitlabor.de/
// @include http://raumzeitlabor.de/blog/*
// @include https://raumzeitlabor.de/
// @include https://raumzeitlabor.de/blog/*
// @version 2
// @grant none
@softwaredoug
softwaredoug / hyperLogLog.c
Created February 3, 2015 04:01
Educational HyperLogLog demo in C
#include "stdio.h"
#include "stdlib.h"
unsigned int max(unsigned int a, unsigned int b) {
return a > b ? a : b;
}
unsigned int bucket(unsigned int val) {
return val & 0xF0000000 >> 28;
}
@tuxfight3r
tuxfight3r / tcp_flags.txt
Last active May 26, 2026 15:57
tcpdump - reading tcp flags
##TCP FLAGS##
Unskilled Attackers Pester Real Security Folks
==============================================
TCPDUMP FLAGS
Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere)
Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere)
Pester = PSH = [P] (Push Data)
Real = RST = [R] (Reset Connection)
Security = SYN = [S] (Start Connection)
@zakx
zakx / damazon.py
Last active February 15, 2026 20:00 — forked from trehn/damazon.py
#!/usr/bin/python2
# setup: pip install requests beautifulsoup4
from decimal import Decimal
import requests
from bs4 import BeautifulSoup
import sys
# Session setup
@pghalliday
pghalliday / auto-build-and-deploy-github-pages-with-travis-ci.sh
Last active October 7, 2019 05:54
Auto build and deploy GitHub pages with Travis-CI
#!/bin/bash
set -e
# Deploy built site to this branch
TARGET_BRANCH=master
# Sync the contents of this directory where the site should have been built
SOURCE_DIR=_site
if [ ! -d "$SOURCE_DIR" ]; then
echo "SOURCE_DIR ($SOURCE_DIR) does not exist, build the source directory before deploying"
@labrown
labrown / elasticsearch-handlers-main.yml
Last active September 22, 2023 12:11
Ansible rolling restart of Elasticsearch Cluster
---
###
# Elasticsearch Rolling restart using Ansible
###
##
## Why is this needed?
##
#
# Even if you use a serial setting to limit the number of nodes processed at one
@soarez
soarez / ca.md
Last active May 11, 2026 19:21
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@demisx
demisx / angularjs-providers-explained.md
Last active August 26, 2025 03:06
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

@solidsnack
solidsnack / mesos-attrs-causes-slave-upgrade
Created December 17, 2013 19:34
Can be fixed with: /usr/local/sbin/mesos-slave --recover=cleanup
I1217 19:23:11.844920 2201 state.cpp:33] Recovering state from '/tmp/mesos/meta'
Incompatible slave info detected.
------------------------------------------------------------
Old slave info:
hostname: "ip-10-46-210-228.ec2.internal"
webui_hostname: "ip-10-46-210-228.ec2.internal"
resources {
name: "cpus"
type: SCALAR
scalar {
@plentz
plentz / nginx.conf
Last active May 28, 2026 05:18
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048