Skip to content

Instantly share code, notes, and snippets.

View carlRondoni's full-sized avatar

Carl A. Rondoni carlRondoni

View GitHub Profile
@carlRondoni
carlRondoni / reference.md
Created March 2, 2024 10:57
Dockerfile Reference

Dockerfile reference

Docker can build images automatically by reading the instructions from a Dockerfile. A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. This page describes the commands you can use in a Dockerfile.

Overview

The Dockerfile supports the following instructions:

@carlRondoni
carlRondoni / decrypt_dbeaver.go
Last active February 25, 2024 17:19
DBeaver password decryption script - for newer versions of DBeaver (still in test)
package main
import (
"crypto/aes"
"crypto/cipher"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
@carlRondoni
carlRondoni / decrypt_dbeaver.py
Created February 24, 2024 18:16 — forked from felipou/decrypt_dbeaver.py
DBeaver password decryption script - for newer versions of DBeaver
# https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection
# requires pycryptodome lib (pip install pycryptodome)
import sys
import base64
import os
import json
from Crypto.Cipher import AES
@carlRondoni
carlRondoni / init.lua
Last active February 28, 2024 18:31
Neovim config
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
Plug 'arcticicestudio/nord-vim'
Plug 'vim-airline/vim-airline'
Plug 'LunarWatcher/auto-pairs'
call plug#end()
" airline
let g:airline_powerline_fonts = 1
if !exists('g:airline_symbols')
@carlRondoni
carlRondoni / .wezterm.lua
Created February 24, 2024 18:03
Wezterm Config
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = {}
if wezterm_config_builder then
config = wezterm_config_builder()
end
@carlRondoni
carlRondoni / .vimrc
Last active February 24, 2024 18:12
Vim Config
call plug#begin(expand('~/.vim/plugged'))
Plug 'arcticicestudio/nord-vim'
Plug 'vim-airline/vim-airline'
Plug 'LunarWatcher/auto-pairs'
call plug#end()
" airline
let g:airline_powerline_fonts = 1
if !exists('g:airline_symbols')
@carlRondoni
carlRondoni / config
Last active February 24, 2024 18:00
i3wm Config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@carlRondoni
carlRondoni / hello-world.go
Last active February 24, 2024 18:04
Hello World example in go
package main
import "fmt"
func main() {
fmt.Println("Hello World!")
}
@carlRondoni
carlRondoni / sieve.go
Last active February 17, 2024 16:51
Sieve example on go
// Code from 'Gophercon 2014 Opening Keynot by Rob Pike' video
// https://www.youtube.com/watch?v=VoS7DsT1rdM
package main
import "fmt"
// Send the sequence 2, 3, 4, ... to channel 'ch'
func generate(ch chan<- int) {
for i := 2; ; i++ {
ch <- i // Send 'i' to channel 'ch'