Skip to content

Instantly share code, notes, and snippets.

@Gee19
Gee19 / fzf-session-picker.vim
Created January 9, 2023 08:17
fzf session picker
" FZF Session Picker {{{
let s:session_dir = '$HOME/.vim/session/'
function! s:list_sessions() abort
return systemlist('ls ' . s:session_dir)
endfunction
function! s:source_session(line) abort
exec 'source ' . s:session_dir . substitute(a:line[0], '%', '\\%', 'g')
endfunction
@Gee19
Gee19 / wh_v2.ahk
Created May 1, 2021 07:59
rsi sux
#MaxThreadsPerHotkey 2
#If WinActive("Vermintide 2")
MButton::
Toggle := !Toggle
loop
{
If not Toggle
break
Click
sleep 100
@Gee19
Gee19 / pylance-coc-settings.json
Created March 18, 2021 02:04
pylance coc.nvim
{
"pylance": {
"enable": true,
"filetypes": ["python"],
"command": "node",
"args": ["/home/user/.vscode-oss/extensions/ms-python.vscode-pylance-2020.7.3/server/server.bundle.js", "--stdio"],
"initializationOptions": {},
"settings": {
"python.analysis.typeCheckingMode": "basic",
"python.analysis.diagnosticMode": "openFilesOnly",
@Gee19
Gee19 / scroll_float
Created January 13, 2021 05:36
Scroll floating win in insert mode (creds to @oblitum)
function! FloatScroll(forward) abort
let float = coc#util#get_float()
if !float | return '' | endif
let buf = nvim_win_get_buf(float)
let buf_height = nvim_buf_line_count(buf)
let win_height = nvim_win_get_height(float)
if buf_height < win_height | return '' | endif
let pos = nvim_win_get_cursor(float)
if a:forward
if pos[0] == 1
@Gee19
Gee19 / xsrfstateman
Created June 13, 2019 15:40
deobfuscate attempt
'use strict';
var g = this || self;
var h = Date.now || function() {
return +new Date;
};
var k = function() {
this.f = "";
};
k.prototype.toString = function() {
return "SafeScript{" + this.f + "}";

Keybase proof

I hereby claim:

  • I am gee19 on github.
  • I am gee19 (https://keybase.io/gee19) on keybase.
  • I have a public key ASDnLMRJhM2QSBPK9_SXMfHNWpUstx1wedQPWfhSaGwOfAo

To claim this, I am signing this object:

def insert_after(self, the_list, after, items_to_insert):
after_obj = next((i for i in the_list if
getattr(i, 'id', None) == after or getattr(i, 'name',
None) == after))
for item in reversed(items_to_insert):
try:
the_list.insert(the_list.index(after_obj) + 1, item)
except ValueError as exc:
raise IntegrationPluginException(