forked from fmarier/user-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
103 additions
and
99 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test: | ||
@echo Running shellcheck... | ||
@shellcheck --exclude SC1071 --exclude SC2096 [a-z]* | ||
#@echo Running bashate... | ||
#@bashate [a-z]* |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
#!/bin/bash | ||
CPU_GOVERNOR=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor` | ||
CPU_GOVERNOR=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) | ||
if [ "$CPU_GOVERNOR" != "performance" ] ; then | ||
echo "WARNING: your main CPU is set to the $CPU_GOVERNOR governor, this may take a while." | ||
fi | ||
|
||
pushd ~/devel/mozilla-central | ||
export MOZCONFIG=`pwd`/.mozconfig-b2g | ||
MOZCONFIG=$(pwd)/.mozconfig-b2g | ||
export MOZCONFIG | ||
./mach build | ||
popd |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
echo '{ "version": 1 }' | ||
echo '[' | ||
echo '[],' | ||
exec conky -c $HOME/.conkyrc | ||
exec conky -c "$HOME/.conkyrc" |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
#!/bin/sh | ||
|
||
POP_FILE=`mktemp` | ||
IMAP1_FILE=`mktemp` | ||
IMAP2_FILE=`mktemp` | ||
SMTP1_FILE=`mktemp` | ||
SMTP2_FILE=`mktemp` | ||
POP_FILE="$(mktemp)" | ||
IMAP1_FILE="$(mktemp)" | ||
IMAP2_FILE="$(mktemp)" | ||
SMTP1_FILE="$(mktemp)" | ||
SMTP2_FILE="$(mktemp)" | ||
|
||
echo "" | openssl s_client -connect pop.gmail.com:995 -showcerts > $POP_FILE 2> /dev/null | ||
echo "" | openssl s_client -connect imap.gmail.com:993 -showcerts > $IMAP1_FILE 2> /dev/null | ||
echo "" | openssl s_client -connect imap.kolabnow.com:993 -showcerts > $IMAP2_FILE 2> /dev/null | ||
echo "" | openssl s_client -connect smtp.gmail.com:587 -starttls smtp -showcerts > $SMTP1_FILE 2> /dev/null | ||
echo "" | openssl s_client -connect smtp.kolabnow.com:587 -starttls smtp -showcerts > $SMTP2_FILE 2> /dev/null | ||
echo "" | openssl s_client -connect pop.gmail.com:995 -showcerts > "$POP_FILE" 2> /dev/null | ||
echo "" | openssl s_client -connect imap.gmail.com:993 -showcerts > "$IMAP1_FILE" 2> /dev/null | ||
echo "" | openssl s_client -connect imap.kolabnow.com:993 -showcerts > "$IMAP2_FILE" 2> /dev/null | ||
echo "" | openssl s_client -connect smtp.gmail.com:587 -starttls smtp -showcerts > "$SMTP1_FILE" 2> /dev/null | ||
echo "" | openssl s_client -connect smtp.kolabnow.com:587 -starttls smtp -showcerts > "$SMTP2_FILE" 2> /dev/null | ||
|
||
echo "pop.gmail.com:" | ||
openssl x509 -fingerprint -md5 -noout -in $POP_FILE && rm $POP_FILE | ||
openssl x509 -fingerprint -md5 -noout -in "$POP_FILE" && rm "$POP_FILE" | ||
|
||
echo | ||
echo "imap.gmail.com:" | ||
openssl x509 -fingerprint -md5 -noout -in $IMAP1_FILE && rm $IMAP1_FILE | ||
openssl x509 -fingerprint -md5 -noout -in "$IMAP1_FILE" && rm "$IMAP1_FILE" | ||
|
||
echo | ||
echo "imap.kolabnow.com:" | ||
openssl x509 -fingerprint -md5 -noout -in $IMAP2_FILE && rm $IMAP2_FILE | ||
openssl x509 -fingerprint -md5 -noout -in "$IMAP2_FILE" && rm "$IMAP2_FILE" | ||
|
||
echo | ||
echo "smtp.gmail.com:" | ||
openssl x509 -fingerprint -sha256 -noout -in $SMTP1_FILE && rm $SMTP1_FILE | ||
openssl x509 -fingerprint -sha256 -noout -in "$SMTP1_FILE" && rm "$SMTP1_FILE" | ||
|
||
echo | ||
echo "smtp.kolabnow.com:" | ||
openssl x509 -fingerprint -sha256 -noout -in $SMTP2_FILE && rm $SMTP2_FILE | ||
openssl x509 -fingerprint -sha256 -noout -in "$SMTP2_FILE" && rm "$SMTP2_FILE" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
/usr/bin/pdftotext -enc UTF-8 -eol unix $1 - | ||
/usr/bin/pdftotext -enc UTF-8 -eol unix "$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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
#!/bin/sh | ||
# shellcheck disable=SC2048,SC2086 | ||
gs -sDEVICE=pdfwrite -sOutputFile=merged.pdf -q -dNOPAUSE $* quit.ps |
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
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
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
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
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
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
Oops, something went wrong.