touch ~/.hushlogin
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 | |
while $@; do :; done |
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
beforeCreate() { | |
console.log(this, 'beforeCreate'); | |
}, | |
created() { | |
console.log(this, 'created'); | |
}, | |
beforeMount() { | |
console.log(this, 'beforeMount'); | |
}, | |
mounted() { |
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
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion | |
if [ -f "/usr/local/opt/bash-git-prompt/share/gitprompt.sh" ]; then | |
__GIT_PROMPT_DIR="/usr/local/opt/bash-git-prompt/share" | |
source "/usr/local/opt/bash-git-prompt/share/gitprompt.sh" | |
fi | |
whoami() { | |
echo -e "\nYou are logged on ${RED}$HOST" | |
echo -e "\nAdditionnal information:$NC " ; uname -a |
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
export const Colors = { | |
ebanxPallete: { | |
sky: { | |
deep: '#09285B', | |
darker: '#124D84', | |
dark: '#1A72AC', | |
medium: '#2397D4', | |
light: '#5AB1DF', | |
lighter: '#91CBEA', | |
bright: '#E9F4FA', |
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
cards = [ | |
{ | |
type: 'amex', | |
pattern: /^3[47]/, | |
format: /(\d{1,4})(\d{1,6})?(\d{1,5})?/, | |
length: [15], | |
cvcLength: [4], | |
luhn: true | |
}, { | |
type: 'dankort', |
Some commands can be found in the bin
directory.
ls
- list files
ls -a
- display hidden files and folders
ls -R
- provide a tree listing of directory structure.
ls -l
- displays extra details like size, user, date, permissions
cd <path>
-> change directory
(cd ..
-> takes to parent directory
cd
-> takes to user directory[denoted by ~]
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
// For a full list of event types: https://developer.mozilla.org/en-US/docs/Web/API/document.createEvent | |
var el = document.getElementById('olar'), | |
eBlur = document.createEvent('HTMLEvents'); | |
eBlur.initEvent('blur', true, false); | |
el.dispatchEvent(eBlur); |
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
$.validator.addMethod('CNH', function(value, element) { | |
var ret, | |
cnh = value, | |
firstChar = cnh.charAt(0); | |
if (cnh.replace(/[^\d]/g, '').length === 11 && firstChar.repeat(11) !== cnh) { | |
var dsc = 0; | |
for (var i = 0, j = 9, v = 0; i < 9; ++i, --j) { |