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
How to change origin remote on a repository and keep track of master branch in three steps | |
Example to change it to a GitHub repository | |
1- Set new url | |
git remote set-url origin git@github.com:{a-github-user}/{a-repository}.git | |
2- To check if the new url is set | |
git remote -v | |
Displays something like this: | |
origin git@github.com:{a-github-user}/{a-repository}.git (fetch) |
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 --single-transaction --routines -u{user} -p'{password}' {database} | bzip2 -cq9 > {YYYYMMDD}_{HHMM}_{database}.sql.bz2 |
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
[Data] | |
DataCount=1 | |
[Data_1] | |
Comment=Comment | |
DataCount=10 | |
Enabled=true | |
Name=qma | |
SystemGroup=0 | |
Type=ACTION_DATA_GROUP |
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 | |
#funciona pero nunca lo uso | |
#title="/var/log/syslog" | |
#command="tail /var/log/syslog -fn500" | |
#qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession | |
#terminal=`qdbus org.kde.yakuake /yakuake/sessions terminalIdList | tr , "\n" | sort -g | tail -1 | tr -d '\n'` | |
#session=`qdbus org.kde.yakuake /yakuake/sessions sessionIdForTerminalId $terminal` | |
#qdbus org.kde.yakuake /yakuake/tabs org.kde.yakuake.setTabTitle $session "$title" | |
#qdbus org.kde.yakuake /yakuake/sessions runCommandInTerminal $terminal "$command" |
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
perl -p -i -e 's/`root`@`{some-ip-number}`/`root`@`localhost`/g' {some-mysql-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
You need to create a fresh branch from the remote HEAD, cherry-pick the commit to that branch, push the branch to your repo on GitHub, then create a pull request. | |
git checkout -b mybranch | |
git fetch upstream | |
git reset --hard upstream/master | |
git cherry-pick <commit-hash> | |
git push origin mybranch:mybranch | |
Further reference on: | |
http://stackoverflow.com/questions/25955822/git-cherry-pick-a-single-commit-for-pull-request |
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
# mysql dump | |
mysqldump --single-transaction --routines -uroot -p dbname | bzip2 -cq9 > dbname.sql.bz2 |
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
04c6bf737fdc6d5718770fac0a24b0f3584a2db3e0708c253619eae53c0468195bc383ca9ba30d6e831decdf3931a02e9c7d6f5c4df2dff45583ddea0649262257;mrbarletta |
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
/* | |
Download the font from this url: | |
https://noto-website-2.storage.googleapis.com/pkgs/NotoColorEmoji-unhinted.zip | |
*/ | |
@font-face { | |
font-family: 'NotoColorEmoji'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('Noto Color Emoji'), local('NotoColorEmoji'), | |
url('fonts/Noto/NotoColorEmoji.ttf') format('truetype') |
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
Check this out: | |
http://www.ibridge.be/?p=194 |
OlderNewer