Skip to content

Instantly share code, notes, and snippets.

Eliran Gonen elig0n

Block or report user

Report or block elig0n

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View youtube-dl.ahk
Gui, YTDL:New, , Youtube-DL
Gui, Add, Edit, R1 W400 vUrl, URL
Gui, Add, Checkbox, vAudio, Audio
Gui, Add, Button, Default w80 gOK, OK
Gui, Show
Return
OK:
Gui, Submit
audio_option := ""
@elig0n
elig0n / clower.py
Created Jun 29, 2019
Print a file/stdin to terminal character-by-character at a given speed
View clower.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import sys
if len(sys.argv) < 3:
sys.stderr.write("Need two arguments: file/- delay\n")
sys.exit(-1)
@elig0n
elig0n / magname.py
Created Jun 29, 2019
Fetch torrents names from magnet URLs
View magname.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Description- Fetch torrents names from magnet URLs
# Usage- Supply a filename argument containing magnet URLS or use '-' for stdin
import sys
import time
import libtorrent as lt
IFACE = "0.0.0.0"
@elig0n
elig0n / percent decode file
Last active Feb 20, 2019
Python script to percent decode a file
View percent decode file
import sys
if (len(sys.argv) < 2):
print("Please specify filename")
sys.exit(1)
if (sys.version_info[0] == 3):
from urllib import parse as urllib
else:
import urllib
View Browser.vim
function! Browser ()
let line = getline (".")
let line = matchstr (line, "http\\=:.[^ ,;\t]*")
exec "!\"C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe\"\ " . line
endfunction
map <Leader>B :call Browser ()<CR>
View AndroidXMLDecompress.java
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
class AndroidXMLDecompress {
// decompressXML -- Parse the 'compressed' binary form of Android XML docs
// such as for AndroidManifest.xml in .apk files
View gist:c0d6e6f3090630823e54e23b90779179
alias np {
sockclose vlc
sockopen vlc localhost 8080
}
on *:sockopen:vlc:{
if $sockerr > 0 { echo -at vlc not running | sockclose vlc }
sockwrite -n $sockname GET /requests/status.xml HTTP/1.1
sockwrite -n $sockname Host: localhost
sockwrite -n $sockname Authorization: Basic $encode(:XXX,m) ; password comes after colon
View ynet_disable_auto_refresh.user.js
// Ynet Disable Auto Refresh by eligon
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
You can’t perform that action at this time.