This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var random = require("node-random"); | |
var argv = require('yargs') | |
.usage('Uso: $0 <número de inteiros> <número inicial> <número final>') | |
.demand(3) | |
.argv | |
var a = argv['_'] | |
random.integers({ | |
number: a[0], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from yandex_translate import YandexTranslate | |
import os | |
progresso=0 | |
translate = YandexTranslate('APIKEY') | |
with open('subs.srt') as f: | |
content = f.readlines() | |
tamanho=len(content) | |
saida = open('out.srt','w') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, json, time, os | |
subject = 'trains' | |
r = requests.get('http://8ch.net/b/catalog.json') | |
j = json.loads(r.text) | |
def download(url, name, thread): | |
filepath = './' + str(thread) + '/' + name | |
if not os.path.exists(filepath): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Eza's Image Glutton | |
// @namespace https://inkbunny.net/ezalias | |
// @author Ezalias | |
// @description Redirects to high-res images on gallery sites, skipping past descriptions and comments | |
// @license MIT | |
// @license Public domain / No rights reserved | |
// @include /^https*://www\.furaffinity\.net/(view|full)/.*/ | |
// @include https://inkbunny.net/submissionview.php* | |
// @include http://gelbooru.com/*page=post&s=view* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
python -m http.server 8009 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Use: ./8ch-downloader.py <thread url> | |
import requests, os, json, sys | |
def download(url, name, subject_path): | |
filepath = subject_path + '/' + name | |
if not os.path.exists(filepath): | |
print('Get got: ' + name) | |
r = requests.get(url, stream=True) | |
with open(filepath, 'wb') as f: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mpd import MPDClient | |
from requests import get | |
from json import loads | |
import subprocess | |
client = MPDClient(use_unicode=True) | |
client.connect("localhost", 6600) | |
p = False | |
SIZE = 3 # small: 0; medium: 1; large: 2; extralarge: 3; mega: 4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json, codecs | |
import rethinkdb as r | |
from mpd import MPDClient | |
from collections import OrderedDict | |
client = MPDClient(use_unicode=True) | |
client.connect("localhost", 6600) | |
pre = [] | |
mpd_albums = [] | |
last_albums = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import basc_py4chan, random | |
# WARNING: this part uses pseudo-random numbers before generating the true ones. | |
board = basc_py4chan.Board('b') | |
threads = board.get_threads(page=random.randint(0,6)) | |
random_thread = random.choice(threads) | |
numbers = [] | |
nn = 1 | |
for post in random_thread.posts: | |
numbers.append(post.comment) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zshrc .zshrc | |
vimrc .vimrc | |
tmuxconf .tmux.conf |
NewerOlder