Skip to content

Instantly share code, notes, and snippets.

View TechnologyClassroom's full-sized avatar
💭
Hacking

Michael McMahon TechnologyClassroom

💭
Hacking
View GitHub Profile
@NuclearLighthouseStudios
NuclearLighthouseStudios / plate.scad
Created October 18, 2021 15:36
3D Printed Printing Plate Generator Script
file = "card-front.svg";
width = 54.68620;
height = 85.29320;
feature_height = 1.4;
plate_thickness = 0.6;
union()
{
minkowski()
@nsbalbi
nsbalbi / knot.pde
Last active August 21, 2022 23:17
Astral Knot
// Processing Code By Nicholas Sbalbi (@nsbalbi)
// Twitter post: https://twitter.com/nsbalbi/status/1413940646063317001
// Associated tutorial: https://nsbalbi.github.io/Blog%20Posts/blog_knot.html
// Github gist: https://gist.github.com/nsbalbi/ab299269bb0dbfd9c1296dc3bdaad39b
// 7-12-2021 Updated: 7-12-2022
// Motion blur via @beesandbombs
float t;
int[][] result;
int nFrames = 160;
@nsbalbi
nsbalbi / donut.pde
Last active July 11, 2022 19:56
Universe in a Donut
// Processing Code By Nicholas Sbalbi (@nsbalbi)
// Twitter post: https://twitter.com/nsbalbi/status/1406696979523047437
// Github gist: https://gist.github.com/nsbalbi/7c09f0101f90c45ecc391e7f64b29c10
// 6-22-2021
// Motion blur via @beesandbombs and inspiration from @etiennejcb
/*
Copyright (c) 2021 Nicholas Sbalbi
Permission is hereby granted, free of charge, to any person obtaining a copy

Working with docker and registry

First of we install the docker client, server and registry on our debian machine.

apt install docker docker.io docker-registry

The registry could be installed as a service in our docker cloud as well.

docker run -d -p 5000:5000 --restart=always --name registry registry:2
@ThomasLeister
ThomasLeister / auto-start-tmux-ssh.txt
Last active July 23, 2024 07:37
Put this into your .bashrc to auto-start a tmux session after SSH login
Put these lines into your server's .bashrc:
##
## TMUX auto attach
##
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then # if this is an SSH session
if which tmux >/dev/null 2>&1; then # check if tmux is installed
if [[ -z "$TMUX" ]] ;then # do not allow "tmux in tmux"
ID="$( tmux ls | grep -vm1 attached | cut -d: -f1 )" # get the id of a deattached session
if [[ -z "$ID" ]] ;then # if not available create a new one
tmux new-session
@dabroder
dabroder / i3-gaps.sh
Created June 6, 2018 14:21
Install i3-gaps on ubuntu 18.04
#!/bin/bash
sudo apt install -y libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf libxcb-xrm0 libxcb-xrm-dev automake
cd /tmp
# clone the repository
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps
# compile & install
@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active March 12, 2024 22:46
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
@Krazybug
Krazybug / omercy.py
Last active February 27, 2023 14:19
O'Reilly free ebooks downloader
'''
O'Meirrcy !!!! Download free ebooks from O'Reilly
Usage:
> git clone https://gist.github.com/Krazybug/1ae50814d25b0a1d862dfdf7161ee503
> mv 1ae50814d25b0a1d862dfdf7161ee503 omercy
> cd omercy
> pip install requests
> pip install bs4
> python omercy.py
@milanboers
milanboers / clone.bash
Last active July 15, 2024 17:14
Clone all repositories of a Github user
curl -s https://api.github.com/users/milanboers/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone
@fiskr
fiskr / download-radiolab.sh
Created February 1, 2017 21:50
Download all Radiolab episodes
#!/bin/bash
# OSX, GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
for URL in $(curl -sL http://www.radiolab.org/archive/ | grep -i read-more | perl -pe 's/^.*?"(http.*?)".*$/$1/g' | sort -u); do curl -sL $URL | grep -i download | head -n 1 | perl -pe 's/^.*?download="(http.*?)".*$/$1/g' | xargs wget; done