Skip to content

Instantly share code, notes, and snippets.

@febs
febs / Tabletop Simulator Gold theme
Last active May 6, 2022
Tabletop Simulator gold theme
View Tabletop Simulator Gold theme
name Gold
button_normal #CDBF1A
button_hover #52556C
button_pressed #8E8E8E
button_disabled #8E8E8E
button_highlight_a #6272A4
button_highlight_b #FF5555
button_highlight_c #F52D00
button_neutral #5E521E
@febs
febs / Clean Samsung Galaxy A40 bloatwares
Last active Oct 1, 2021 — forked from joaofl/Clean Samsung Galaxy A40 bloatwares
Script I used to clean preinstalled shit out of my brand new Samsung A40 (while there is still no LineageOS for it)
View Clean Samsung Galaxy A40 bloatwares
#!/bin/sh
# ref: https://piunikaweb.com/2019/03/25/samsung-galaxy-s10-remove-bundled-bloatwares-without-root/
# install the following app to see the packages names:
# use the following command to generate the unistall command, for easy copy and paste:
# adb shell 'pm list packages' | sed -e 's/^/adb uninstall --user 0 /' | grep FILTER_HERE | sort
#things to install if removing keyboard
# F-Droid
# APK Analyser
View test.lua
-- library
local json = {}
-- Internal functions.
local function kind_of(obj)
if type(obj) ~= 'table' then return type(obj) end
@febs
febs / sort-roms-for-ezflashjr.py
Last active Feb 11, 2020
Script to unzip and sort Gameboy and Gameboy color ROMs for the EzFlash - Jr flash cart so to bypass its limitations
View sort-roms-for-ezflashjr.py
#!/usr/bin/env python3
import os # to create the output folder
import shutil # to copy files into it
import zipfile # to unzip stuff (the EzFlash Jr does not support zipped ROMs)
# let's put a warning here and ask the user if she wants to proceed or not.
try:
input ("""
You are sorting the files in """ + os.getcwd() + """.
View stations.csv
name id region region_code city lat lon
ABANO TERME S05700 Veneto 12 A 45.355199 11.811533
ABBADIA LARIANA S01416 Lombardia 1 A 45.895864 9.335175
ABBASANTA S12873 Sardegna 20 A 40.128801 8.817733
ABBIATE GUAZZONE N00018 N/A N/A N/A N/A N/A
ABBIATEGRASSO S01062 Lombardia 1 A 45.400631 8.921305
ACATE S12409 Sicilia 14 A 36.996592 14.42545
ACCIANO S07423 Abruzzo 19 A 42.175994 13.711345
ACERRA S09215 Campania 18 A 40.939066 14.372243
ACIREALE S12328 Sicilia 14 A 37.600514 15.163697
@febs
febs / create-jekyll-post.sh
Created Dec 8, 2015 — forked from mviitanen/create-jekyll-post.sh
A shell script to create a new jekyll post. Maybe there is an easier way, but this script generates a basic markdown post for jekyll. It has head matter, samples of some common formatting, and a link to a more complete documentation of the format.
View create-jekyll-post.sh
#!/bin/bash
if [ "$#" -ne 1 ] ; then
echo "Usage: $0 <title>" >&2
exit 1
fi
title=`echo "$1" |sed 's/ /-/g'`
fileName="_posts/`date +%Y-%m-%d-$title.markdown`"
View intelectual_property.txt
Keeping medicines from the blood streams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons. Intellectual property is
to the 21st century what the slave trade was to the 16th.