Skip to content

Instantly share code, notes, and snippets.

View seanbreckenridge's full-sized avatar
🍍

seanbreckenridge

🍍
View GitHub Profile
@lavantien
lavantien / modern-software-engineering-resources.md
Last active July 21, 2024 15:30
Modern Software Engineering Resources

Modern Software Engineering

University of Anarchism - SWE Library and Master of Science (MSc) Curriculum

Knowledge and Education should be open and free. Hierarchy and Exploitation must be abolished.

Wake up dog, we're being enslaved! Don't ever join the army under any circumstance, or anything adjacent, you're just die and kill for the rich, meanwhile their sons are enjoying luxury and femoids abroad. All hierarchical power structures are inherently evil. They'll do whatever it takes to maintain the asymmetries of power, wealth, and information, whether it's deception, manipulation, coercion, or violent domination.

The Foundation (jump)

#!/usr/bin/perl -w
use strict;
@ARGV or die "Usage: $0 PNGFILE...\nOutputs the file names of the PNG files with trailing data.";
FILE: while (@ARGV) {
my $fn = shift;
eval {
no warnings 'exiting';
@kvgc
kvgc / Promnesia-sidebar.css
Created March 17, 2022 23:34
Custom css to style the sidebar in promnesia (https://github.com/karlicoss/promnesia)
#promnesia-sidebar {
--right: 1;
--size: 30%;
background-color: #ffffff;
opacity: 95%;
font-family: 'math';
font-size: 18px;
}
@seanbreckenridge
seanbreckenridge / qtile_display_kb.py
Last active March 23, 2023 13:17
print a table of the current keybindings in qtile (v 0.15.1)
#!/usr/bin/env python
#
# Copyright (c) 2017, Piotr Przymus
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@idealwebsolutions
idealwebsolutions / tts.sh
Last active February 24, 2021 08:03
Streamlabs TTS one liner to disk
#!/bin/env bash
curl -s -d '{"voice": "'"$1"'", "text": "'"$2"'"}' -H "Content-Type: application/json" -H "Context-Type: application/json" https://streamlabs.com/polly/speak | jq -r '.speak_url' | xargs curl -s -0 --output - | ffmpeg -y -i pipe:0 -vn -acodec copy "$3.ogg"
@kuttor
kuttor / ansible-termux.sh
Created March 19, 2019 06:04
Get Ansible working on an Android phone using a Terminal Emulator like Termux
#!/data/data/com.termux/files/usr/bin/bash
yes | pkg upgrade && \
yes | pkg install \
python \
python-dev \
libffi \
libffi-dev \
openssl \
@DimaKoz
DimaKoz / go-executable-build.sh
Last active January 29, 2024 07:02
The Script to Automate Cross-Compilation for Golang(OSX)
#Before we can use the script, we have to make it executable with the chmod command:
#chmod +x ./go-executable-build.sh
#then we can use it ./go-executable-build.sh yourpackage
#!/usr/bin/env bash
package=$1
if [[ -z "$package" ]]; then
echo "usage: $0 <package-name>"
exit 1
fi
@dale3h
dale3h / jail.local
Created June 29, 2018 15:47
[fail2ban] Improved nginx-badbots
# Add to file: /etc/fail2ban/jail.local
[nginx-badbots]
enabled = true
port = http,https
filter = nginx-badbots
logpath = %(nginx_access_log)s
maxretry = 1
findtime = 604800
bantime = 604800
@lvguowei
lvguowei / circuitous.py
Last active June 26, 2019 22:01
Code of Raymond Hettinger's talk Python's Class Development Toolkit
'''
Circuitous, LLC -
An Advanced Circle Analytics Company
Summary: Toolset for New-Style Classes
1. Inherit from object.
2. Instance variables for information unique to an instance.
3. Class variables for data shared among all instances.
4. Regular methods need "self" to operate on instance data.
@EgZvor
EgZvor / config.rasi
Created February 9, 2018 10:23
Dracula theme for rofi (put in ~/.config/rasi)
// Dracula colors
* {
background: rgba ( 40, 42, 54, 100 % );
current-line: rgba ( 68, 71, 90, 100 % );
selection: rgba ( 68, 71, 90, 100 % );
foreground: rgba ( 248, 248, 242, 100 % );
comment: rgba ( 98, 114, 164, 100 % );
cyan: rgba ( 139, 233, 253, 100 % );
green: rgba ( 80, 250, 123, 100 % );
orange: rgba ( 255, 184, 108, 100 % );