Known Issues: On High Sierra there are problems related to the screen brightness and sleep issues.
This file contains 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 | |
mencoder tv:// -tv driver=v4l2:norm=NTSC:width=720:height=480:fps=30:alsa:amode=1:forcechan=2:audiorate=48000:adevice=hw.3,0:forceaudio:immediatemode=0 -oac mp3lame -ovc xvid -xvidencopts bitrate=1600:threads=4 -endpos 6:00:00 -vf yadif=0 -o |
This file contains 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 | |
wget https://www.compareschoolrankings.org/api/v1/schools.json -O school.json | |
jq '.data[] | { sid:.sid, title:.title, province:.province, type:.schoolType, rank:.schoolInfoData."Rank This Yr", city:.schoolInfoData.SchoolCity, pubOrPriv:.schoolInfoData.IND_or_PUB,lang:.schoolInfoData.SchoolLanguage,admin:.schoolInfoData.AdminBodyName } ' school.json | jq -rn -L. 'include "json2csv"; [inputs]|json2csv' > school.csv |
This file contains 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 | |
jq 'INDEX(.cards[]; .id) as $card | .checklists[] | { "card":$card[.idCard]|.name,"description":$card[.idCard]|.desc,"checklist":.name, "items": [.checkItems[] | (if .state=="incomplete" then .name +" [ ]" else .name + " [X]" end)]}' < $1 |
This file contains 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 | |
# https://metabubble.net/linux/how-to-keep-using-dropbox-even-if-you-dont-use-unencrypted-ext4-workaround/ | |
if [[ -f ~/.dropbox/storage ]]; then | |
echo "File exist please revert installation manually if you want to install" | |
echo "Know what you are doing..." | |
echo "======" | |
echo "pkill -9 dropbox" | |
echo "umount ~/Dropbox" | |
echo "sudo chattr -i ~/Dropbox" |
This file contains 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 | |
# https://metabubble.net/linux/how-to-keep-using-dropbox-even-if-you-dont-use-unencrypted-ext4-workaround/ | |
if [[ -f ~/.dropbox/storage ]]; then | |
echo "File exist please revert installation manually if you want to install" | |
echo "Know what you are doing..." | |
echo "======" | |
echo "pkill -9 dropbox" | |
echo "umount ~/Dropbox" | |
echo "sudo chattr -i ~/Dropbox" |
This file contains 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 | |
jhead -n%Y%m%d-%H%M%S $1 |
This file contains 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 | |
AIRPORT=$1 | |
DATE=$2 | |
TIME=$3 | |
UTC=$(printf "TZ=UTC date +\"%%Y%%m%%d %%H%%M\" --date='TZ=\"America/Montreal\" %s %s'" $2 $3) | |
UTC=$(eval ${UTC}) | |
#echo $UTC |
This file contains 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
<?xml version="1.0"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pom="http://maven.apache.org/POM/4.0.0" xmlns="http://maven.apache.org/POM/4.0.0" version="1.0"> | |
<xsl:output omit-xml-declaration="yes" indent="yes"/> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="node()|@*"> | |
<xsl:copy> | |
<xsl:apply-templates select="node()|@*"/> | |
</xsl:copy> | |
</xsl:template> | |
<xsl:template match="pom:scm"> |
This file contains 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
/** | |
* | |
* A working prototype to support PROXY protocol as described | |
* @see <a href="http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt">HAProxy Documentation</a> | |
* | |
* Feel free to improve and integrate to the core library, just include my name as contributor : | |
* Tony Bussieres - [email protected] | |
* | |
*/ |
NewerOlder