View init_e3531.sh
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 | |
SERVICE=kannel | |
ATINOUT_BIN=/usr/bin/atinout | |
TTY=/dev/gsmmodem | |
while ! sudo systemctl is-active --quiet $SERVICE; do | |
echo "waiting the $SERVICE service to start" | |
sleep 10 | |
done; |
View strip_quotes_from_email.php
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
<?php | |
/** | |
* Remove the quoted parts from the message body. | |
* | |
* It actually handles: | |
* - Standard <blockquote>...</blockquote> | |
* - Yahoo | |
* - Thunderbird | |
* - OSX Mail Client |
View lazy-loading-images.js
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
var app = angular.module( "Demo", [] ); | |
app.directive( | |
"bnLazySrc", | |
function( $window, $document ) { | |
// I manage all the images that are currently being | |
// monitored on the page for lazy loading. | |
var lazyLoader = (function() { | |
// I maintain a list of images that lazy-loading |
View le-renew.sh
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 | |
#================================================================ | |
# Let's Encrypt renewal script for Apache on Ubuntu/Debian | |
# @author Erika Heidi<erika@do.co> | |
# Usage: ./le-renew.sh [base-domain-name] | |
# More info: http://do.co/1mbVihI | |
#================================================================ | |
domain=$1 | |
le_path='/opt/letsencrypt' | |
le_conf='/etc/letsencrypt' |
View mouse.xml
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
<keymap> | |
<global> | |
<mouse> | |
<leftclick>Select</leftclick> | |
<rightclick>Back</rightclick> | |
<middleclick>noop</middleclick> | |
<doubleclick id="0">noop</doubleclick> | |
<longclick id="0">noop</longclick> | |
<wheeldown>noop</wheeldown> | |
<wheelup>noop</wheelup> |
View keymap.xml
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
<keymap> | |
<global> | |
<keyboard> | |
<F1>SendClick(8)</F1> | |
<home>ActivateWindow(Home)</home> | |
<return>Select</return> | |
<leftwindows>ContextMenu</leftwindows> | |
<prev_track>PageUp</prev_track> | |
<next_track>PageDown</next_track> | |
<backspace>Back</backspace> |