Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tilosp on github.
  • I am tilosp (https://keybase.io/tilosp) on keybase.
  • I have a public key whose fingerprint is 478F 75B6 156B 5739 3A2C D4A7 802C BCEA 21A2 06F5

To claim this, I am signing this object:

git replace 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 e7e173af42dbf37b1d946f9ee00219cb3b2bea6a
git replace 7a2deb32924142696b8174cdf9b38cd72a11fc96 379a6be1eedb84ae0d476afbc4b4070383681178
@tilosp
tilosp / gc.sh
Last active March 30, 2017 17:01
Git Commands on all Subdirs
#!/bin/bash
find -type d -name '.git' -print0 | xargs -0 -I % -n 1 -P 1 git -C '%/..' gc
find -type d -name '*?.git' -print0 | xargs -0 -I % -n 1 -P 1 git -C '%' gc
@tilosp
tilosp / Hide OneDrive.ps1
Created March 25, 2017 08:15
Remove OneDrive from File Explorer
New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
Set-ItemProperty -Path "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name "System.IsPinnedToNameSpaceTree" -Value 0
@tilosp
tilosp / backup.sh
Last active November 11, 2016 16:29
Backup script for docker volumes
#!/bin/bash
NOW=`date "+%Y-%m-%d_%Hh%M"`
sudo docker run -it --rm -v $1:/source:ro -v backup:/destination tilosp/backup $1_${NOW}
@tilosp
tilosp / add_prefix_postfix.bat
Created July 23, 2016 11:06
Rename Script for Windows
@echo off
set /p PREFIX=Prefix:
set /p POSTFIX=Postfix:
for %%A in (%*) do (
ren "%%~fA" "%PREFIX%%%~nA%POSTFIX%.*"
)
@tilosp
tilosp / hotspot_initial_setup.bat
Last active May 5, 2016 09:08
Hotspot Script for Windows
netsh wlan set hostednetwork mode=allow
@tilosp
tilosp / robotremote-receiver.ino
Last active March 25, 2017 08:17
Receiver Sketch for Arduino Robot
#include <Servo.h>
const int leftServoPin = 10;
const int rightServoPin = 11;
Servo leftServo;
Servo rightServo;
byte inByte = 0;