Skip to content

Instantly share code, notes, and snippets.

View tintamarre's full-sized avatar
🐢
...

Martin Erpicum tintamarre

🐢
...
View GitHub Profile
@tintamarre
tintamarre / RFID_data.txt
Created November 15, 2021 08:56
RFID_data.txt
This file has been truncated, but you can view the full file.
t i j DateTime
1560396500 ARIELLE FANA 13/06/2019 05:28
1560396500 ARIELLE VIOLETTE 13/06/2019 05:28
1560396520 FANA HARLEM 13/06/2019 05:28
1560396540 FELIPE ANGELE 13/06/2019 05:29
1560396540 ARIELLE FANA 13/06/2019 05:29
1560396580 BOBO FELIPE 13/06/2019 05:29
1560396620 EWINE PIPO 13/06/2019 05:30
1560396640 FANA HARLEM 13/06/2019 05:30
1560396660 BOBO FEYA 13/06/2019 05:31
@tintamarre
tintamarre / OBS_data.txt
Last active December 27, 2021 18:48
RFID_data
DateTime Actor Recipient Behavior Category Duration Point
13/06/2019 09:35 EWINE Invisible Other 34 NO
13/06/2019 09:35 EWINE Other Other 21 NO
13/06/2019 09:35 EWINE Invisible Other 42 NO
13/06/2019 09:36 EWINE Other Other 2 NO
13/06/2019 09:36 EWINE Invisible Other 30 NO
13/06/2019 09:37 EWINE Other Other 7 NO
13/06/2019 09:37 EWINE Resting Affiliative 38 NO
13/06/2019 09:37 EWINE Other Other 5 NO
13/06/2019 09:38 EWINE Invisible Other 48 NO
@tintamarre
tintamarre / flash_tasmota.sh
Last active December 9, 2018 15:16
Esptool for tasmota on MacOS
#!/bin/bash
esptool.py --port /dev/tty.usbserial-A5XK3RJT -b 115200 write_flash 0x0 ~/Downloads/sonoff.bin
#!/bin/sh
REMOTE="transmission-remote -n login:password"
PATHDIR="/mnt/data"
IDLIST=`$REMOTE -l | tail -n +2 | grep 100% | grep -v Stopped | awk '{ print $1; }'`
declare -A DATATYPE=( [ubuntu]=linux_iso [gentoo]=linux_iso [arch]=linux_iso [debian]=linux_iso [wikipedia]=knowledge_data)
for ID in $IDLIST; do
TRACKER=`$REMOTE --torrent $ID -it | sed -n 2p`
#!/bin/sh
REMOTE="transmission-remote -n login:password"
PATHDIR="/mnt/data"
IDLIST=`$REMOTE -l | tail -n +2 | grep 100% | grep -v Stopped | awk '{ print $1; }'`
TRACKERS=("ubuntu" "gendoo" "arch" "wikipedia" "debian")
echo "777"
chmod -R 777 $PATHDIR;
echo "transmission:transmission"
@tintamarre
tintamarre / slackpost.sh
Last active August 8, 2016 08:01
Slackpost
#!/bin/bash
# Usage: slackpost "<webhook_url>" "<channel>" "<username>" "<message>"
# ------------
webhook_url=$1
if [[ $webhook_url == "" ]]
then
echo "No webhook_url specified"
exit 1
fi
@tintamarre
tintamarre / arch_linux_install.sh
Created July 17, 2015 07:51
Arch Linux install
TODO: MATE/OpenBox variant is WIP, need to test from fresh install
Set temporary root password and start sshd if desired for remote
install
# passwd
# systemctl start sshd # only if performing remote install
If needed, bring up the network and check your IP address
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@tintamarre
tintamarre / splitmysqldump
Created November 12, 2014 09:40
sql_splitter.sh
#!/usr/bin/perl -w
#
# splitmysqldump - split mysqldump file into per-database dump files.
use strict;
use warnings;
my $dbfile;
my $dbname = q{};
my $header = q{};
while (<>) {
@tintamarre
tintamarre / hacker_install.sh
Last active July 25, 2023 15:56
Hacker's Guide to Setting up My Mac
# Inspiration http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac && http://fredkelly.net/articles/2014/10/19/developing_on_yosemite.html
#Create alias
alias upgrade='sudo softwareupdate --install --all --list'
#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
#Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true