Skip to content

Instantly share code, notes, and snippets.

View timgabets's full-sized avatar
🏠
Working from home

Tim Gabets timgabets

🏠
Working from home
View GitHub Profile
{
"color_scheme": "Packages/gruvbox/gruvbox (Dark) (Soft).sublime-color-scheme",
"find_selected_text": true,
"font_face": "Anka/Coder",
"font_size": 15,
"ignored_packages":
[
"Rust",
"Vintage"
],
[
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
{ "keys": ["ctrl+shift+t"], "command": "delete_trailing_spaces" },
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } }
]
@timgabets
timgabets / query_execution_plan.sql
Created May 10, 2020 21:32
Getting query execution plan in Oracle sqlplus
-- rlwrap sqlplus64 login/password@DB
set autotrace traceonly explain;
set linesize 10000;
select * from dual;
@timgabets
timgabets / openpgp.txt
Created September 6, 2017 19:59
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d3830f301ced1311ca74a5c9d1fe8fbdcd5a97b2]
@timgabets
timgabets / openpgp.txt
Created September 6, 2017 19:59
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d3830f301ced1311ca74a5c9d1fe8fbdcd5a97b2]
@timgabets
timgabets / openpgp.txt
Created September 6, 2017 19:58
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d3830f301ced1311ca74a5c9d1fe8fbdcd5a97b2]

Keybase proof

I hereby claim:

  • I am timgabets on github.
  • I am timgabets (https://keybase.io/timgabets) on keybase.
  • I have a public key whose fingerprint is D383 0F30 1CED 1311 CA74 A5C9 D1FE 8FBD CD5A 97B2

To claim this, I am signing this object:

@timgabets
timgabets / interval.py
Last active January 27, 2017 14:25
Get 30-minute interval list from now until midnight
import datetime
now = datetime.datetime.now()
time = now + datetime.timedelta(minutes = 30 - now.minute) if now.minute < 30 else now + datetime.timedelta(minutes = 60 - now.minute)
timestamps = []
while True:
timestamps.append('{:%H:%M}'.format(time))
if time.hour == 0:
break