Skip to content

Instantly share code, notes, and snippets.

View caputomarcos's full-sized avatar
👽
ping!

Marcos Caputo caputomarcos

👽
ping!
View GitHub Profile
@caputomarcos
caputomarcos / README.md
Created February 5, 2022 15:35 — forked from cerebrate/README.md
Recompile your WSL2 kernel - support for snaps, apparmor, lxc, etc.

NOTE

See https://gist.github.com/cerebrate/d40c89d3fa89594e1b1538b2ce9d2720#gistcomment-3563688 below before doing anything else.

Recompile your WSL2 kernel - support for snaps, apparmor, lxc, etc.

Yes, I've done this, and yes, it works. It is, however, entirely unsupported and assembled through reasonable guesswork, so if you try this and it explodes your computer, brain, career, relationships, or anything else, you agree that you take sole responsibility for doing it, that I never claimed it was a good idea, and that you didn't get these instructions from me .

@caputomarcos
caputomarcos / decompile_java.md
Last active February 10, 2022 20:23
Decompile Java class or Jar container under Linux Mint / Ubuntu

Lee Benfield's Java decompiler CFR is straight forward and can even batch decompile jar container. 

  1. Download the most recent version of CFR (crf 0.1.15 at the time of writing)
wget http://www.benf.org/other/cfr/cfr_0_115.jar
  1. Run decompile with output into terminal
java -jar cfr_0_115.jar javaclasstodecompiles.class
@caputomarcos
caputomarcos / start_rssh_tunnel.sh
Created March 17, 2022 20:00 — forked from volkstrader/start_rssh_tunnel.sh
Start reverse ssh tunnel for cron job
#!/bin/bash
SSH_REDIR_PORT=12345
SSH_D="cloud_sshd"
COMMAND="ssh -R $SSH_REDIR_PORT:localhost:22 $SSH_D -N -f"
pgrep -f "ssh -R $SSH_REDIR_PORT:localhost:22" > /dev/null 2>&1 || (eval $COMMAND && echo $COMMAND)
@caputomarcos
caputomarcos / Docker: save_load_compressed_container.bash
Created March 21, 2022 22:08 — forked from lsauer/Docker: save_load_compressed_container.bash
Docker: save/load container using tgz file (tar.gz)
#for an image ("not running container") use save:
docker save <dockernameortag> | gzip > mycontainer.tgz
#for running or paused docker, use export:
docker export <dockernameortag> | gzip > mycontainer.tgz
#load
gunzip -c mycontainer.tgz | docker load
@caputomarcos
caputomarcos / listchars.vim
Created May 4, 2022 14:51 — forked from while0pass/listchars.vim
show/hide hidden characters in Vim
" hide hidden chars
:set nolist
" show hidden characters in Vim
:set list
" settings for hidden chars
" what particular chars they are displayed with
:set lcs=tab:▒░,trail:▓,nbsp:░
" or
@caputomarcos
caputomarcos / README.md
Last active November 9, 2023 23:33
Micro-FrontEnd with jsGrid & MongoDB

flow

in Ubuntu

~\.node-red\settings.js

include the ObjectId as global import

functionGlobalContext: {