Skip to content

Instantly share code, notes, and snippets.

Avatar

Theodore Keloglou sirodoht

View GitHub Profile
@sirodoht
sirodoht / dokku-commands.sh
Last active May 31, 2020
Dokku config commands
View dokku-commands.sh
# config with restart
dokku config:set mataroa SECRET_KEY=''
# config no restart
dokku config:set --no-restart mataroa EMAIL_HOST_USER=''
dokku config:set --no-restart mataroa EMAIL_HOST_PASSWORD=''
# run command
dokku run mataroa python manage.py createsuperuser --email zf@sirodoht.com --username sirodoht
@sirodoht
sirodoht / lighter.css
Created May 18, 2020
new.css lite version without fonts and minification https://newcss.net/
View lighter.css
:root {
--text-color: #1a1a1a;
--light-grey-color: #f6f8fa;
--grey-color: #e5e7eb;
--link-color: #0070f3;
--link-accent-color: #0366d6;
--light-cyan-color: #79ffe1;
--dark-cyan-color: #0c4047;
}
View keys.pub-link
View textmate-defaults.md

Textmate default settings

Exclude files matching

{*.{o,pyc},Icon\r,CVS,_darcs,_MTN,\{arch\},blib,*\~.nib}

Include files matching

View maccy_preference.sh
defaults write org.p0deje.Maccy hotKey control+command+c
defaults write org.p0deje.Maccy historySize 50
defaults write org.p0deje.Maccy popupPosition center
View vscode-keybindings.json
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+k i",
"command": "workbench.files.action.collapseExplorerFolders"
},
{
"key": "ctrl+down",
"command": "scrollLineDown",
"when": "textInputFocus"
@sirodoht
sirodoht / pg-restore.sh
Last active Jan 27, 2020
Restore dokku:postgres export to local (tar -xzvf first)
View pg-restore.sh
$ pg_restore -h 127.0.0.1 -d postgres export-dokku.dump -c -U postgres
View iterm-keybindings.itermkeymap
{"Touch Bar Items":[],"Key Mappings":{"0x9-0x40000":{"Action":0,"Text":""},"0xf72b-0x100000":{"Text":"","Action":4},"0xf72d-0x20000":{"Text":"","Action":8},"0xf703-0x300000":{"Text":"","Action":0},"0xf701-0x300000":{"Text":"","Action":6},"0xf72d-0x100000":{"Text":"","Action":8},"0x19-0x60000":{"Action":2,"Text":""},"0xf702-0x300000":{"Text":"","Action":2},"0xf703-0x320000":{"Text":"","Action":34},"0xf700-0x300000":{"Text":"","Action":7},"0xf72c-0x100000":{"Text":"","Action":9},"0xf729-0x100000":{"Text":"","Action":5},"0xf72c-0x20000":{"Text":"","Action":9},"0xf702-0x320000":{"Text":"","Action":33}}}
View iterm-keys.itermkeymap
{"Touch Bar Items":[],"Key Mappings":{"0xf700-0x260000":{"Action":10,"Text":"[1;6A"},"0x37-0x40000":{"Action":11,"Text":"0x1f"},"0x32-0x40000":{"Action":11,"Text":"0x00"},"0xf709-0x20000":{"Action":10,"Text":"[17;2~"},"0xf70c-0x20000":{"Action":10,"Text":"[20;2~"},"0xf729-0x20000":{"Action":10,"Text":"[1;2H"},"0xf72b-0x40000":{"Action":10,"Text":"[1;5F"},"0xf705-0x20000":{"Action":10,"Text":"[1;2Q"},"0xf703-0x260000":{"Action":10,"Text":"[1;6C"},"0xf700-0x220000":{"Action":10,"Text":"[1;2A"},"0xf701-0x280000":{"Action":11,"Text":"0x1b 0x1b 0x5b 0x42"},"0x38-0x40000":{"Action":11,"Text":"0x7f"},"0x33-0x40000":{"Action":11,"Text":"0x1b"},"0xf703-0x220000":{"Action":10,"Text":"[1;2C"},"0xf701-0x240000":{"Action":10,"Text":"[1;5B"},"0xf70d-0x20000":{"Action":10,"Text":"[21;2~"},"0xf702-0x260000":{"Action":10,"Text":"[1;6D"},"0xf729-0x40000":{"Action":10,"Text":"[1;5H"},"0xf706-0x20000":{"Action":10,"Text":"[1;2R"},"0x34-0x40000":{"Action":11,"Text":"0x1c"},"0xf700-0x280000":{"Action":11,"Text":"0x1b 0x1b 0x5b 0x4
@sirodoht
sirodoht / iterm-light.itermcolors
Created Jan 7, 2020
iTerm2 light colors preset
View iterm-light.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.25882354378700256</real>
You can’t perform that action at this time.