Skip to content

Instantly share code, notes, and snippets.

View wuqian's full-sized avatar

wuqian

  • 快手
  • beijing, china
View GitHub Profile
sudo apt-get install nginx
sudo apt-get install mysql-server
sudo apt-get install php-fpm php-mysql php-mbstring php-zip php-xml php-curl php-gd
In
soft reset
SRX
Channel 0: DDR3, 666MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: DDR3, 666MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
ch 1 ddrconfig = 0x101, ddrsize = 0x2020
sg1:
91.250.242.102:443 cc15bd83d89241f6fb05c6f2f505dfa293da6554
37.247.51.197:8080 677b0d91f018ba14a3f1c37823a8db1409529296
192.36.27.54:65292 052e999467929579ed45b4b080cec17467a8de3a *
us
71.125.48.101:6006 96685d9fbfe90a73dd4ae0fef91592e582e62876
95.215.44.119:443 1f1c600ce1e854e18123422ead9267a5943815a4
192.36.31.215:25768 5327f3f7d21a142c193ece53e15beb9877d54146
@wuqian
wuqian / gist:f4d6a9787d0976584b7f
Created November 20, 2014 05:52
install ubuntu 14.04
install factory image
reboot system use arrow to enter grub menu
install ubuntu 12.04 factory image
upgrade to ubuntu 14.04
set source list to sohu
set vpn
$sudo apt-get update
$sudo update-manager
@wuqian
wuqian / gist:0f06f23a788a9a089d97
Created November 15, 2014 14:08
on-terminal-to-disable-alt-to-show-menu-tabs
http://askubuntu.com/questions/314948/on-terminal-to-disable-alt-to-show-menu-tabs
@wuqian
wuqian / my_pub
Last active August 29, 2015 14:09
my_pub
ssh-dss AAAAB3NzaC1kc3MAAACBAItm7NP8wy3FGCj7O+5eoQH04OhI+E7zBfhEb1FTxuT47We5GL+q1ysOV3rifYJJ5fXc7JLiId2S6IzCFVZDAwNN3TSnI+ifMWxAVRoadQfA5JOPMypLBIUy20ud12ByL9vDHDegh76fJS0Z4qQQlSIBhhBwJq2DiWR480j7+TfdAAAAFQDbQuhGie/AJPcL7q8LHkOIHnqwJQAAAIBDRAKCQQXccQanKcpufmFAoKa2K+WWjCXGgP+miw0OA/2m6Cr8xes9ybkPZxvlHLkZqyr2tPPgWanmR+qnnQIBuUFmDnJobCU/+Uh6BMuZDBwo8HWHl+/okJeBQv1n3FZjvYf4PMroB5bQWtRqKd9frkBlTaWBvuLwgZzvTLHiVgAAAIByt2Jth/92TpF37tZ/6jt+cmZxsZX0yYIwsEtItBrhgRz7E0YomF8T/37SlMD6foncCJ+xea07ehf9uiqS3HYrWW66vTtn7ko1WC0dhAxR5xxjigGGzPEPp5SJRYEDvsX6djR3drhchBoN43cPibbXMM31uSZms64UrVpEn1UdEA== wuqian@wuqian-ubuntu
@wuqian
wuqian / gist:88814600dfe3329212a6
Created November 12, 2014 03:12
vpn 连接日志
$sudo plog -f
@wuqian
wuqian / start_vpn.sh
Created November 10, 2014 09:55
start vpn from command line
#start vpn
nmcli con up id yt
#stop vpn
nmcli con down id yt
@wuqian
wuqian / blur.java
Created October 14, 2014 05:44
android blur
private Bitmap blur(Bitmap sentBitmap, Context context) {
Bitmap bitmap = sentBitmap.copy(sentBitmap.getConfig(), true);
final RenderScript rs = RenderScript.create(context);
final Allocation input = Allocation.createFromBitmap(rs, sentBitmap, Allocation.MipmapControl.MIPMAP_NONE,
Allocation.USAGE_SCRIPT);
final Allocation output = Allocation.createTyped(rs, input.getType());
final ScriptIntrinsicBlur script = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
script.setRadius(10.f /* e.g. 3.f */);
script.setInput(input);
@wuqian
wuqian / xorg.conf
Created September 27, 2014 03:40
R.A.T.7 mouse support for Ubuntu
Section "InputClass"
Identifier "R.A.T."
MatchProduct "R.A.T.7|R.A.T.9"
MatchDevicePath "/dev/input/event*"
Option "Buttons" "17"
Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17"
Option "AutoReleaseButtons" "13 14 15"
Option "ZAxisMapping" "4 5 6 7"
EndSection