Skip to content

Instantly share code, notes, and snippets.

View sweepies's full-sized avatar

Sweepy sweepies

View GitHub Profile
@aelk00
aelk00 / remove-likes.md
Last active March 1, 2024 00:58
Remove all your facebook likes
@sweepies
sweepies / docker-compose-rc.sh
Created March 27, 2019 15:16
Run docker-compose in docker
#!/bin/sh
# Includes release candidate versions
if [ -t 0 ]; then OPTS='-it'; fi
latest=$(curl -s https://registry.hub.docker.com/v2/repositories/docker/compose/tags/ | jq -r '.results[0].name')
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd):$(pwd)" -w "$(pwd)" \
[03:00:00] <Hex> Let me tell you all a story.
[03:00:07] <DemonWav> no fuck off
[03:00:14] <Hex> At my university there's a large lecture hall in the physics department.
[03:00:23] <Hex> Over the past year, several things have been stolen from it.
[03:00:29] <Byteflux> Cool story. Thx
[03:00:36] <Hex> First, it was this dinky little computer that everyone used for their presentations.
[03:00:40] <Byteflux> o story not dun
[03:00:43] <Byteflux> welp
[03:00:43] <Hex> Second, it was the room's router.
[03:01:01] <Hex> Third, which was last friday, they tried to steal one of the $2000, high-power projecters.
@jasny
jasny / mysql_splitdump.sh
Last active February 27, 2025 17:45
Split MySQL dump SQL file into one file per table or extract a single table
#!/bin/bash
####
# Split MySQL dump SQL file into one file per table
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump
####
if [ $# -lt 1 ] ; then
echo "USAGE $0 DUMP_FILE [TABLE]"
exit