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
Verifying that "chulini.id" is my Blockstack ID. https://onename.com/chulini |
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 bash | |
if [ ! $# -eq 1 ]; then | |
echo "Usage: ./getopger <chapter>"; | |
exit 1; | |
fi | |
# Kapitel des Mangas | |
CHAPTER="$1" |
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
// 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`); |
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
# 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 |
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
# 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:] |