Skip to content

Instantly share code, notes, and snippets.

View feng409's full-sized avatar
😡
write bug

呃哦 feng409

😡
write bug
View GitHub Profile
@feng409
feng409 / gist:32d18e8b1be0f89335cf61a9f01d0029
Created August 11, 2019 09:34 — forked from econchick/gist:4666413
Python implementation of Dijkstra's Algorithm
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
self.nodes.add(value)
def add_edge(self, from_node, to_node, distance):
@feng409
feng409 / remove_thunder_ad_for_mac.sh
Created July 20, 2019 06:12
remove_thunder_ad_for_mac
#!/bin/bash
rm -rf /Applications/Thunder.app/Contents/PlugIns/advertising.xlplugin
rm -rf /Applications/Thunder.app/Contents/PlugIns/featuredpage.xlplugin
rm -rf /Applications/Thunder.app/Contents/PlugIns/activitycenter.xlplugin
rm -rf /Applications/Thunder.app/Contents/PlugIns/iOSThunder.xlplugin
rm -rf /Applications/Thunder.app/Contents/PlugIns/livestream.xlplugin
rm -rf /Applications/Thunder.app/Contents/PlugIns/myvip.xlplugin
rm -rf /Applications/Thunder.app/Contents/PlugIns/softmanager.xlplugin
rm -rf /Applications/Thunder.app/Contents/PlugIns/xiazaibao.xlplugin
@feng409
feng409 / authorinfo
Created June 20, 2019 08:00
Jetbrain IDE authorinfo comment live template like authorinfo.vim
$blockcomment_start$
$row_comment$ ===================$filename$=======================================
$row_comment$ Desc: $desc$
$row_comment$ Author: $user$
$row_comment$ Email: eoyohe@gmail.com
$row_comment$ HomePage: eoyohe.cn
$row_comment$ Version: 0.0.1
$row_comment$ LastChange: $DATE$ $TIME$
$row_comment$ History:
$row_comment$ =============================================================================
@feng409
feng409 / jupyter-notebook.service
Created May 25, 2018 15:25
raspberry pi jupyter notebook service
#==============================================================================
# FileName: jupyter-notebook.service
# Desc: raspberry pi jupyter notebook service
# Author: chemf
# Email: eoyohe@gmail.com
# HomePage:
# Version: 0.0.1
# LastChange: 2018-05-25 22:01:54
# History:
#==============================================================================
# vim /etc/grub.d/40_custom
menuentry "System shutdown" {
echo "System shutting down..."
halt
}
menuentry "System restart" {
echo "System rebooting..."
reboot
@feng409
feng409 / shadowsocksR.service
Created October 2, 2017 15:41
custom systemd unit
;=============================================================================
; FileName: shadowsocksR.service
; Desc: LastChange
; Author: chemf
; Email: chemf01@163.com
; HomePage:
; Version: 0.0.1
; LastChange: 2017-10-02 23:18:00
; History:
;=============================================================================
@feng409
feng409 / smb.conf
Created August 4, 2017 16:18
samba配置文件
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
@feng409
feng409 / aria2.conf
Created August 4, 2017 16:12
aria2配置文件
#文件保存目录
dir=/home/pi/Downloads
#因为垃圾运营商还没有ipv6,获取了也没有,关掉
disable-ipv6=true
#打开rpc给等会的web管理界面用
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
#rpc-listen-port=6800
#允许断点续传
@feng409
feng409 / vimrc
Last active February 1, 2019 01:08
profile
"=============================================================================
" FileName: .vimrc
" Desc: 一个vimer的配置
" Author: chemf
" Email: eoyohe@gmail.com
" HomePage: eoyohe.cn
" Version: 0.0.1
" LastChange: 2018-08-26 18:21:39
" History:
"=============================================================================