Skip to content

Instantly share code, notes, and snippets.

View leafsummer's full-sized avatar
🎯
Focusing

LeafSummer leafsummer

🎯
Focusing
View GitHub Profile
@leafsummer
leafsummer / schemeLearning
Created March 11, 2016 03:15 — forked from tiye/schemeLearning
Scheme 学习笔记
在线版本:
http://docview.cnodejs.net/leaf/notes/scheme/scheme.lx?lx
打算学`Scheme`, 搜了不少尝试去理解, 中文资源不如`JS`多
`IBM`社区`5+`篇文章, 下面两篇介绍语法方面比较清晰
http://www.ibm.com/developerworks/cn/linux/l-schm/index1.html
http://www.ibm.com/developerworks/cn/linux/l-schm/index2.html
关于历史掌故可以看下面这篇了解下, 比较乱, 我没有细看
http://blog.chinaunix.net/space.php?uid=20106293&do=blog&id=142113
`scm`的规范简介有力, 真的很短, 入门后去看下
@leafsummer
leafsummer / serverspeeder-all.sh
Created April 8, 2016 05:22 — forked from rptec/serverspeeder-all.sh
锐速破解版一键安装。
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
#定义变量
#授权文件自动生成url
APX=http://soft.91yun.org/soft/serverspeeder/apx1.php
#安装包下载地址
INSTALLPACK=http://soft.91yun.org/soft/serverspeeder/91yunserverspeeder.tar.gz
@leafsummer
leafsummer / vagrant_reset_ssh
Created May 23, 2016 01:34 — forked from cxfksword/vagrant_reset_ssh
vagrant ssh重置
默认vagrant私钥路径:
%userprofile%\.vagrant.d\insecure_private_key
当vagrant探测到是默认公钥时,vagrant up时会自动生成一个新的ssh key:
查看vagrant私钥路径:
λ vagrant ssh-config
Host default
HostName 127.0.0.1
User vagrant
Port 2222
@leafsummer
leafsummer / jupyter
Created July 18, 2016 07:21 — forked from doowon/jupyter
A service (init.d) script for jupyter
#! /bin/sh
### BEGIN INIT INFO
# Provides: jupyter
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start jupyter
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@leafsummer
leafsummer / gist:435abbdb5b8aca703313e9028ebb0b36
Created August 7, 2016 07:54 — forked from fernandoaleman/gist:5083680
How to update VirtualBox Guest Additions with vagrant
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
@leafsummer
leafsummer / gist:cef0a511c0e99960420271f999225487
Created September 1, 2016 04:12 — forked from sunggun-yu/gist:4416430
Install NMON - CentOS 64bit
# Get Root
sudo su
# Download NMON archive
cd /tmp
wget http://nmon.sourceforge.net/docs/MPG_nmon_for_Linux_14a_binaries.zip
# Install unzip if you don't have
yum install unzip
@leafsummer
leafsummer / phabricator_readme.md
Created September 29, 2016 10:57 — forked from sparrc/phabricator_readme.md
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu Installation Guide

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install bonus packages:

# apt-get install mercurial subversion python-pygments sendmail imagemagick

Create necessary users and add phd-user to sudoers:

@leafsummer
leafsummer / elasticsearch.yml
Created October 9, 2016 03:53 — forked from reyjrar/elasticsearch.yml
ElasticSearch config for a write-heavy cluster
##################################################################
# /etc/elasticsearch/elasticsearch.yml
#
# Base configuration for a write heavy cluster
#
# Cluster / Node Basics
cluster.name: logng
# Node can have abritrary attributes we can use for routing
@leafsummer
leafsummer / tmux-cheatsheet.markdown
Created May 28, 2018 06:00 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表

Tmux 快捷键 & 速查表

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

tmux at [-t 会话名]
@leafsummer
leafsummer / gist:8b74d99bee233514db8f96239a2fb004
Created April 10, 2021 09:40 — forked from david415/gist:8274636
/etc/ufw/before.rules - for use with tor...
#
# rules.before
#
# Rules that should be run before the ufw command line added rules. Custom
# rules should be added to one of these chains:
# ufw-before-input
# ufw-before-output
# ufw-before-forward
#