Skip to content

Instantly share code, notes, and snippets.

View Willdrick's full-sized avatar

Willdrick

  • Buenos Aires, Argentina
View GitHub Profile
#!/bin/bash
# Variables
ADB="adb -s 52105802eed17447"
THRESHOLD=35
INTERVAL=1
INTERVAL_ERROR=300
GTK3_SETTINGS="$HOME/.config/gtk-3.0/settings.ini"
GTK3_OPTION="gtk-application-prefer-dark-theme"
GTK4_OPTION="org.gnome.desktop.interface color-scheme"
#You need
#curl, wget, node, npm
VERSION=$(curl https://updates.counterplay.co/ | grep duelyst |grep -v staging | grep zip | tail -c 18 | head -c 6)
wget http://downloads.counterplay.co/duelyst/v$VERSION/duelyst-v$VERSION-win32-x64.zip
#remove old stuff
rm -rf Duelyst-linux-x64
#extract it
rm -rf duelyst-v$VERSION
@lynnaloo
lynnaloo / autopilot.js
Last active February 23, 2016 16:47
Autopilot script for the Parrot Rolling Spider Minidrone
'use strict';
var Drone = require('rolling-spider');
var temporal = require('temporal');
var d = new Drone(process.env.UUID);
d.connect(function () {
d.setup(function () {
d.flatTrim();
d.startPing();
@vjt
vjt / copy-from-time-machine.sh
Last active March 8, 2024 17:05
Copy data from a Time Machine volume mounted on a Linux box.
#!/bin/bash
#
# Copy data from a Time Machine volume mounted on a Linux box.
#
# Usage: copy-from-time-machine.sh <source> <target>
#
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed
# directory trees. Created if it does not exists.
#