Skip to content

Instantly share code, notes, and snippets.

View abtris's full-sized avatar

Ladislav Prskavec abtris

View GitHub Profile
@abtris
abtris / final_removal.sh
Created February 8, 2020 17:29
Remove MorphVOX Audio from MacOS
# remove driver if you after uninstall see MorphVOX Audio in Sound Settings
sudo rm -rf /Library/Audio/Plug-Ins/HAL/SBVirtualMic.driver
# restart audio deamon
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
@abtris
abtris / main.go
Created September 16, 2019 10:45
Simple alerting using OCI Healthcheck API
package main
import (
"context"
"fmt"
"log"
"math"
"os"
"strconv"
"time"
@abtris
abtris / main.go
Created September 7, 2019 06:48
Example custom transport for getting number requests.
package main
import (
"fmt"
"log"
"net/http"
)
type MyTransport struct {
originalTransport http.RoundTripper
@abtris
abtris / main.go
Last active August 2, 2019 15:45
TinyGo - Images
package main
import (
"image/color"
"time"
"tinygo.org/x/drivers/microbitmatrix"
)
var display microbitmatrix.Device
@abtris
abtris / small.sh
Created January 11, 2019 08:40
Add prefix to thumbnails
for file in *.jpg
do
OLD_FILE="$file"
EXT="${file#*.}"
mv $file "${file%.*}_small.$EXT"
done
@abtris
abtris / README.md
Last active July 31, 2023 10:28
WebExpo Drone Workshop
@abtris
abtris / droneSetup.go
Last active September 17, 2018 19:17
Passwords for drones generation
package main
import (
"fmt"
"math/rand"
)
func main() {
NatoCodes := []string{
"Alfa",
@abtris
abtris / joystick.go
Last active August 5, 2018 12:37
DJI Tello - move drone with keyboard
/*
How to run:
Connect to the drone's Wi-Fi network from your computer. It will be named something like "TELLO-XXXXXX".
Once you are connected you can run the Gobot code on your computer to control the drone.
go run examples/joystick.go
*/
package main
@abtris
abtris / README.md
Created July 17, 2018 08:44
Workshop - Control drone using your computer (instructions)
@abtris
abtris / stack.sh
Created May 30, 2018 09:02
Update stack on Heroku
#!/bin/bash
# stack.sh apps.txt
# apps.txt generate by heroku apps -o ORG_NAME
while IFS='' read -r line || [[ -n "$line" ]]; do
# Check stack
echo -n "${line} - "; heroku apps:info -a $line | grep Stack: | tr -s ' ' | cut -d ' ' -f 2
# Update stack
# heroku stack:set heroku-16 -a $line
done < "$1"