Skip to content

Instantly share code, notes, and snippets.

View HumanG33k's full-sized avatar
🐒
I may be slow to respond.

HumanG33k HumanG33k

🐒
I may be slow to respond.
View GitHub Profile
If you want to play on HumbleBundle edition of Torchlight you need old libSDL2 library.
Someone forgotten about that.
With latests libSDL2 it won't work. You will have issues with mouse pointer.
Cursor will have black outline. You won't be able to click on anything etc.
So I prepared modified libSDL2 lib which will able you to play this game with no issues.
https://drive.google.com/file/d/0B1WBC6JhUyLKZDRrTkxMVzA3S28/edit?usp=sharing
That's those libSDL libs. You need to copy it to lib64 dir where you've installed Torchlight, in my case it was /home/kkszysiu/.games/Torchlight/lib64/
@HumanG33k
HumanG33k / magnet.java
Created April 17, 2020 00:20 — forked from Muneefm/magnet.java
Generate Magnetic url from hash, JAVA code
public String generateMagneticUrl(String hash,String movieName) throws UnsupportedEncodingException {
//magnet:?xt=urn:btih:TORRENT_HASH&dn=Url+Encoded+Movie+Name&tr=http://track.one:1234/announce&tr=udp://track.two:80
String baseString = "magnet:?xt=urn:btih:"+hash+"&dn=";
String encodedMovieName = URLEncoder.encode(movieName, "utf-8").replace("+", "%20");
baseString+=encodedMovieName;
String tracker1 = "udp://open.demonii.com:1337/announce";
String tracker2 = "udp://tracker.openbittorrent.com:80";
String tracker3 = "udp://tracker.coppersurfer.tk:6969";
String tracker4 = "udp://glotorrents.pw:6969/announce";
@HumanG33k
HumanG33k / following.py
Created February 27, 2020 16:47 — forked from zedeus/following.py
Fetch Twitter following list
import requests, re, sys
url = "https://mobile.twitter.com/{}/following"
cursor = ""
usernames = []
first = True
if len(sys.argv) < 2:
print("Usage: python followers.py <username>")
quit(1)
@HumanG33k
HumanG33k / jessie2stretch.sh
Created September 26, 2018 18:34 — forked from waja/README.md
Migration from Debian Jessie to Stretch
Please also refer to http://www.debian.org/releases/stretch/releasenotes and use your brain!
# upgrade to UTF-8 locales (http://www.debian.org/releases/stretch/amd64/release-notes/ap-old-stuff.en.html#switch-utf8)
dpkg-reconfigure locales
# remove unused config file
rm -rf /etc/network/options /etc/environment
# migrate over to systemd (before the upgrade) / you might want reboot if you install systemd
@HumanG33k
HumanG33k / README.md
Created August 22, 2018 15:27
Mutt + gmail + isync mbsync + multiple accounts

Mutt + isync multiple accounts

Mutt mail with multiple gmail accounts synced by mbsync, easy to browse in just one keypress. iSync (aka mbsync) is modular, handles multiple accounts (Gmail, Yahoo, Outlook) with ease, and syncs much faster than IMAP.

~/
|── .mutt/
|   β”œβ”€β”€ muttrc
|   β”œβ”€β”€ work
| └── work/
@HumanG33k
HumanG33k / plate-snitch.js
Created September 9, 2017 21:13 — forked from taitems/plate-snitch.js
(Extract) Check the status of a vehicle registration and scrape results.
// Open form and submit enquire for `rego`
function getInfo(rego) {
horseman
.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
.open(url)
.type('#registration-number-ctrl input[type=text]', rego)
.click('.btn-holder input')
.waitForSelector('.ctrl-holder.ctrl-readonly')
.html()
.then(function(body) {
@HumanG33k
HumanG33k / gist:0b6c21d693d21b9c3df11ec17ce22902
Created June 13, 2017 22:49 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

@HumanG33k
HumanG33k / upwned247.php
Created November 30, 2016 16:37 — forked from Wack0/upwned247.php
UCam247/Phylink/Titathink/YCam/Anbash/Trivision/Netvision/others IoT webcams : remote code exec: reverse shell PoC. (works only in qemu usermode)
<?php
/*
NB: THIS PoC ONLY WORKS IN QEMU USERMODE EMULATION!
If anyone wants to fix this, go ahead (no pun intended).
However, I don't have a vulnerable product and am unwilling to acquire one.
-------------------------
UCam247/Phylink/Titathink/YCam/Anbash/Trivision/Netvision/others
remote code exec: reverse shell PoC.