Credits to @TheOnlyAnil-@Firelord[^stackoverflow]
-
Requirements: a) stock recovery + rooted phone b) custom recovery
-
Files changed:
<?php | |
/***** EDIT BELOW LINES *****/ | |
$DB_Server = "localhost"; // MySQL Server | |
$DB_Username = "username"; // MySQL Username | |
$DB_Password = "password"; // MySQL Password | |
$DB_DBName = "databasename"; // MySQL Database Name | |
$DB_TBLName = "tablename"; // MySQL Table Name | |
$xls_filename = 'export_'.date('Y-m-d').'.xls'; // Define Excel (.xls) file name | |
/***** DO NOT EDIT BELOW LINES *****/ |
// How to download telegram sticker images | |
/* | |
1. Go to Telegram Web; | |
2. Open console (F12); | |
3. Paste the code below in the console and press Enter; | |
4. Open your stickers menu and make sure you see the sticker pack you want to download (so Telegram will load it). | |
5. At the console paste and run "downloadStickers()" any time you want to download a pack. | |
6. [Convert .webm to another format](http://www.freewaregenius.com/convert-webp-image-format-jpg-png-format/); | |
7. Happy hacking. |
/* Arduino program for DIY FSK RFID Reader | |
* See description and circuit diagram at http://playground.arduino.cc/Main/DIYRFIDReader | |
* Tested on Arduino Nano and several FSK RFID tags | |
* Hardware/Software design is based on and derived from: | |
* Arduino/Timer1 library example | |
* June 2008 | jesse dot tane at gmail dot com | |
* AsherGlick: / AVRFID https://github.com/AsherGlick/AVRFID | |
* Micah Dowty: | |
* http://forums.parallax.com/showthread.php?105889-World-s-simplest-RFID-reader | |
* |
# https://gist.github.com/gretel/73fb72ff48db4cfea71a650f4cc72ba7 | |
# based on example at https://github.com/pupil-labs/pyuvc | |
# install libuvc and pyuvc - see https://github.com/pupil-labs/pyuvc/blob/master/README.md | |
# install pygame (pip install pygame) | |
import uvc | |
import sys | |
import logging | |
import pygame | |
from pygame.locals import * |
Hacking CORS restriction to enable in-browser XHR to any server.
Say you are running an web app at localhost, and you want to send XHR to http://remote-server:80
, but the CORS restriction forbids access because you are sending requests from an origin that remote-server:80 does not allow.
Run:
IPTables is the Firewall service that is available in a lot of different Linux Distributions. While modifiying it might seem daunting at first, this Cheat Sheet should be able to show you just how easy it is to use and how quickly you can be on your way mucking around with your firewall.
The following list is a great set of documentation for iptables
. I used them to compile this documentation.
# Ubuntu 16.04, php 7.0
sudo apt-get install php-xdebug
# Ubuntu 14.04, php 5.6
sudo apt-get install php5-xdebug
#!/bin/bash | |
# This is a companion script to https://github.com/konstantin-kelemen/arduino-amiibo-tools | |
# The original post this was crafted for was https://games.kel.mn/en/create-amiibo-clones-with-arduino/ | |
# For more info go to https://games.kel.mn/en/companion-script-to-simplify-amiibo-cloning-with-arduino/ | |
#requirements: | |
#sha1sum (part of coreutils) | |
#xxd (part of vim) | |
#hexdump | |
#amiitool (https://github.com/socram8888/amiitool) |
"use strict"; | |
const fs = require("fs"); | |
const path = require("path"); | |
const FS_OPTS = {encoding: "utf8"}; | |
// const RE_RAP = /;([^;]+\.rap);([0-9a-f]+);/ig; | |
const RE_RAP = /;([0-9a-z_\-]+\.rap);([0-9a-f]{32,32});/ig; |