Skip to content

Instantly share code, notes, and snippets.

View paperbenni's full-sized avatar

paperbenni

View GitHub Profile
@paperbenni
paperbenni / ngrok_url.sh
Created April 6, 2018 14:28 — forked from Dalimil/ngrok_url.sh
Get ngrok URL from command line
# ngrok should be running
# replace http with https at the end if needed
# based on: https://gist.github.com/rjz/af40158c529d7c407420fc0de490758b
echo $(curl -s localhost:4040/inspect/http | grep -oP 'window.common[^;]+' | sed 's/^[^\(]*("//' | sed 's/")\s*$//' | sed 's/\\"/"/g') | jq -r ".Session.Tunnels | values | map(.URL) | .[]" | grep "^tcp://"
@paperbenni
paperbenni / ModPackPE.js
Created March 5, 2018 20:30
This is a beta script of modpackpe
/*
This is my biggest Mod. Thanks for downloading!
Please dont steal my code!!!
functions:
function Level.getChestSlot(x, y, z, slot);
function Level.getChestSlotCount(x, y, z, slot);
function Level.getChestSlotData(x, y, z, slot);
call plug#begin('~/.local/share/nvim/plugged')
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/deoplete.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'