Skip to content

Instantly share code, notes, and snippets.

View lucioreyli's full-sized avatar
:shipit:
bulding something

lucio andrade lucioreyli

:shipit:
bulding something
View GitHub Profile
@gabe565
gabe565 / change-arc-icon.md
Last active April 19, 2025 17:00
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@bdsqqq
bdsqqq / vesper-dark.json
Last active December 1, 2024 20:38
Vesper theme for zed.dev
{
"$schema": "https://zed.dev/schema/themes/v0.1.0.json",
"name": "Vesper",
"author": "Rauno Freiberg",
"themes": [
{
"name": "Vesper",
"appearance": "dark",
"style": {
"border": "#101010",
@kenji21
kenji21 / xcode-previous-older-sdks.md
Last active April 13, 2025 17:23
Use previous/older SDKs with Xcode
@0xkarmacoma
0xkarmacoma / sending-ether-cheat-sheet.md
Last active March 15, 2025 00:17
Sending Ether Cheat Sheet

Sending Ether Cheat Sheet

TLDR

🥇 Instead of sending Ether, use the withdrawal pattern

🥈 If you really need to send Ether, use a safe wrapper like OpenZeppelin's Address.sendValue(addr, amount)

🥉 If you really need to send Ether without dependencies, use (bool success, ) = addr.call{value: amount}("")

@jdomzhang
jdomzhang / tls_test.go
Created November 15, 2019 08:50
golang tls connection with TLS 1.2
package onboarding_test
import (
"crypto/tls"
"log"
"net"
"net/http"
"testing"
)
@tommysdk
tommysdk / select_java_version
Last active February 20, 2025 15:00
Change default Java version on Mac OS X using Fish shell
# Based on https://stackoverflow.com/a/26252993/1665539
# Show all installed Java versions
/usr/libexec/java_home -V
# Select major version (if unique, otherwise specify full name e.g. 1.8.0_131)
set -x JAVA_HOME (/usr/libexec/java_home -v 1.8)
# Verify
java -version
@siwalikm
siwalikm / aes-256-cbc.js
Last active March 14, 2025 21:33
AES-256-CBC implementation in nodeJS with built-in Crypto library
'use strict';
const crypto = require('crypto');
const ENC_KEY = "bf3c199c2470cb477d907b1e0917c17b"; // set random encryption key
const IV = "5183666c72eec9e4"; // set random initialisation vector
// ENC_KEY and IV can be generated as crypto.randomBytes(32).toString('hex');
const phrase = "who let the dogs out";
var encrypt = ((val) => {
@rordi
rordi / docker-debug.md
Last active July 15, 2024 20:30
Docker debugging an existing image

Debugging a Docker image

Start up the Docker container from image:

docker run --entrypoint "/bin/sh" --rm imagename:latest -c "sleep 24h"

Obtain the container hash id:

docker ps
@dannyge
dannyge / dockerfile
Created July 16, 2016 10:20
docker
docker run --name mysql \
-d -p 9306:3306 \
--restart always \
-v /data/docker/mysql:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=root_pwd \
-e MYSQL_USER=gitlab \
-e MYSQL_PASSWORD=gitlab_db \
-e MYSQL_DATABASE=gitlab \
mysql:latest
@jaydenseric
jaydenseric / ffmpeg-web-video-guide.md
Last active March 18, 2025 17:57
A quick guide to using FFmpeg to create cross-device web videos.

Video conversion with FFmpeg

Install

On mac:

  1. Download the latest release.
  2. Extract the binary and place it in /usr/local/bin.

Command basics