Skip to content

Instantly share code, notes, and snippets.

View tofran's full-sized avatar
🚲

Francisco Marques tofran

🚲
View GitHub Profile
ping_DNS.sh is now in a [repository](https://github.com/ToFran/BashLoggers)
https://github.com/ToFran/BashLoggers
@tofran
tofran / Rainbow Tree Farm [RTC]
Last active August 29, 2015 14:11
Rainbow Tree Farm [RTC] - Computer Craft Mining Turtles Program
--Rainbow Tree Farm [RTC] - Computer Craft Mining Turtles Program
--Post (info & stuff): http://www.computercraft.info/forums2/index.php?/topic/20411-rainbow-tree-farm-program-rtc/
--by ToFran
local function DigAndForward(times)
times = times or 1
for i = 1,times do
turtle.dig()
turtle.forward()
end
@tofran
tofran / CONFIG.PIE
Created July 9, 2015 20:31
Glovepie script for 'Hercules dj mp3 e2' joystick mapping
// ###### Debug ######
//debug = PPJoy1.Analog0
// ###### Axes ######
//Joy 1 SLICDERS
PPJoy1.Analog0 = ((Midi1.cc52)*2) -1 //Verical esquerdo
PPJoy1.Analog1 = ((Midi1.cc57)*2) -1 //verical direito
PPJoy1.Analog2 = ((Midi1.cc56)*2) -1 //Horizontal
//Joy 2 Knobs Deck A
PPJoy2.Analog0 = ((Midi1.cc53)*2) -1 //TREBLE_DA
;by GeekBot and ToFran
SendMode Input
:*?:``a::á
:*?:``e::é
:*?:``i::í
:*?:``o::ó
:*?:``u::ú
:*?:``A::Á

Keybase proof

I hereby claim:

  • I am tofran on github.
  • I am tofran (https://keybase.io/tofran) on keybase.
  • I have a public key whose fingerprint is 80E0 1323 761F 16F4 2DBD 15A4 59BC 6A70 DDCC 3562

To claim this, I am signing this object:

@tofran
tofran / Album sorter
Last active September 29, 2016 22:00
Sort facebook albuns by likes, extremelly buggy, but it kinda works (make sure the album is fully loaded). 💩 #PoopCodeAlert
// ==UserScript==
// @name Album sorter
// @namespace tofran.com
// @version 0.1
// @description Sort facebook albuns by likes, extremelly buggy, but it works (make sure the album is fully loaded)
// @author tofran
// @match https://www.facebook.com/*/photos/?tab=album&album_id=*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I do not have access to my key 😨 80E0 1323 761F 16F4 2DBD 15A4 59BC 6A70 DDCC 3562 .
What happened: I was relying on keybase to manage my keys but unfortunately I do not have the password. I thought that having the paper wallet was enough to use keybase - looks like it unlocks the account but not the keys. I may be able to regain access to my password, but not in the near future, since is in my desktop, which I currently have no access.
So I present you, to my new keyFA4C 287B CB95 2CE1 5DBB 9D4F 242D 60F3 75F3 12C9
I have also signed a proof @github, you can find it here . Sory for the inconvenience.
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCAAGBQJa1n0RAAoJECQtYPN18xLJnSwP/R7sS9nkSJpbqUbWosaPhaR4
const findCacheDir = require('find-cache-dir');
const Cache = require("file-system-cache").default;
const cache = Cache({
basePath: findCacheDir({ name: 'storybook' }),
ns: 'storybook'
});
const cache_data = {
success: true,
@tofran
tofran / iLoConsoleShortcut.js
Created April 19, 2020 18:55
Userscript to add a shortcut to the HTML5 console in HP's iLo UI
// ==UserScript==
// @name HP iLo 4 console shortcut
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Adds a quick link to the HTML5 console in HP's iLo UI. Make sure you match the script to your server(s) IPs
// @author tofran
// @match https://<YPUR_SERVER_IP_HERE>/html/masthead.html
// @grant none
// ==/UserScript==
@tofran
tofran / nbt-copy.py
Created December 26, 2020 00:34
Copy minecraft NBT properties from one file into another
#!/usr/bin/env python3
# Copy minecraft NBT properties from one file into another
# Usage:
# ./nbt-copy.py <source_file> <destination_file> <property> [properties]
#
# Requires nbt:
# pip install nbt
import argparse