Skip to content

Instantly share code, notes, and snippets.

View nknote's full-sized avatar

nova nknote

View GitHub Profile
@nknote
nknote / munzip.sh
Created June 11, 2016 15:36
Find all zip files in current folder and subfolders and extract the contents in a folder with the zip file name.
#!/bin/bash
rootdir="$PWD"
find "$rootdir" -type f -name '*.zip' | while read file;do # find all .zip files in the directory
cd "$(dirname "$file")"
if [ "$(dirname "$file")" = "$PWD" ];then # if the file found is in the same directory as defined "rootdir"
mkdir "$(basename "$file" | cut -d. -f1)"
cd "$(basename "$file" | cut -d. -f1)"
unzip -O cp949 -n "$file" # unzip the file
mv "$file" "$file".tododelete
else
@nknote
nknote / unzipall.sh
Created May 25, 2015 10:46
Useful scripts
#!/bin/bash
######################################################################################
# script by ischo.
# http://www.ischo.net
# mail:[email protected]
# script description :
# unzip files into it's own sub-directory names
######################################################################################
FILELIST=`ls -l *.zip | awk {'print $9'}`
@nknote
nknote / Atrix Muldock Remote
Last active August 23, 2018 23:08
Odroid C1 /etc/lirc/lircd.conf
begin remote
name atrix_multidock_remote
bits 8
flags RC6|CONST_LENGTH
eps 30
aeps 100
header 2639 911
one 420 464
@nknote
nknote / hardware.conf
Last active August 29, 2015 14:21
Odroid C1 Settings
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="None"
REMOTE_MODULES="meson-ir"
REMOTE_DRIVER="default"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""