Skip to content

Instantly share code, notes, and snippets.

View theAkito's full-sized avatar
💭
Never complain, never explain.

Akito theAkito

💭
Never complain, never explain.
View GitHub Profile
@scarlson
scarlson / playlist.sh
Last active August 25, 2024 03:17
Bash script to create .m3u playlist files for all mp3s in subdirectories
#!/bin/bash
#
# bash script to create playlist files in music subdirectories
#
# Steve Carlson ([email protected])
find . -type d |
while read subdir
do
rm -f "$subdir"/*.m3u
@jonpacker
jonpacker / gist:2107554
Created March 19, 2012 10:59
Force unmount a nonresponsive SSHFS
kill -9 <sshfs pid>
fusermount -u <mountpoint>
@fish2000
fish2000 / iphonebackupdb-by-markus-stenberg.py
Created October 28, 2012 12:00
Python scripts for pillaging data from iOS backup files
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
#
# http://www.employees.org/~mstenber/iphonebackupdb.py
#
# $Id: iphonebackupdb.py,v 1.2 2010/05/28 08:30:38 mstenber Exp $
#
# Author: Markus Stenberg <[email protected]>
#
@martinrusev
martinrusev / imap-search
Last active November 4, 2024 12:46
IMAP Search criteria
@kn9ts
kn9ts / GPLv3.md
Last active November 6, 2024 08:39
GPLv3 explained

GPL3 LICENSE SYNOPSIS

TL;DR* Here's what the license entails:

1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.
@zmwangx
zmwangx / .gitignore
Last active July 12, 2024 17:25
This program demonstrates how to correctly use openpty(3) from libutil on Linux to execute a command that must be run in a tty, and capture its (arbitrarily long) output.
pty
pty.o
@hasherezade
hasherezade / aes_crypt.cpp
Last active August 6, 2024 15:31
AES 128 - encrypt/decrypt using Windows Crypto API
#include <Windows.h>
#include <wincrypt.h>
#include <stdio.h>
#pragma comment(lib, "advapi32.lib")
#define AES_KEY_SIZE 16
#define IN_CHUNK_SIZE (AES_KEY_SIZE * 10) // a buffer must be a multiple of the key size
#define OUT_CHUNK_SIZE (IN_CHUNK_SIZE * 2) // an output buffer (for encryption) must be twice as big
//params: <input file> <output file> <is decrypt mode> <key>
@so0k
so0k / kubectl.md
Last active September 11, 2024 08:36
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@itod
itod / split_keyboards.md
Last active November 14, 2024 19:07
Every "split" mechanical keyboard currently being sold that I know of