Skip to content

Instantly share code, notes, and snippets.

View jumping's full-sized avatar
🎯
Focusing

Jumping Qu jumping

🎯
Focusing
  • Shanghai, China
View GitHub Profile
@elubow
elubow / flume-site-agent.xml
Created February 3, 2011 20:10
Flume Configuration files
<!-- a1 (agent) -->
<configuration>
<property>
<name>flume.master.servers</name>
<value>$master_IP</value>
<description>This is the address for the config servers status server (http)</description>
</property>
<property>
<name>flume.collector.event.host</name>
@kylelemons
kylelemons / client.go
Created August 9, 2011 20:49 — forked from zhujo01/client.go
TLS echo server and client
package main
import (
"crypto/tls"
"io"
"log"
)
func main() {
conn, err := tls.Dial("tcp", "127.0.0.1:8000", nil)
@bradmontgomery
bradmontgomery / dummy-web-server.py
Last active April 15, 2024 14:27
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python (Updated for Python 3.7)
Usage:
./dummy-web-server.py -h
./dummy-web-server.py -l localhost -p 8000
Send a GET request:
@hwdsl2
hwdsl2 / .MOVED.md
Last active April 18, 2024 01:37
IPsec VPN Server Auto Setup Script for Ubuntu and Debian
@ktheory
ktheory / dd.log
Last active November 10, 2023 23:41
EC2 EBS-SSD vs instance-store performance on an EBS-optimized m3.2xlarge
# /tmp/test = EBS-SSD
# /mnt/test = instance-store
root@ip-10-0-2-6:~# dd bs=1M count=256 if=/dev/zero of=/tmp/test
256+0 records in
256+0 records out
268435456 bytes (268 MB) copied, 3.26957 s, 82.1 MB/s
root@ip-10-0-2-6:~# dd bs=1M count=256 if=/dev/zero of=/tmp/test
256+0 records in
256+0 records out
@einthusan
einthusan / go1.4arc65-ubuntu.sh
Last active July 10, 2018 23:43
Install Golang 1.4.1 on Ubuntu 14.04 AWS EC2
#!/bin/sh
# OPTIONAL FLAGS:
#
# -geoip true
# this will install maxmind geoip and auto update crontab file
#
# -cloudwatch true
# this will install aws cloud watch metrics and send them to aws dashboard
#
@andrewmilson
andrewmilson / file-upload-multipart.go
Last active March 26, 2024 11:33
Golang multipart/form-data File Upload
package main
import (
"net/http"
"os"
"bytes"
"path"
"path/filepath"
"mime/multipart"
"io"
@eferro
eferro / _aws_golang_examples.md
Last active July 21, 2023 09:35
golang aws: examples

AWS Golang SDK examples

@Ron3
Ron3 / History|-104b39d1|entries.json
Last active May 21, 2022 09:59
AWS Lambda初触
{"version":1,"resource":"file:///Users/ron/Documents/Work/Github/WastedLand_Unity/Assets/Code/BPGames/BPMono/BPMainController.cs","entries":[{"id":"asRE.cs","timestamp":1653017452369},{"id":"1N1A.cs","timestamp":1653017490920},{"id":"ZcIB.cs","timestamp":1653017517999},{"id":"1sWI.cs","timestamp":1653018848615},{"id":"b2y6.cs","timestamp":1653033123307},{"id":"p0fY.cs","timestamp":1653033276547},{"id":"SurA.cs","timestamp":1653033301622},{"id":"8aiu.cs","timestamp":1653033472606},{"id":"4qe9.cs","timestamp":1653038794506},{"id":"m05x.cs","timestamp":1653038809996},{"id":"8dkr.cs","timestamp":1653038832762},{"id":"xxRB.cs","timestamp":1653039127616},{"id":"1IX0.cs","timestamp":1653040123957}]}
@adrienbrault
adrienbrault / llama2-mac-gpu.sh
Last active January 22, 2024 07:39
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM. UPDATE: see https://twitter.com/simonw/status/1691495807319674880?s=20
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
make clean
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin