This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ip addr | grep -i "wls3" | tail -n1 |sed "s/inet//g" | sed "s/\/24/\\n/g" | head -n1 | |
#How it`s work | |
#Print info about network Iface ( print using \n not \f and only IPv4 address) | |
#ip -0 -4 addr|\ | |
#Get some info about specific Iface | |
#grep -i "wls3" |\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl http://www.linux.pl/man/index.php?command="$1" |enca -x utf8 |sed 's/iso-8859-2/utf-8/' > /tmp/linux.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#This part of script is responsible of checking the file | |
test(){ | |
f1="$(md5sum "$1" | awk '{print $1}')" | |
f2="$(md5sum "$2" | awk '{print $1}')" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# required: ffmpeg notify-send or zenity ;) | |
# you can schedule this with launchd to run e.g. weekly | |
# Specify in seconds how long the script should record (default here is 1 hour). | |
seconds=3600 | |
#Specify in miliseconds notify timeout | |
notify=3000 | |
# Date format for the recording file name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AN-308 TRIAC analog control circuits for inductive loads | |
http://www.st.com/content/ccc/resource/technical/document/application_note/bf/c5/c3/a5/3b/51/48/af/CD00003856.pdf/files/CD00003856.pdf/jcr:content/translations/en.CD00003856.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
APIK="apikey:Your Airly API KEY" | |
########################################################################### | |
# | |
json2txt(){ | |
sed 's/\\\\\//\//g' |\ | |
sed 's/[{}]//g' |\ | |
awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}'|\ | |
sed 's/[\,]/ /g' |\ | |
sed 's/\"//g' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# 2016 :p raphik | |
#Mirror!! | |
# Comando para LCD HD44780 + expansor I2C PCF8574T | |
# Sintaxis: lcd_write <línea> <texto> | |
#Source:http://foro.seguridadwireless.net/openwrt/proyecto-gpio-manejo-de-una-pantalla-lcd-via-bus-i2c/?action=printpage | |
# | |
func_init() # Init | |
{ | |
func_LCD I 0x33; func_LCD I 0x32; func_LCD I 0x28; func_LCD I 0x0C; func_LCD I 0x01 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#ENJOY | |
DL(){ | |
conversations_http_downloader.py "$a" | |
} | |
#We are in /tmp? | |
if ! [[ "$PWD" == '/tmp' ]] | |
then | |
echo 'Go to /tmp' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.mp4 \ | |
-map 0:1 \ | |
-c:a copy \ | |
-y output.m4a |