$ sudo apt-get install aptitude git guake byobu python3-pip zsh htop curl
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
# check the volumes | |
sudo pvs | |
# mount the right one | |
sudo mount /dev/mapper/mint--vg-root /mnt | |
sudo mount --bind /sys /mnt/sys/ | |
sudo mount --bind /proc /mnt/proc/ | |
sudo mount --bind /dev /mnt/dev/ | |
sudo mount /dev/sda2 /mnt/boot | |
# confim | |
ls /mnt/boot/ |
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 | |
red(){ | |
RED="\033[0;31m" | |
printf "${RED}${1}\n" | |
} | |
tmpFile="/tmp/frontend_test" | |
errorFrontend="/tmp/.error_tests_frontend" | |
rm -rf $tmpFile |
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 | |
guake -n guake -e 'cd dev/dragonlaw && c && v' guake -r 'Main' | |
guake -n guake -e 'cd dev/dragonlaw/src/scripts/modules/document && c && v' guake -r 'Document' | |
guake -n guake -e 'cd dev/dragonlaw/src/scripts/modules/doctype && c && v' guake -r 'Doctype' | |
guake -n guake -e 'cd dev/dragonlaw/src/scripts/baseApp && c && v' guake -r 'BaseApp' | |
guake -n guake -e 'cd dev/dragonlaw/src/scripts/submodules/entities && c && v' guake -r 'Entities' | |
guake -n guake -e 'cd dev/dragonlaw/src/scripts/submodules/components && c && v' guake -r 'Components' | |
exit 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
#!/bin/bash | |
echo '' | |
echo '--------------------------' | |
echo "--RE-TAGGING: ${1}" | |
echo '--------------------------' | |
echo '' | |
git tag -d ${1} | |
git push origin :refs/tags/${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
import _ from 'lodash' | |
let inserter = (table, items) => { | |
let validKeys = _.keys(items).join(', '), | |
countKeys = _.reduce(items, (results) => { | |
results.push('$' + (results.length + 1)) | |
return results | |
}, []).join(', '), | |
data = _.values(items) |
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
Start: | |
sudo su - postgres | |
psql | |
By default, postgres tries to connect to a database with the same name as your user. | |
To prevent this default behaviour, just specify user and database: | |
psql -U Username DatabaseName | |
To check if running: | |
sudo service postgresql status |
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 view = new View({ | |
state: state, // <- state | |
)}; | |
state.set({ | |
action: 'myFunction', | |
data: { | |
awesome: true | |
} | |
}); |
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
<snippet> | |
<content><![CDATA[ | |
}); | |
]]></content> | |
<tabTrigger>w</tabTrigger> | |
<description>Close callback function: });</description> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>source.javascript</scope> --> | |
</snippet> |
NewerOlder