Skip to content

Instantly share code, notes, and snippets.

View hi20160616's full-sized avatar
:octocat:
I may be slow to respond.

hi20160616

:octocat:
I may be slow to respond.
View GitHub Profile
@wedojava
wedojava / hexo2hugo.py
Created July 26, 2020 10:41
This is written for convert from hexo to hugo, also migrate from hexo to hugo.
import os
import os.path
def walk_over(w_path):
"""Walk in w_path folder and get all filenames back
:w_path: walk folder path
:returns: the filename list
@sidneys
sidneys / youtube_format_code_itag_list.md
Created January 20, 2018 11:12
YouTube video stream format codes itags

YouTube video stream format codes

Comprehensive list of YouTube format code itags

itag Code Container Content Resolution Bitrate Range VR / 3D
5 flv audio/video 240p - - -
6 flv audio/video 270p - - -
17 3gp audio/video 144p - - -
18 mp4 audio/video 360p - - -
22 mp4 audio/video 720p - - -
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@SchumacherFM
SchumacherFM / db.go
Created February 15, 2015 00:13
GoLang Database SQL: Selecting an unknown amount of columns from a query. Benchmark results in db_test.go
package main
import (
"database/sql"
"fmt"
_ "github.com/go-sql-driver/mysql"
"log"
)
const (