Skip to content

Instantly share code, notes, and snippets.

View coip's full-sized avatar
💭
( ͡° ͜ʖ ͡°)

e coip

💭
( ͡° ͜ʖ ͡°)
View GitHub Profile
@moyix
moyix / killbutmakeitlooklikeanaccident.sh
Created February 5, 2022 22:51
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
admin:
address:
socket_address:
address: ::1
port_value: 9090
static_resources:
clusters:
- connect_timeout: 0.5s
lb_policy: ROUND_ROBIN
load_assignment:
@lynshi
lynshi / azure-cdn-purge.yml
Last active February 2, 2021 20:42
Sample GitHub Action for purging Azure CDN
name: Purge Azure CDN
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
@wybiral
wybiral / noscript-tracking.go
Last active September 11, 2023 08:53
Tracking cursor position in real-time with remote monitoring (without JavaScript)
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)
@thejmazz
thejmazz / docker-compose.yml
Last active February 21, 2022 22:46
Example using docker compose v2 health check depends on and tmpfs to store Vault secrets ephemeral with container
version: '2.3'
services:
init:
image: vault
container_name: minio_init
environment:
VAULT_ADDR: https://10.110.1.9:8200
VAULT_CACERT: /run/secrets/chain.pem
volumes:
@jmoiron
jmoiron / 01-curl.go
Last active December 16, 2022 10:34
io.Reader & io.Writer fun
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func init() {
@willurd
willurd / web-servers.md
Last active July 22, 2024 15:25
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000