Skip to content

Instantly share code, notes, and snippets.

@philomuzzi
philomuzzi / TranslateToChineseOnYouTube.user.js
Last active July 3, 2019 14:59 — forked from qwertyuiop6/TranslateToChineseOnYouTube.user.js
Translate to Chinese automatically. youtube自动翻译中文简体
// ==UserScript==
// @name 自动翻译->字幕中文简体
// @namespace http://tampermonkey.net/
// @version 0.1
// @description translate to Chinese automatically.
// @author qwertyuiop6
// @match https://www.youtube.com/watch*
// @require https://cdn.bootcss.com/jquery/3.4.0/jquery.min.js
// @grant none
// ==/UserScript==
@philomuzzi
philomuzzi / reinstall_docker
Created February 10, 2015 15:23
卸载重装docker
sudo docker -v
sudo apt-get remove docker
sudo apt-get remove --auto-remove docker
sudo apt-get remove --purge lxc-docker
sudo apt-get autoremove --purge
@philomuzzi
philomuzzi / convert_codec.py
Last active August 29, 2015 14:13
file codec converter
#-*- coding: utf-8 -*-
#pip install chardet
import codecs
import os
import shutil
import re
import chardet
@philomuzzi
philomuzzi / dnsmasq.conf
Created January 11, 2015 03:57
dnsmasq.conf
#dwb收集整理
#索尼系列主机加速
address=/www.ign.com/63.219.18.170
address=/assets.ign.com/63.219.18.170
address=/assets1.ignimgs.com/63.219.18.170
address=/.ww.np.dl.playstation.net/63.219.18.170
address=/a0.ww.np.dl.playstation.net/23.49.148.62
address=/a1.ww.np.dl.playstation.net/23.49.148.62
address=/gs-sec.ww.np.dl.playstation.net/23.49.148.62
@philomuzzi
philomuzzi / int2str
Created October 17, 2014 07:32
一种从数字到字符串的转换方式
#include "iostream"
#include "string"
using namespace std;
string int2str(int n) {
char t[24];
int i = 0;
while (n) {