Skip to content

Instantly share code, notes, and snippets.

View idolpx's full-sized avatar
🏠
Working from home

Jaime Idolpx idolpx

🏠
Working from home
View GitHub Profile
@SukkoPera
SukkoPera / SukkosRetroStuff.md
Last active February 8, 2024 04:09
SukkoPera's Retrogaming/Retrocomputing Projects

SukkoPera's Retrogaming/Retrocomputing Projects

All the projects below are Open Hardware or Free Software, please refer to the license of the individual project for more details.

Note that the repositories of some projects might be private and thus inaccessible. This means that the projects is still in development but it should be released soon.

Amiga

Mainboard & CPU

  • Raemixx500: Open Hardware remake of the Commodore Amiga 500+ mainboard, revision 8A.1
@luigidifraia
luigidifraia / append-boot-name-to-tap-files.sh
Last active September 5, 2020 19:29
Rename TAP files to include the name of the first CBM ROM file therein
#!/bin/bash
# Pre: make sure you have the find-rom-name binary available in your PATH
# binaries available @ https://www.luigidifraia.com/software/#Filename_extractors
for filename in *.TAP; do
echo -n "Parsing $filename: "
cbm_name=$(find-rom-name "$filename" | grep "^FOUND:" | awk '{ print $2 }' | sed -e "s/\"//g")
if [ ! -z $cbm_name ]; then
mv "${filename}" "${filename%.*}_${cbm_name}.${filename##*.}"
@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active May 14, 2024 18:33 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@mtrovilho
mtrovilho / Aircrack Commands
Last active January 11, 2020 21:08 — forked from victorreyesh/Aircrack Commands
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
// Install the latest Xcode, with the Command Line Tools.
// Install Homebrew
// Install aircrack-ng:
brew install aircrack-ng
// Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/sbin/airport
// Figure out which channel you need to sniff:
sudo airport -s
# This might break all the things. Be careful.
#
# So I got a new Kodi media thing.
# And I wanted to create a new (clear) library.
# But I also wanted to keep watched status for things I'd watched.
# What follows are manual steps I took.
#
# dump the data on the old server
sqlite3 ~/.kodi/userdata/Database/MyVideos93.db
@msrose
msrose / combining-git-repositories.md
Last active May 18, 2024 16:40
How to combine two git repositories.

Combining two git repositories

Use case: You have repository A with remote location rA, and repository B (which may or may not have remote location rB). You want to do one of two things:

  • preserve all commits of both repositories, but replace everything from A with the contents of B, and use rA as your remote location
  • actually combine the two repositories, as if they are two branches that you want to merge, using rA as the remote location

NB: Check out git subtree/git submodule and this Stack Overflow question before going through the steps below. This gist is just a record of how I solved this problem on my own one day.

Before starting, make sure your local and remote repositories are up-to-date with all changes you need. The following steps use the general idea of changing the remote origin and renaming the local master branch of one of the repos in order to combine the two master branches.

@staltz
staltz / introrx.md
Last active May 20, 2024 14:59
The introduction to Reactive Programming you've been missing
@andrzejressel
andrzejressel / aria2
Created January 2, 2014 10:37
init.d file for aria2c daemon (debian)
#!/bin/sh
### BEGIN INIT INFO
# Provides: aria2
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: aria2c init script.