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 | |
sudo apt-get install --yes cups cups-pdf hplip | |
sudo usermod -a -G lpadmin $USER | |
sudo usermod -a -G lp $USER | |
sudo cupsctl --remote-any | |
sudo /etc/init.d/cups restart |
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 | |
sudo apt-get update | |
# reset ping's capabilities | |
sudo apt-get install --reinstall --yes iputils-ping | |
# missing programs | |
sudo apt-get install --yes rsync screen screenie caca-utils lynx sshfs |
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 | |
sudo dpkg-reconfigure keyboard-configuration | |
sudo dpkg-reconfigure locales | |
sudo dpkg-reconfigure tzdata | |
sudo reboot |
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 | |
NEWUSER=$1 | |
if [ -z "$NEWUSER" ]; then | |
read -p "New User: " NEWUSER | |
fi | |
# add main user account | |
sudo adduser $NEWUSER |
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
@mixin input-placeholder { | |
&::-webkit-input-placeholder { | |
@content; | |
} | |
&:-moz-placeholder { // Firefox 18- | |
@content; | |
} | |
&::-moz-placeholder { // Firefox 19+ | |
@content; | |
} |
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
// http://cssmojo.com/latest_new_clearfix_so_far/ | |
// For those wondering about the class name… It stands for *Beat That* ClearFix! :) | |
@mixin bt-clearfix { | |
&:after { | |
content:""; | |
display:table; | |
clear:both; | |
} | |
} | |
%bt-clearfix { |
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
// Add percentage of white to a color | |
@function tint($color, $percent) { | |
@return mix(white, $color, $percent * 1%); | |
} | |
// Add percentage of black to a color | |
@function shade($color, $percent) { | |
@return mix(black, $color, $percent * 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
if (Element && !Element.prototype.matches) { | |
Element.prototype.matches = Element.prototype.matchesSelector || | |
Element.prototype.mozMatchesSelector || | |
Element.prototype.msMatchesSelector || | |
Element.prototype.oMatchesSelector || | |
Element.prototype.webkitMatchesSelector; | |
} |
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
/(?:\"?([^\"]*)\"?\s+<?)?([^<>]*)(?:>)?/ |