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
TITLE BASIC M6502 8K VER 1.1 BY MICRO-SOFT | |
SEARCH M6502 | |
SALL | |
RADIX 10 ;THROUGHOUT ALL BUT MATH-PAK. | |
$Z:: ;STARTING POINT FOR M6502 SIMULATOR | |
ORG 0 ;START OFF AT LOCATION ZERO. | |
SUBTTL SWITCHES,MACROS. | |
REALIO=4 ;5=STM |
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
<?php | |
if($_SERVER["REQUEST_METHOD"] == "POST" ){ | |
$putdata = fopen("php://input", "r"); | |
$fp = fopen("--T-${_SERVER["REMOTE_ADDR"]}.txt", "w"); | |
while ($data = fread($putdata, 1024)) fwrite($fp, $data); | |
fclose($fp); | |
fclose($putdata); | |
exit(); | |
} |
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
{ | |
gsub(/;$/,"",$0) | |
} | |
l != 0 && $1 != "set" { | |
d[$1] = $0 | |
ll[$1] = $NF | |
if ( $1 == "client-hostname" ){ | |
ll[$1] = $2 $3 | |
} |
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/bash -x | |
BYPATH=$( fgrep $1 /sys/bus/usb/devices/*/serial | cut -d: -f1 ) | |
DEVPATH=$( echo $BYPATH | cut -d/ -f6 | cut -d- -f2 ) | |
##ls -1 /dev/disk/by-path/pci-* | |
cd /dev/disk/by-path/ | |
realpath $( readlink pci-*:*:*-usb-*:$DEVPATH:* ) | |
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 REM **** HP BASIC PROGRAM LIBRARY ****************************** | |
2 REM | |
3 REM STTR1: STAR TREK | |
4 REM | |
5 REM 36243 REV B -- 10/73 | |
6 REM | |
7 REM **** CONTRIBUTED PROGRAM *********************************** | |
100 REM ***************************************************************** | |
110 REM *** *** | |
120 REM *** STAR TREK: BY MIKE MAYFIELD, CENTERLINE ENGINEERING *** |
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/env ruby | |
# coding: utf-8 | |
def grep_packages(grep_word) | |
package_list = `adb shell pm list package` | |
grep_package_list = package_list.split(/\s+/).map { |line| line.sub(/^package:/, '') }.select { |line| line.include?(grep_word) } | |
if grep_package_list.size == 1 | |
return grep_package_list[0] | |
elsif grep_package_list.size > 1 |
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/bash -x | |
TEMP=/tmp/$$mkrun | |
trap "/bin/rm -rf $TEMP" 0 3 6 9 15 | |
mkdir $TEMP | |
find . -mindepth 2 -type f | fgrep -v .git/ | fgrep -v .hg/ > $TEMP/raw | |
if [ $# == 0 ] | |
then | |
cat $TEMP/raw | |
exit 1 | |
fi |
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
wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.21.tar.xz | |
tar xvJf coreutils-8.21.tar.xz | |
cd coreutils-8.21/ | |
#wget https://raw.githubusercontent.com/atdt/advcpmv/master/advcpmv-0.5-8.21.patch | |
#wget https://raw.githubusercontent.com/atdt/advcpmv/master/advcpmv-0.5-8.21.patch | |
patch -p1 -i ../advcpmv-0.5-8.21.patch | |
./configure | |
make |
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/bash -,x | |
KVER=$( uname -r ) | |
ls -1 /boot/vmlinuz-* | cut -d/ -f3- | fgrep -v signed | sort -t- -k3 -n | sed -e "s/vmlinuz/linux-signed-image/;/$KVER/,\$d" | sudo xargs apt-get remove -yq |
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/bash | |
TEMP=/tmp/gett$$ | |
trap "/bin/rm -rf $TEMP" 0 3 6 9 15 | |
mkdir -p $TEMP | |
SELF=$( realpath $0 ) | |
[ $# == 0 ] && exit 9 |