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
| #!/bin/bash | |
| # Exists to fully update the git repo that you are sitting in... | |
| git pull && git submodule init && git submodule update && git submodule status |
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
| mysqldump -hServerName.co.za -uUsername -pPassword dataBaseName > /Local/directory/backup_name.sql |
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
| for k in `git branch|perl -pe s/^..//`;do echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r |
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 [email protected] "tar -zcf - /remote/dir/target/folder --exclude='/remote/dir/target/folder'" > /local-machine/directory/file.tar.gz | |
| // Multiple excludes can be appended! |
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
| To change all the directories to 755 (-rwxr-xr-x): | |
| find /opt/lampp/htdocs -type d -exec chmod 755 {} \; | |
| To change all the files to 644 (-rw-r--r--): | |
| find /opt/lampp/htdocs -type f -exec chmod 644 {} \; |
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
| $ git branch --merged | xargs git branch -d |
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
| To export: | |
| mysqldump -u mysql_user -p DATABASE_NAME > backup.sql | |
| To import: | |
| mysql -u mysql_user -p DATABASE < backup.sql |
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
| $( document ).ready(function() { | |
| // Registration specific styling | |
| $('#registration .logo').css({"text-align": "center","border-radius": "5px","background": "rgba(255,255,255,0.1)"}); | |
| $('#registration').css({"border-radius": "5px"}); | |
| // Login specific styling | |
| $('#login').css({"background": "rgba(255,255,255,0.9)","border-top-width": "0"}); | |
| }); |
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
| module Patterns | |
| class CredentialAdapter | |
| attr_reader :config_params | |
| def initialize(config_params ={}) | |
| @config_params = config_params | |
| end | |
| def method_missing(message, *args, &block) | |
| if config_params.include?(message) |
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
| $(function() { | |
| $('.chosen-select').chosen({ | |
| allow_single_deselect: true, | |
| no_results_text: 'No results matched' | |
| }); | |
| }); |
OlderNewer