Skip to content

Instantly share code, notes, and snippets.

View chrstphrchvz's full-sized avatar
🕳️
I tend to disappear

Christopher Chavez chrstphrchvz

🕳️
I tend to disappear
  • San Antonio, TX
View GitHub Profile
@chrstphrchvz
chrstphrchvz / atiusb.txt
Created December 19, 2015 05:38
output of lsusb -D for ATI TV Wonder USB (NTSC)
Device: ID 0528:7561 ATI Technologies, Inc. TV Wonder
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0528 ATI Technologies, Inc.
An autonomous robot was constructed for participation in the 2016 IEEE Region 5 Conference Student Robotics Competition, which will take place in April. The theme for the competition is a search and rescue operation, where the robot must retrieve "victims" (wooden rods) and return them to the appropriate drop off zones on the playing field. The competition specified general requirements and restrictions of the robot, such as size, permitted components, and time allowed per round. The chassis of the robot was constructed from an educational kit for a compact design and to allow modifications. DC gearmotors and a serial motor controller were used for locomotion, and a two degree-of-freedom grabber was used to lift and drop victims. The robot used a variety of low-cost sensors to perform navigation and detect victims, including range finders, gyroscope, color sensor, proximity sensors, and photogate. An Arduino microcontroller was used to control the robot’s electronic and electromechanical components. Third pa
@chrstphrchvz
chrstphrchvz / syslog
Created August 18, 2016 01:58
/tmp/syslog for CentOS 7 installer issue
20:24:44,723 INFO rsyslogd: [origin software="rsyslogd" swVersion="7.4.7" x-pid="1771" x-info="http://www.rsyslog.com"] start
20:24:44,724 INFO kernel:[ 0.000000] Initializing cgroup subsys cpuset
20:24:44,724 INFO kernel:[ 0.000000] Initializing cgroup subsys cpu
20:24:44,724 INFO kernel:[ 0.000000] Initializing cgroup subsys cpuacct
20:24:44,724 NOTICE kernel:[ 0.000000] Linux version 3.10.0-229.el7.x86_64 ([email protected]) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Fri Mar 6 11:36:42 UTC 2015
20:24:44,724 INFO kernel:[ 0.000000] Command line: initrd=initrd.img inst.stage2=hd:LABEL=Rockstor\x203\x20x86_64 inst.text ip=dhcp ks=hd:LABEL=Rockstor\x203\x20x86_64:/ks.cfg BOOT_IMAGE=vmlinuz
20:24:44,724 INFO kernel:[ 0.000000] e820: BIOS-provided physical RAM map:
20:24:44,724 INFO kernel:[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009dbff] usable
20:24:44,724 INFO kernel:[ 0.000000] BIOS-e820: [mem 0x000000000009dc00-0x000000000009ffff] re
@chrstphrchvz
chrstphrchvz / lsblk.out
Last active January 21, 2017 09:58
smartdumps
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 931.5G 0 disk
sr0 11:0 1 1024M 0 rom
fd0 2:0 1 4K 0 disk
sdc 8:32 1 14.9G 0 disk
├─sdc2 8:34 1 1.5G 0 part [SWAP]
├─sdc3 8:35 1 13G 0 part /mnt2/rockstor_rockstor
└─sdc1 8:33 1 500M 0 part /boot
sda 8:0 0 931.5G 0 disk /mnt2/data
@chrstphrchvz
chrstphrchvz / Run AppleScript section
Created June 12, 2018 01:53
Get MacPorts checksums for macOS Finder Services menu (based on https://superuser.com/a/876122/414616)
on run {input, parameters}
with timeout of 360 seconds
tell application "System Events"
activate
display dialog input buttons {"OK"} default button 1 with title "MacPorts checksums" giving up after 300 --seconds
end tell
end timeout
end run
@chrstphrchvz
chrstphrchvz / main.log
Created June 14, 2018 19:46
WIP Falkon install logfile
This file has been truncated, but you can view the full file.
version:1
:debug:sysinfo macOS 10.13 (darwin/17.6.0) arch i386
:debug:sysinfo MacPorts 2.5.2
:debug:sysinfo Xcode 9.4
:debug:sysinfo SDK 10.13
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.13
:debug:main epoch: in tree: 0 installed: 0
:debug:main xz 5.2.4_0 exists in the ports tree
:debug:main xz 5.2.4_0 is the latest installed
:debug:main xz 5.2.4_0 is active
@chrstphrchvz
chrstphrchvz / falkon.log
Created June 27, 2018 13:08
MacPorts build log for falkon 3.0.1 on macOS 10.13.5
This file has been truncated, but you can view the full file.
---> Computing dependencies for falkon.
---> Fetching distfiles for falkon
---> Verifying checksums for falkon
---> Checksumming falkon-3.0.1.tar.xz
---> Extracting falkon
---> Extracting falkon-3.0.1.tar.xz
Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_kde_falkon/falkon/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/falkon/falkon-3.0.1.tar.xz' | /usr/bin/tar -xf -
---> Applying patches to falkon
---> Applying patch-mac-macdeploy.sh.diff
Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_kde_falkon/falkon/work/falkon-3.0.1" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/github.com/macports/macports-ports/kde/falkon/files/patch-mac-macdeploy.sh.diff'

Static withdraw address implementation proposal

Database

Presumably, this is where the static withdraw address for each user is stored, along with existing user information. Something like ALTER TABLE will be issued to extend the existing database with at least the two new columns:

  • a value e.g. static_withdraw_address_is_configured (or something more concise) indicating whether the user has configured a static withdraw address, stored as a Boolean (or similar) and initialized to false for all users
  • a value e.g. withdraw_address to hold the user-configured static withdraw address, stored as CHAR(34) (same type as existing address column) and uninitialized by default (it is not to be accessed unless the static_withdraw_address_is_configured). Or, if the datatype has a reliable way for indicating it is uninitialized/invalid, that may be used instead creating the static_..._is_configured column, particularly if doing so is more convenient.

The README.md will need to be updated to add thes

@chrstphrchvz
chrstphrchvz / patch-Makefile.PL.diff
Created November 9, 2018 07:05
new patch-Makefile.PL.diff for Tcl::Tk 1.27+
--- Makefile.PL.orig 2018-07-29 04:33:53.000000000 -0500
+++ Makefile.PL 2018-11-09 00:55:20.000000000 -0600
@@ -37,44 +37,6 @@
}
-open TCLSH, "$tclsh test-for-tk.tcl|";
-my $res = join '', <TCLSH>;
-
-unless ($res =~ /^ok1/m) {
@chrstphrchvz
chrstphrchvz / tcl869rc4-tests.log
Created November 13, 2018 01:45
Tcl/Tk 8.6.9rc4 build and test logs
---> Fetching distfiles for tcl
---> Verifying checksums for tcl
---> Checksumming tcl8.6.9rc4-src.tar.gz
---> Extracting tcl
---> Extracting tcl8.6.9rc4-src.tar.gz
Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_tcl/tcl/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/tcltk/tcl8.6.9rc4-src.tar.gz' | /usr/bin/tar -xf -
---> Configuring tcl
Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_tcl/tcl/work/tcl8.6.9/unix" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --enable-threads tcl_cv_type_64bit="long long"
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no