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
// IPSUM image generator [http://ipsumimage.appspot.com] | |
$ipsum-img-api: 'http://ipsumimage.appspot.com' !default; | |
@mixin ipsum-img($width, $height, $label: false) { | |
@if $label { | |
background-image: url($ipsum-img-api + '/' + $width + 'x' + $height + '?l=' + $label); | |
} @else { | |
background-image: url($ipsum-img-api + '/' + $width + 'x' + $height); | |
} | |
background-position: center center; |
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
# htaccess rules for subdomains and aliases | |
# to create new subdomain, create a folder www/subdom/(subdomain name) | |
# to create web for alias, create a folder www/domains/(whole domain name) | |
# htaccess pravidla pro subdomeny a samostatne weby aliasu | |
# pro vytvoreni subdomeny vytvorte adresar www/subdom/(nazev subdomeny) | |
# pro vytvoreni webu pro alias vytvorte adresar www/domains/(cely domenovy nazev) | |
# dalsi info a priklady: http://kb.wedos.com/r/32/webhosting-htaccess.html | |
#Options -MultiViews |
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
https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css | |
https://fonts.googleapis.com/icon?family=Material+Icons |
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
sudo find . -type f -exec chmod 644 {} \; && sudo find . -type d -exec chmod 755 {} \; | |
sudo chmod -R 777 ./ | |
chmod g=,o=rx /home/* | |
# chmod revert | |
git diff --numstat | awk '{if ($1 == "0" && $2 == "0") print $3}' | xargs git checkout HEAD | |
git diff --summary | grep --color 'mode change 100755 => 100644' | cut -d' ' -f7- | xargs -d'\n' chmod +x | |
git diff --summary | grep --color 'mode change 100644 => 100755' | cut -d' ' -f7- | xargs -d'\n' chmod -x |
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
ssh-keygen -t rsa -C "[email protected]" | |
sudo apt-get install xclip | |
xclip -sel clip < ~/.ssh/id_rsa.pub | |
clip < ~/.ssh/id_rsa.pub |
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
# Root clear | |
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')") | |
# Unity Lens DISABLE | |
gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']" | |
# Spotify FIX |
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
echo '#upgrade' && sudo apt-get autoremove -y && sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get autoremove -y && read -p "Reboot (y/n)?" CONT && [ "$CONT" = "y" ] && sudo reboot |
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
bundle install && gem uninstall bcrypt-ruby --force && gem uninstall bcrypt --force && gem install bcrypt --platform=ruby |
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
ln -s /home/mattermost/config/ /home/mattermost/mattermost/ && ln -s /home/mattermost/data/ /home/mattermost/mattermost/ && ln -s /ho me/mattermost/logs/ /home/mattermost/mattermost/ | |
sudo chown -R mattermost:mattermost ./mattermost |
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
npm install --global --production windows-build-tools |
OlderNewer