Skip to content

Instantly share code, notes, and snippets.

View iexa's full-sized avatar
💭
yorkie = lambda woof, bark: {bark: woof}

CsabaK iexa

💭
yorkie = lambda woof, bark: {bark: woof}
View GitHub Profile
@iexa
iexa / dl.js
Last active April 25, 2020 16:26
mass files downloader using node.js + json file. {also for es6 concepts}
// dl.js script, dl.json is {'folder_name1': [url1, url2, url3, ...], 'folder_name2': [...], ...}
//
// 1st "major" mod - now uses async "threads" to download several files at once. m.o. is not the
// best way to do it; but it saves some time and does not overwhelm servers
//
// examples for data scraping :D
// a = document.querySelectorAll('ul#list>li>a.folder')
// JSON.stringify(Array.prototype.map.call(a, i => decodeURI(i.href.split('/').reverse()[1])))
//
// ... and files from inside folders:
@iexa
iexa / mass-unpack.py
Last active March 30, 2021 01:47
unpack scene release files (double-packed .rar files) with python
"""
unpacks rar files that are double-packed
-usually scene-release files are packed this way
"""
__author__ = 'iexa'
from pathlib import Path
import rarfile as rf
from time import time
# import zipfile as zf
@iexa
iexa / python-with-tcl.rb
Last active October 22, 2024 12:40
MacOS homebrew python 3.8.6 with tcl-tk (properly)
class Python < Formula
desc "Interpreted, interactive, object-oriented programming language"
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tar.xz"
sha256 "a9e0b79d27aa056eb9cce8d63a427b5f9bab1465dee3f942dcfdb25a82f4ab8a"
head "https://github.com/python/cpython.git"
license "Python-2.0"
revision 1
bottle do