Skip to content

Instantly share code, notes, and snippets.

View chulini's full-sized avatar

JQ chulini

View GitHub Profile
Verifying that "chulini.id" is my Blockstack ID. https://onename.com/chulini
@chulini
chulini / getopger.sh
Last active September 26, 2017 12:36 — forked from syranez/getopger.sh
get one piece mangas german subbed from onepiece-tube
#! /usr/bin/env bash
if [ ! $# -eq 1 ]; then
echo "Usage: ./getopger <chapter>";
exit 1;
fi
# Kapitel des Mangas
CHAPTER="$1"
@chulini
chulini / convert.js
Last active November 18, 2019 08:09
mp4 to webm video converter using ffmpeg
// How to use:
// 1.- Install node and ffmpeg
// 2.- node convert.js yourfilename.mp4
// (Will generate yourfilename.webm. Process is slow but works. Just be patient.)
const util = require('util');
const exec = util.promisify(require('child_process').exec);
const args = process.argv.slice(2);
let filename = args[0].split(".")[0];
console.log(`Converting ${filename}.mp4 to ${filename}.webm`);
# Setup
## Put you local changes to a new repo
```git init
git add -A .
git commit -m "first commit"
git remote add origin https://github.com/chulini/test.git
git push -u origin master```
# Push/Pull
@chulini
chulini / rename.py
Created March 16, 2021 19:43
python script to rename pdf files from "dd-mm-yyyy Filename.pdf" to "yyyy-mm-dd Filename.pdf"
# to rename pdf files from "dd-mm-yyyy Filename.pdf" to "yyyy-mm-dd Filename.pdf"
import os
def main():
for count, fullfilename in enumerate(os.listdir(".")):
file_name, file_extension = os.path.splitext(fullfilename)
if file_extension == ".pdf":
date = fullfilename[0:10].split('-')
newFilename = date[2]+"-"+date[1]+"-"+date[0]+fullfilename[10:]