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 argparse | |
import glob | |
import os | |
import re | |
import sys | |
import instaloader | |
def json_type(filename: str): |
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/python | |
# Copyright (C) Pavel Kryukov 2017 | |
from PIL import Image | |
import imagehash | |
import os | |
import shelve | |
import shutil | |
import re | |
import argparse | |
from tqdm import tqdm |
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
// Connect your ET6202 pins and adapt constants below accordingly | |
const int kPinStb = 4; // Serial interface command mode port | |
const int kPinClk = 3; // Clock input port | |
const int kPinData = 2; // Data input and output port | |
/** | |
* Command (aka Order) to send to the chip. | |
*/ | |
enum Order { |
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
# Add an "alert" alias for long running commands. Use like so: | |
# sleep 10; alert | |
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" \ | |
"$(history|tail -n1|sed -e '\''s/^\s *[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' | |
alias ls='ls --color=auto' | |
pid() { | |
ps -e | sed -n "s/^[^0-9]*\([0-9]*\).*""$1"".*\$/\1/p" | |
} |
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
/* Print some OpenCL parameters of all available devices. | |
* | |
* Compile with | |
* cc -o queryocl queryocl.c -lOpenCL | |
* eventually you need to pass -I and -L options. | |
* | |
* Then call with | |
* ./queryocl | |
*/ |