Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.9
#!/bin/bash
cmd="am startservice \
-n com.google.wifisetup/.WifiSetupService \
-a WifiSetupService.Connect \
-e ssid '$1' \
-e passphrase '$2'"
echo $cmd
sesh=`screen -list | grep "Attached" | awk '{print $1;}'`
echo $sesh
Section "Device"
Identifier "GPU AMD Radeon R7"
Driver "radeon"
BusID "PCI:3:0:0"
EndSection
Section "Device"
Identifier "GPU AMD Radeon R9"
Driver "radeon"
BusID "PCI:1:0:0"
@aarobc
aarobc / bills.gs
Created August 17, 2018 22:38
Proof of concept fetching utilities and pushing them into a google spreadsheet
function main(){
var td = [
startDate(),
power(),
115,
water()
]
❯ yay -S lib32-mesa-git
:: Querying AUR...
:: Checking for conflicts...
:: Checking for inner conflicts...
==> Package conflicts found:
-> Installing lib32-mesa-git will remove: lib32-mesa
[Aur: 1] lib32-mesa-git-18.3.0_devel.104495.93b8b987d0-1
@aarobc
aarobc / keymap.c
Created October 1, 2020 22:33
iris shift+backspace = delete
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static uint8_t saved_mods = 0;
uint16_t temp_keycode = keycode;
// Filter out the actual keycode from MT and LT keys.
if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) {
temp_keycode &= 0xFF;
}
/* uprintf("KL: kc: %u, tk: %u, col: %u\n", keycode, temp_keycode, record->event.key.col); */