Skip to content

Instantly share code, notes, and snippets.

Ivan Tam ivangonekrazy

View GitHub Profile
View gist:c4a660cafe067dd9eae5f817a446dda7
pi-star@pi-star-duplex(ro):www$ tail -f /var/log/pi-star/MMDVM-2019-11-06.log
I: 2019-11-06 07:17:36.241 Started the DMR Id lookup reload thread
I: 2019-11-06 07:17:36.370 Interfaces Info
I: 2019-11-06 07:17:36.371 IPv4: lo:127.0.0.1
I: 2019-11-06 07:17:36.371 IPv4: wlan0:192.168.86.27
I: 2019-11-06 07:17:36.371 IPv6: lo:::1
I: 2019-11-06 07:17:36.371 IPv6: wlan0:fe80::3a5:c015:eb4a:aa99%wlan0
I: 2019-11-06 07:17:36.371 Default interface is : wlan0
I: 2019-11-06 07:17:36.371 IP to show: wlan0:192.168.86.27
M: 2019-11-06 07:17:36.371 MMDVMHost-20190625_Pi-Star-v4 is running
@ivangonekrazy
ivangonekrazy / gist:47088c0561096cf7596e7805631c0034
Created Nov 6, 2019
Output `pistar-zumspotflash rpi_duplex`
View gist:47088c0561096cf7596e7805631c0034
pi-star@pi-star-duplex(ro):www$ sudo pistar-zumspotflash rpi_duplex
ZUMspot-v1.4.17 20190529 14.7456MHz dual ADF7021 FW by CA6JAU GitID #3c63f30
Press any key to write the rpi_duplex firmware to this modem or Ctrl-C to quit...
Flashing your rpi_duplex modem to the latest version
URL transformed to HTTPS due to an HSTS policy
--2019-11-05 23:25:34-- https://github.com/juribeparada/MMDVM_HS/releases/download/v1.4.17/install_fw_duplex.sh
Resolving github.com (github.com)... 192.30.255.113
ivan.xxx,45.55.112.52 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAuU1ZaEA1K845sCpOzj2wkfv4oDUT32wP44nVF0cHMgjDc9qaWAW2fgZkn/1VPvA4FfH7tsimId9MjfSsjO5/g=
ivan.xxx,45.55.112.52 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAuU1ZaEA1K845sCpOzj2wkfv4oDUT32wP44nVF0cHMgjDc9qaWAW2fgZkn/1VPvA4Connecting to github.com (github.com)|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
@ivangonekrazy
ivangonekrazy / Ivan-MDErgo1.json
Created Feb 10, 2016
Example Ergodox Infinity Keyboard layout (includes mappings for the FLASH command on both halves)
View Ivan-MDErgo1.json
{
"header": {
"Author": "HaaTa (Jacob Alexander) 2015",
"Base": "Blank",
"Date": "2015-09-12",
"Generator": "KIICONF 0.2",
"KLL": "0.3c",
"Layout": "Default",
"Name": "MDErgo1",
"Version": "0.1"
@ivangonekrazy
ivangonekrazy / gist:100fa3b53f28a8cb98cd
Created Feb 9, 2016
Example output from bitmap2Struct.py
View gist:100fa3b53f28a8cb98cd
+--------------------------------------------------------------------------------------------------------------------------------+
| |
| ****************** |
| ********************** |
| **** ****** **** |
| **** ** **** |
| *** ** *** |
| ** ****** ****** **
View gist:cb7d074678cde5f868f9
import logging import logging.config
LOGGING_CONFIG = {
'version': 1, # required
'disable_existing_loggers': True, # this config overrides all other loggers
'formatters': {
'simple': {
'format': '%(asctime)s %(levelname)s -- %(message)s'
},
'whenAndWhere': {
View gist:11431d6a0b0b384b6ac1
import logging
log = logging.getLogger()
# Set a severity threshold to one above WARN
log.setLevel(logging.ERROR)
# This WARNING will not reach the Humans.
log.warn('Citizens of Earth, be warned!')
# This CRITICAL message, however, will not be ignored.
View gist:7f7f411f6d907edd5b9b
import logging
log = logging.getLogger() # 'root' Logger
console = logging.StreamHandler()
format_str = '%(asctime)s\t%(levelname)s -- %(processName)s %(filename)s:%(lineno)s -- %(message)s'
console.setFormatter(logging.Formatter(format_str))
log.addHandler(console) # prints to console.
View gist:f1042ce2414a3186f980
import logging
# Get the top-level logger object
log = logging.getLogger()
# make it print to the console.
console = logging.StreamHandler()
log.addHandler(console)
# emit a warning to the puny Humans
@ivangonekrazy
ivangonekrazy / tweep
Created Aug 25, 2014
Output of `nslookup` and `curl`
View tweep
Last login: Fri Aug 22 16:51:51 on ttys000
Traphaus:~ ivan$ nslookup community.loggly.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
community.loggly.com canonical name = loggly-haproxy-1333703238.us-west-2.elb.amazonaws.com.
Name: loggly-haproxy-1333703238.us-west-2.elb.amazonaws.com
Address: 54.201.53.220
Name: loggly-haproxy-1333703238.us-west-2.elb.amazonaws.com
View keybase.md

Keybase proof

I hereby claim:

  • I am ivangonekrazy on github.
  • I am IvanTam (https://keybase.io/IvanTam) on keybase.
  • I have a public key whose fingerprint is 92A4 A414 9C77 BEC7 2097 97BC F46D 97C8 44F0 5D8E

To claim this, I am signing this object:

You can’t perform that action at this time.