Skip to content

Instantly share code, notes, and snippets.

@u20024804
u20024804 / apto_ait3_setup_node.md
Created October 3, 2022 01:59 — forked from cryptoleek-eth/apto_ait3_setup_node.md
AIT3 Incentivized Testnet 节点搭建 傻瓜喂奶教程
@u20024804
u20024804 / zipstream.py
Created February 16, 2020 07:26 — forked from bancek/zipstream.py
Python ZIP streaming
import struct
import zipfile
import time
import os
from binascii import crc32
def commonprefix(m):
"Given a list of pathnames, returns the longest common leading component"
if not m: return ''
s1 = min(m)

To install tcptraceroute on Debian/Ubuntu:

$ sudo apt-get install tcptraceroute

To install tcptraceroute on CentOS/REHL, first set up RepoForge on your system, and then:

$ sudo yum install tcptraceroute
@u20024804
u20024804 / compile.sh
Created May 9, 2019 04:55 — forked from bigtan/compile.sh
shadowsocks-libev static build
apt-get update && apt-get install build-essential automake autoconf libtool git clang -y && export CC=clang
ver=2.6.0
wget --no-check-certificate https://tls.mbed.org/download/mbedtls-$ver-gpl.tgz
tar zxf mbedtls-$ver-gpl.tgz
cd mbedtls-$ver
sed -i "s/DESTDIR=\/usr\/local/DESTDIR=\/projects\/dists\/mbedtls/g" Makefile
LDFLAGS=-static make install
cd ..
#!/bin/sh
# cross & static compile shadowsocks-libev
PCRE_VER=8.41
PCRE_FILE="http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VER.tar.gz"
MBEDTLS_VER=2.6.0
MBEDTLS_FILE="https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz"
@u20024804
u20024804 / v2ex-535284.rb
Created February 15, 2019 09:54 — forked from msg7086/v2ex-535284.rb
douyu ts concat
require 'titleize'
require 'colorize'
Encoding.default_internal = Encoding::UTF_8
Encoding.default_external = Encoding::UTF_8
$dir = Rake.original_dir.encode(Encoding::UTF_8)
Dir.chdir($dir)
puts "Executing in (#{$dir})..."
----
## XFCE Desktop ##
----
# How to install XFCE Desktop Environment in Kali Linux:
Code:
```apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies```
# How to remove XFCE in Kali Linux:
Code:
@u20024804
u20024804 / install-s3distcp.sh
Created November 22, 2018 09:30 — forked from jordangraft/install-s3distcp.sh
install-s3distcp.sh
$ s3cmd get s3://us-east-1.elasticmapreduce/libs/s3distcp/1.latest/s3distcp.jar
$ hadoop jar ./s3distcp.jar --src s3a://<bucket>/input/ --dest=s3a://<bucket>/output

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

@u20024804
u20024804 / iterm2.md
Created October 17, 2018 02:37 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Fullscreen + Enter
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow