Skip to content

Instantly share code, notes, and snippets.

View gotodeploy's full-sized avatar
💭
looking for a job

gotodeploy

💭
looking for a job
View GitHub Profile
@gotodeploy
gotodeploy / sakoku_ufw.sh
Last active March 1, 2020 22:50 — forked from lewg/block_china_ufw.sh
UFW blocks for Asian countries except Japan
#!/bin/sh
# UFW blocks for Asian countries except Japan
# Based on http://www.wizcrafts.net/chinese-iptables-blocklist.html
# Cambodia (KH)
ufw deny from 114.134.184.0/21
# Chinese (CN) IP addresses follow:
ufw deny from 1.68.0.0/14
ufw deny from 1.80.0.0/13
@gotodeploy
gotodeploy / morse.js
Last active October 26, 2017 01:26
Wabun morse code (和文モールス信号)
var morse = {
'A': '.-',
'B': '-...',
'C': '-.-.',
'D': '-..',
'E': '.',
'F': '..-.',
'G': '--.',
'H': '....',
'I': '..',
@gotodeploy
gotodeploy / gist:657894fcaaf00d4afdb3
Created September 24, 2014 17:20
Some tricks for my OpenCV works
-Get thumbnail images every seconds of the full hd sized video(using avconv)
avconv -i video.3gp -s:v hd1080 -filter:v fps=fps=1 -an image%d.jpg
‘-s[:stream_specifier] size (input/output,per-stream)’
Set frame size.
As an input option, this is a shortcut for the ‘video_size’ private option, recognized by some demuxers for which the frame size is either not stored in the file or is configurable – e.g. raw video or video grabbers.
As an output option, this inserts the scale video filter to the end of the corresponding filtergraph. Please use the scale filter directly to insert it at the beginning or some other place.
@gotodeploy
gotodeploy / gist:8496809
Created January 18, 2014 21:33
Get all table names (comma separated) from "database_name".
SELECT GROUP_CONCAT(TABLE_NAME) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = "database_name";