Skip to content

Instantly share code, notes, and snippets.

@Sotilrac
Sotilrac / useful_commands.md
Last active November 4, 2019 18:24
Useful commands
@Sotilrac
Sotilrac / cleanup.sh
Created March 13, 2018 17:28
ML Vision Dataset cleanup
find . -size 6182c -name *.gif -delete; find . -size 1726c -name *.png -delete; find . -size 2555c -name *.png -delete; find . -size 400c -delete; find . -size 1913c -delete; find . -size 4446c -name *.gif -delete; find . -size 862c -delete; find . -size 3975c -delete; find . -size 7211c -delete; find . -size 436c -delete; find . -size 2255c -delete; find . -size 1227c -delete; find . -size 1529c -delete; find . -size 1359c -delete
@Sotilrac
Sotilrac / keybase.md
Created November 7, 2017 21:27
keybase.md

Keybase proof

I hereby claim:

  • I am sotilrac on github.
  • I am casmat (https://keybase.io/casmat) on keybase.
  • I have a public key ASCQcOYNGu3lQS-XbttMQNa_SLLoliFPUN1wPNszV__JZAo

To claim this, I am signing this object:

@Sotilrac
Sotilrac / gource-multi-repo.sh
Last active November 4, 2022 19:05 — forked from derEremit/gource-multiple-repositories.sh
Generates gource video out of multiple repositories. Uses avconv to export the video file.
#!/usr/bin/env bash
# Generates gource video (h.264) out of multiple repositories.
# Pass the repositories in command line arguments.
# Example:
# <this.sh> /path/to/repo1 /path/to/repo2
# Or use ls -d * to list all folders in a location
# <this.sh> `ls -d *`
RESOLUTION="1920x1080" # HD
# RESOLUTION="2560x1440" # QHD
@Sotilrac
Sotilrac / userContent.css
Created June 13, 2016 15:07
Fix for Firefox for dark KDE/GTK themes
/*
To be placed in ~/.mozilla/firefox/YOUR_PROFILE/chrome/
Got it here: http://stackoverflow.com/a/22419524;
*/
input {
border: 2px inset white;
background-color: white;
# Place in .config/fish/
set fish_greeting function fish_greeting
set -g -x PATH ~/.local/bin $PATH
#set -x PYTHONPATH :/opt/choregraphe-suite-2.4.2.26-linux64/lib
@Sotilrac
Sotilrac / install_everything.sh
Last active June 10, 2016 19:56
Command to reinstall my system
sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get install htop inkscape firefox chromium-browser audacity fish terminator gimp kdenlive vlc git ssh filezilla ipython idle pylint build-essential kubuntu-restricted-extras kubuntu-restricted-addons python-pip python-dev filelight muon redshift gitg gitk git-gui gcc ibus avahi-discover python-pygame unetbootin fortunes icedtea-plugin openscad -y
@Sotilrac
Sotilrac / servo_example.py
Created September 18, 2012 22:48
Pololu Servo Controller Python Example
# -*- coding: utf-8 -*-
################################################################################
##Author: Carlos Asmat
##Creation Date: 12/07/09
##Title: Pololu Module Usage Example
##Description: Set of functions allowing the communication with
## Pololu devices using the Pololu protocol.
##
##Copyright: Carlos Asmat, 2009
##License:
@Sotilrac
Sotilrac / panoramaker.py
Created September 18, 2012 22:40
Panoramaker
# -*- coding: utf-8 -*-
################################################################################
##Author: Carlos Asmat
##Creation Date: 12/09/09
##Title: Panoramaker
##
##Copyright: Carlos Asmat, 2009
##License:
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by