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
CONVERT = convert | |
IMFLAGS = -verbose -colorspace gray -median 3x3 -resize 300% -blur 10 | |
TESSERACT = tesseract | |
RM = rm | |
SRCS = $(wildcard *.pbm) | |
INTERMEDIATES = ${SRCS:.pbm=.tiff} | |
RESULTS = ${SRCS:.pbm=.txt} |
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
#!/bin/sh | |
# | |
# Denumerate all files | |
for weekday in [0-9]* | |
do | |
cd "$weekday" | |
for file in * | |
do | |
if [ "$file" == "url.txt" ] |
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
#!/bin/sh | |
# | |
# Rip files from the specified file using dd and file | |
# | |
# Copyright (C) 2017 Wincent Balin | |
# Check for supplied filename | |
if [ -z "$1" ] | |
then | |
echo Usage: ripper.sh file_to_rip |
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
$x('//div[@class="content"]').forEach(function(el) { console.log(el.innerHTML); console.log('----'); }) |
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 python | |
""" | |
Cut videos specified in the description file using FFMPEG. | |
""" | |
import os | |
import sys | |
import subprocess | |
import argparse |
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
@echo off | |
if "%1" == "" goto start_without_arguments | |
:start_with_arguments | |
start /B python -m idlelib.idle %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
exit /B | |
:start_without_arguments | |
python -m idlelib.idle |
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
#include <QCoreApplication> | |
#include <QTextStream> | |
#include <QSqlDatabase> | |
#include <QSqlQuery> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); | |
QTextStream out(stdout); | |
QTextStream err(stderr); |
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
#!/bin/sh | |
pcal -o june.ps -P a4 -M -F 1 -E 01 2018 | |
ps2pdf june.ps |
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
#!/bin/sh | |
docker rm $(docker ps -a -q) |
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
#!/bin/sh | |
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}") |
OlderNewer