Skip to content

Instantly share code, notes, and snippets.

View cyrixhero's full-sized avatar
🏠
Working from home

Cyrix Zhan cyrixhero

🏠
Working from home
View GitHub Profile
@cyrixhero
cyrixhero / make_zero_seed.md
Created May 17, 2022 11:54 — forked from leafsummer/make_zero_seed.md
zeronet auto make seed

Become a Seeder: If you have a spare node (like a Raspberry PI with external HDD), you can setup a ZeroNet node here, which can automatically download and seen each new site published here.

Script to download new sites:


ZERO_DIR=~/ZeroNet-master
ZERO_HOST=127.0.0.1
@cyrixhero
cyrixhero / emacs-email-setup.md
Last active January 16, 2019 04:13 — forked from areina/emacs-email-setup.md
Manage your email in emacs with mu4e

Manage your gmail account in emacs with mu4e

There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.

The stack:

  • emacs
  • offlineimap
  • mu
  • mu4e
BEWARE: THIS GUIDE IS OUTDATED
#
# this is a howto for an i2p inproxy from the best of my recollection
# you will need: nginx, squid3, polipo, i2p and a good vps provider that doesn't suck ass
#
# this setup uses nginx as load balancer + logger, squid for transparent proxy and polipo for interfacing with i2p socks proxy
#
# client => nginx -> squid -> polipo -> i2p socks -> i2p => eepsite
#
### Keybase proof
I hereby claim:
* I am cyrixhero on github.
* I am cyrixhero (https://keybase.io/cyrixhero) on keybase.
* I have a public key ASAK7UyREksnb04o0kj9a8sDbq2RMBbD8YOyNKAgLh0Uvgo
To claim this, I am signing this object:
@cyrixhero
cyrixhero / index.html
Created March 10, 2017 09:13 — forked from anonymous/index.html
Capture FB Reactions count and show them on webpage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My FB Reactions Page</title>
<style>
html {
box-sizing: border-box;
width: 100%;
@cyrixhero
cyrixhero / aliases
Created May 21, 2016 08:02 — forked from kaleb/aliases
Gmail on Mutt
#~/.mutt/aliases
alias nick Nicholas Levandoski <nick.levandoski@auglug.org>
alias tim Timothy Pitt <timothy.pitt@auglug.org>
alias steven Steven Jackson <sjackson@auglug.org>
alias kaleb Kaleb Hornsby <kaleb.hornsby@auglug.org>
alias alug-admin nick, tim, steven
@cyrixhero
cyrixhero / GetPostLikeUID
Created June 14, 2014 15:22
Use Swift to connect Facebook Graph API, and then get UID of post like
import Foundation
func input() -> String {
var keyboard = NSFileHandle.fileHandleWithStandardInput()
var inputData = keyboard.availableData
return NSString(data: inputData, encoding:NSUTF8StringEncoding).stringByReplacingOccurrencesOfString("\n", withString:"")
}
print("{Post-ID}:")
var PostID = input()