Para evitar entrar como usuario root, crear otro usuario y darle permisos de sudo
$ sudo adduser deploy
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/gruvbox/gruvbox (Dark) (Hard) NDC.sublime-color-scheme", | |
"font_face": "Courier New", | |
"font_options": | |
[ | |
"bold" | |
], | |
"font_size": 14, |
{ | |
"workbench.colorTheme": "Oceanic Plus", | |
"workbench.iconTheme": "file-icons", | |
"security.workspace.trust.untrustedFiles": "open", | |
"editor.fontFamily": "'Operator Mono Lig', Consolas, 'Courier New', monospace", //"Fira Code", | |
"editor.fontLigatures": true, | |
"editor.fontWeight": "100", | |
"editor.fontSize": 14, | |
"editor.tabSize": 2, | |
"explorer.confirmDelete": false, |
function previewImage(input, previewSelector) { | |
if (input.files && input.files[0]) { | |
var reader = new FileReader(); | |
reader.onload = function(e) { | |
$(previewSelector).attr('src', e.target.result); | |
} | |
reader.readAsDataURL(input.files[0]); | |
} |
cd /path/to/your/repo | |
curl https://gist.githubusercontent.com/smezae/743378e474a87c450b061045ee250a50/raw/71ee093163ea8f7c73f1a7217f6416ac7092d3ba/pre-push.sh > .git/hooks/pre-push | |
chmod u+x .git/hooks/pre-push |
[ | |
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" }, | |
{ "keys": ["ctrl+shift+m"], "command": "toggle_menu"}, | |
{ "keys": ["ctrl+shift+s"], "command": "auto_save" }, | |
// Multiple carets | |
{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} }, | |
{ "keys": ["ctrl+keypad_divide"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["ctrl+shift+keypad_divide"], "command": "toggle_comment", "args": { "block": true } }, | |
//{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} } |
<!-- CSS --> | |
<style> | |
/* enable absolute positioning */ | |
.inner-addon { | |
position: relative; | |
} | |
/* style glyph */ | |
.inner-addon .glyphicon { | |
position: absolute; |