This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <netdb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#define CANARY "in_the_coal_mine" | |
struct { | |
char buffer[1024]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /l %%x in (1, 1, 143) do ( | |
echo %%x | |
wget http://ipn.li/itgonglun/%%x/audio.mp3 -O %%x.mp3 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for %%x in ( | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_76.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_75.mp3" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_74.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_73.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_72.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_71.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_70.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_69.m4a" | |
"http://screencasts.b0.upaiyun.com/podcasts/teahour_episode_68.m4a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
#encoding=utf-8 | |
import sys | |
import time | |
from splinter import Browser | |
browser = Browser() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.config b/.config | |
index cc8d14f..26c0f5f 100644 | |
--- a/.config | |
+++ b/.config | |
@@ -385,9 +385,10 @@ CONFIG_TARGET_SUFFIX="uclibc" | |
# CONFIG_IB is not set | |
# CONFIG_SDK is not set | |
# CONFIG_MAKE_TOOLCHAIN is not set | |
-# CONFIG_IMAGEOPT is not set | |
-# CONFIG_PREINITOPT is not set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/udev/rules.d/90-tty-usb.rules | |
# CP210x | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", MODE="0666" | |
How to add udev rule for usb serial device | |
[huzhifeng@CentOS72 ~]$ minicom | |
Cannot create lockfile for /dev/ttyUSB0: 权限不够 | |
[huzhifeng@CentOS72 ~]$ su root -l | |
[root@CentOS72 ~]# ls -al /dev/ttyUSB0 | |
crw-rw---- 1 root dialout 188, 0 8月 22 08:59 /dev/ttyUSB0 |