Skip to content

Instantly share code, notes, and snippets.

View mackjoner's full-sized avatar

Funbeta mackjoner

View GitHub Profile
@mackjoner
mackjoner / surge.conf
Created May 7, 2019 14:30
My Surge.app config file
# My custom Surge.app configuration
# Proxy (most) traffic via Shadowsocks
[General]
loglevel = notify
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
dns-server = 208.67.222.222, 208.67.220.220
{
"terminal.explorerKind": "external",
"terminal.external.osxExec": "iterm2.app",
"editor.fontSize": 14,
"editor.fontFamily": "Menlo",
"workbench.colorTheme": "Atom One Dark",
"window.zoomLevel": 0,
"terminal.integrated.fontFamily": "Droid Sans Mono Dotted for Powerline",
"terminal.integrated.fontSize": 12,
"typescript.check.npmIsInstalled": false,
@mackjoner
mackjoner / heapster.yaml
Created November 13, 2018 10:15
heapster
apiVersion: v1
kind: ServiceAccount
metadata:
name: heapster
namespace: kube-system
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: heapster
算法学习 Golang 版 - 探索算法始末
=====================================
- [认识](#zero)
- [算法](#four)
- [结构](#three)
- [数学原理](#one)
- [其他常见问题](#two)
## <i id="zero"></i>认识
@mackjoner
mackjoner / fedora-atomic-host.md
Created February 2, 2018 09:11 — forked from jasonbrooks/fedora-atomic-host.md
running kubernetes on fedora atomic host

kubernetes all in one

grab an atomic host

$ vagrant init fedora/25-atomic-host
$ vagrant up
$ vagrant ssh
#!/usr/bin/python
# coding=utf8
import platform
import re
import time
import os
mirror_prefix = "--registry-mirror="
[settings]
# ~/.isort.cfg
line_length=120
#force_to_top=file1.py,file2.py
#skip=file3.py,file4.py
#known_future_library=future,pies
#known_standard_library=std,std2
#known_third_party=randomthirdparty
#known_first_party=mylib1,mylib2
#indent=' '
[flake8]
# ~/.config/flake8
# it's not a bug that we aren't using all of hacking, ignore:
# F812: list comprehension redefines ...
# H101: Use TODO(NAME)
# H202: assertRaises Exception too broad
# H233: Python 3.x incompatible use of print operator
# H301: one import per line
# H306: imports not in alphabetical order (time, os)
# H401: docstring should not start with a space
################################ GENERAL #####################################
daemonize yes
pidfile /data/redis/pid/redis.${port}.pid
port ${port}
tcp-backlog 511
timeout 0
tcp-keepalive 0
loglevel notice
logfile "/data/redis/logs/redis.${port}.log"
databases 16
@mackjoner
mackjoner / aws-ec2-redis-cli.md
Created November 29, 2017 09:45 — forked from paladini/aws-ec2-redis-cli.md
AWS redis-cli without redis server on AWS EC2

Setup redis-cli without the whole Redis Server on AWS EC2

This fast tutorial will teach you how to install redis-clion AWS EC2 without having to install the whole Redis Server. Firstly, SSH into your EC2 instance and run the following command:

$ sudo yum install gcc

This may return an "already installed" message, but that's OK. After that, just run:

$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make && sudo cp src/redis-cli /usr/local/bin/ && sudo chmod 755 /usr/local/bin/redis-cli