Skip to content

Instantly share code, notes, and snippets.

Theodore Keloglou sirodoht

Block or report user

Report or block sirodoht

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vscode-keybindings.json
// Place your key bindings in this file to override the defaults
[
{
"key": "cmd+k i",
"command": "workbench.files.action.collapseExplorerFolders"
},
{
"key": "ctrl+pagedown",
"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>
@sirodoht
sirodoht / iterm.json
Last active Jan 7, 2020
iTerm2 profile export
View iterm.json
{
"Working Directory" : "\/Users\/sirodoht",
"Prompt Before Closing 2" : false,
"Selected Text Color" : {
"Red Component" : 0.34509803921568627,
"Color Space" : "sRGB",
"Blue Component" : 0.45882352941176469,
"Green Component" : 0.43137254901960786
},
"Rows" : 25,
View vscode.json
{
"workbench.startupEditor": "newUntitledFile",
"editor.cursorStyle": "block",
"files.exclude": {
"**/venv/": true
},
"editor.dragAndDrop": false,
"editor.rulers": [
80,
120
@sirodoht
sirodoht / brew-services.10m.rb
Created Sep 20, 2019
Brew Services BitBar Plugin by @eproxus
View brew-services.10m.rb
#!/usr/bin/env ruby
# <bitbar.title>Brew Services</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Adam Lindberg</bitbar.author>
# <bitbar.author.github>eproxus</bitbar.author.github>
# <bitbar.desc>Shows and manages Homebrew services.</bitbar.desc>
# <bitbar.image>http://i.imgur.com/hVfhHYP.jpg</bitbar.image>
# <bitbar.dependencies>ruby, brew, brew-services</bitbar.dependencies>
View self-signed-cert.md

How to generate a self-signed SSL using openssl

$ openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365

-nodes is for not requiring a passphrase (for the key).

How to remove passphrase from key using openssl

@sirodoht
sirodoht / sentry-test-exception.html
Last active Sep 1, 2019
Trigger test event for on premise Sentry
View sentry-test-exception.html
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Sentry test trigger event</title>
</head>
<body>
<script src="https://browser.sentry-cdn.com/5.6.3/bundle.min.js" integrity="sha384-/Cqa/8kaWn7emdqIBLk3AkFMAHBk0LObErtMhO+hr52CntkaurEnihPmqYj3uJho" crossorigin="anonymous"></script>
<script>
You can’t perform that action at this time.