This file contains hidden or 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
FROM alpine:latest | |
# Config | |
ENV GO111MODULE=on | |
ENV CGO_ENABLED=0 | |
ARG GOOS="linux" | |
ARG GOARCH="arm64" | |
# Install | |
RUN apk --update --no-cache add git |
This file contains hidden or 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 | |
function is_int() { return $(test "$@" -eq "$@" > /dev/null 2>&1); } | |
sudo pkill -9 ssh-agent | |
eval `ssh-agent -s` | |
ssh-add -D | |
ssh-add -k /home/morphs/.ssh/github-ssh-private-key | |
ssh -vT [email protected] | |
git init |
This file contains hidden or 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
[Unit] | |
Description=Keeps Argo Tunnel Running | |
[Service] | |
Type=idle | |
ExecStart=cloudflared tunnel --no-autoupdate run \ | |
--token asdfasdfasdfasdfasdfasdf | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or 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 python3 | |
import sys | |
from pathlib import Path | |
from box import Box | |
import requests | |
from tqdm import tqdm | |
import tempfile | |
import binascii | |
from zipfile import ZipFile | |
import io |
This file contains hidden or 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
const MonthNames = [ "JAN" , "FEB" , "MAR" , "APR" , "MAY" , "JUN" , "JUL" , "AUG" , "SEP" , "OCT" , "NOV" , "DEC" ]; | |
function get_time_string() { | |
let today = new Date(); | |
const milliseconds = String( today.getMilliseconds() ).padStart( 3 , "0" ); | |
today = new Date( today.toLocaleString( "en-US" , { timeZone: "America/New_York" } ) ); | |
const day = String( today.getDate() ).padStart( 2 , "0" ) ; | |
const month = MonthNames[ today.getMonth() ]; | |
const year = today.getFullYear(); | |
const hours = String( today.getHours() ).padStart( 2 , "0" ); | |
const minutes = String( today.getMinutes() ).padStart( 2 , "0" ); |
This file contains hidden or 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 | |
# https://weinimo.github.io/how-to-write-udev-rules-for-usb-devices.html | |
lsusb | |
udevadm monitor | |
udevadm info -a -p $(udevadm info -q path -n /dev/bus/usb/001/006) | |
udevinfo info -a -p $(udevinfo info -q path -n /dev/bus/usb/001/006) | |
echo 'SUBSYSTEMS=="usb", ATTRS{product}=="Stream Deck Mini", GROUP="sudo"' | sudo tee -a /etc/udev/rules.d/10-local.rules | |
sudo udevadm test /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3 | |
echo "unplug and replug usb device" |
This file contains hidden or 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 | |
# https://developer.android.com/training/app-links/deep-linking | |
# https://f-droid.org/en/packages/com.oF2pks.applicationsinfo/ | |
# com.amazon.firetv.youtube | |
adb shell pm list packages | |
adb shell pm path com.amazon.firetv.youtube | |
# package:/data/app/com.amazon.firetv.youtube-w7soWc29LVuZZsacd3FOzQ==/base.apk | |
adb pull /data/app/com.amazon.firetv.youtube-w7soWc29LVuZZsacd3FOzQ==/base.apk firetv-youtube.apk | |
/Users/morpheous/Library/Android/sdk/build-tools/30.0.2/aapt d xmltree firetv-youtube.apk AndroidManifest.xml |
This file contains hidden or 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 | |
trap unmount INT | |
## CONFIG VARIABLES | |
## ====================================================================== | |
HOP_1_IP_ADDRESS="11.22.33.444" | |
HOP_1_PORT="22" | |
HOP_1_USERNAME="morphs" | |
LOCAL_PATH_TO_HOP_1_PATH_TO_SSH_KEY="/Users/morpheous/.ssh/relay-main" |
This file contains hidden or 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 | |
trap unmount INT | |
LOCAL_MOUNT_POINT="/Users/morpheous/MOUNT/WIRE" | |
LOCAL_PATH_TO_SSH_KEY="/path/to/private-key/raspi-wi" | |
SSH_COMMAND=$(echo ssh -i "$LOCAL_PATH_TO_SSH_KEY" -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -F /dev/null) | |
function unmount() { | |
echo unmounting "$LOCAL_MOUNT_POINT" | |
sudo umount "$LOCAL_MOUNT_POINT" || true |
This file contains hidden or 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
Cloning into 'LARGE REPOSITORY'... | |
remote: Enumerating objects: 20704, done. | |
remote: Counting objects: 100% (20704/20704), done. | |
remote: aborting due to possible repository corruption on the remote side. | |
fatal: early EOF | |
fatal: fetch-pack: invalid index-pack output | |
# enter bash of gitea docker container | |
sudo docker exec -it $TAG_ID bash |