Skip to content

Instantly share code, notes, and snippets.

View racerxdl's full-sized avatar
🔒
Invincible for those who don't have an screwdriver.

Lucas Teske racerxdl

🔒
Invincible for those who don't have an screwdriver.
View GitHub Profile
@racerxdl
racerxdl / start.sh
Created September 19, 2014 02:42
MPTCP Table Configuration
#!/bin/bash
modprobe usbnet
ifconfig eth0 10.0.5.149 netmask 255.255.255.0
ifconfig usb0 192.168.42.127 netmask 255.255.255.0
ip rule add from 10.0.5.149 table 1
ip rule add from 192.168.42.127 table 2
samba-tool dns update 127.0.0.1 DOMAIN HOSTNAME A OLDIP NEWIP
samba-tool dns update 127.0.0.1 DOMAIN @ A OLDIP NEWIP
samba-tool dns update 127.0.0.1 _msdcs.DOMAIN gc A OLDIP NEWIP
@racerxdl
racerxdl / S6 Reverse Touch
Created July 13, 2015 00:01
Fix Galaxy S6 Duos Rooting Touchscreen Reverse
Dial *#2663# in the dialer and update the thouch screen penal firmware by selecting 'TSP FW update (General)' button.
java -jar apktool_2.0.1.jar d file.apk
./dex2jar-2.0/d2j-dex2jar.sh file.apk
java -jar cfr_0_102.jar file-dex2jar.jar --outputdir src
@racerxdl
racerxdl / config.py
Created October 18, 2015 20:47
HC-08 Reconfigure
import serial
import time
PORT = "/dev/ttyUSB0" # If windows, change it to COMX
PINCODE = "1234" # Change it to your PIN
DEVNAME = "Gimbal" # Change it to your device name
BAUDRATE= 115200 # Change it to your target baudrate
CBAUDRATE= 9600 # Change it to your current baudrate. Factory Default 9600
@racerxdl
racerxdl / axispipe.py
Created October 22, 2015 21:03
Fixed AxisPipe with ATMEGA328
import serial
import struct
import os
import sys
import time
class AxisPipe:
def __init__(self, port):
self.port = port
self.serial = serial.Serial(port, 115200, timeout=0.01)
@racerxdl
racerxdl / nxdata.py
Created October 25, 2015 18:35
NX10/20 Parser of StepFever
#!/usr/bin/env python
from stepfever import *
import time
import struct
SUPRESS_PRINT = False
class NoteType:
Null = 0
Tap = 1
@racerxdl
racerxdl / telegram.py
Created November 19, 2015 21:47
Telegram Test
#!/usr/bin/env python
import requests
import json
token = "MY TOKEN"
groupId = 1234567
def getBot():
r = requests.get("https://api.telegram.org/bot%s/getMe" % token)
Congonhas Airport:
120.240MHz (AM)
120.450MHz (AM)
139.890MHz (AM)
Analog TV Signals:
---------------
67.225MHz Video
@racerxdl
racerxdl / huebot.js
Last active July 16, 2021 13:28
Telegram <=> Slack Bot
#!/usr/bin/env node
// npm install slackbots node-telegram-bot-api
var TelegramBot = require('node-telegram-bot-api');
var SlackBot = require('slackbots');
// create a bot
var sBot = new SlackBot({
token: 'your-slack-bot-token', // Add a bot https://my.slack.com/services/new/bot and put the token