Skip to content

Instantly share code, notes, and snippets.

@0xjairo
0xjairo / toolchain-ti-c2000.cmake
Last active June 23, 2021 05:03
TI C2000 (F2807x) CMake toolchain file
# Create a file named options.cmake and populate with valid paths assigned to the following:
#
# set(CG_TOOL_ROOT "/opt/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.1.LTS")
# set(DEVICE_SUPPORT_ROOT "/home/asdf/controlSUITE/device_support/F2807x/v210")
#
# Then do:
# mkdir build && cd build
# cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-ti-c2000.cmake ..
# make

Keybase proof

I hereby claim:

  • I am dotjairo on github.
  • I am jairo (https://keybase.io/jairo) on keybase.
  • I have a public key whose fingerprint is FCA9 DE36 AB60 31DA 5A52 3A8B 8B65 071C E5C0 FE5C

To claim this, I am signing this object:

@0xjairo
0xjairo / geektool-sys-monitor.sh
Last active September 3, 2022 03:04
GeekTool System Monitor
#!/bin/bash
# Modified from:
# http://www.macosxtips.co.uk/geeklets/system/comprehensive-system-monitor-yosemite/
# Make sure you change the following variable
# to match the network interface you would like to monitor
nic=en3
echo ------- System Information ------
@0xjairo
0xjairo / is-server-alive.sh
Last active August 29, 2015 14:18
Send notification when ping to $SERVER succeeds
#!/bin/bash
# exit on no argument
[[ -z "$1" ]] && exit 1
SERVER=$1
while true;
do
# ping: try once, timeout at 2 seconds
ping -c1 -W2 $SERVER && notify-send "$SERVER is alive\!" && break;
import os
import subprocess
class Colorcodes(object):
"""
Provides ANSI terminal color codes which are gathered via the ``tput``
utility. That way, they are portable. Color codes are initialized to
empty strings. If the output is being redirected or if there occurs
any error with ``tput``, keep empty strings.
# alarm in ubuntu
echo 'notify-send "Joe" "Coffee is ready"' | at 8:15
## Default systray whitelist
### Ubuntu 12.10
Launch deconf-editor from the terminal:
dconf-editor
Navigate to:
com > canonical > unity > panel: