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
#!/bin/sh | |
#IFACE=eth1 | |
# # LAN host discovery | |
# seq 0 255 | while read subnet; do | |
# echo subnet: 192.168.$subnet.0 | |
# ##sudo ifconfig $IFACE 192.168.$subnet.100 | |
# ##sudo nmap -n -sP -PA 192.168.$subnet.-99,101- | |
# done | |
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
#!/bin/sh | |
LOG_FILE=./log.txt | |
if [ -z "$1" ]; then | |
echo "Usage: $0 LIST [LOG]" | |
exit 0 | |
fi | |
if [ -n "$2" ]; then |
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
#!/bin/sh | |
## TODO: Fill the following placeholders: | |
## USERNAME, PASSWORD | |
## YOUR_PASSKEY | |
trr() { | |
transmission-remote 127.0.0.1:9091 -n USERNAME:PASSWORD "$@" | |
} |
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
#!/bin/sh | |
update-alternatives --install /usr/local/bin/rar rar /opt/rar/rar_static 50 \ | |
--slave /etc/rarreg.key rarreg.key /opt/rar/rarreg.key \ | |
--slave /etc/rarfiles.lst rarfiles.lst /opt/rar/rarfiles.lst \ | |
--slave /usr/local/lib/default.sfx default.sfx /opt/rar/default.sfx \ | |
--slave /usr/local/share/man/man1/rar.1.gz rar.1.gz /opt/rar/rar.1.gz \ | |
--slave /usr/local/bin/unrar unrar /opt/rar/unrar \ | |
--slave /usr/local/share/man/man1/unrar.1.gz unrar.1.gz /opt/rar/unrar.1.gz |
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
#-*- 1. /etc/init.d/rcS changes -*- | |
#! /bin/sh | |
mount -t proc none /proc | |
mount -t sysfs none /sys | |
mount -t devpts none /dev/pts | |
mount -t tmpfs none /tmp | |
mkdir /tmp/var |
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
' Declare this Wbject withEvents displaying all the events | |
Private WithEvents olRemind As Outlook.Reminders | |
Private Sub Application_Startup() | |
' Set olRemind = Outlook.Reminders | |
' KillOverdueReminders | |
End Sub | |
Private Sub KillOverdueReminders(Cancel As Boolean) | |
' Purpose: Kills all reminders for past due appointments.' |
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 <xc.h> | |
/* Microcontroller MIPs (FCY) */ | |
#define SYS_FREQ 4000000L | |
#define _XTAL_FREQ SYS_FREQ | |
/* #define FCY SYS_FREQ/4 */ | |
// CONFIG1 | |
#pragma config FOSC = INTOSC // Oscillator Selection Bits (INTOSC oscillator: I/O function on CLKIN pin) | |
#pragma config WDTE = OFF // Watchdog Timer Enable (WDT disabled) |
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
@ECHO OFF | |
if not "%~1" == "" ( | |
set PPK_FILE=%~1 | |
) else ( | |
set PPK_FILE=kanna.ppk | |
) | |
if not exist %PPK_FILE% ( | |
REM Assume the PPK file is located aloneside PAGEANT.exe |
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
#!/bin/sh | |
echo "Hello, world" | |
# PC linux | |
echo | gcc -dM -E - | less | |
# For the Android NDK toolchains | |
echo | /opt/android/android-ndk/toolchains/x86-4.4.3/prebuilt/linux-x86/bin/i686-linux-android-gcc -dM -E - |
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/python3 | |
# vim: set ts=4 et: | |
import re | |
p = re.compile("^(.*),(.*)。$") | |
with open("input.txt") as f: | |
for lno, line in enumerate(f): | |
mo = p.match(line.rstrip()) |
OlderNewer