Skip to content

Instantly share code, notes, and snippets.

View thelastinuit's full-sized avatar
🖖
חֶסֶד שֶׁל אֱמֶת

luis ignacio thelastinuit

🖖
חֶסֶד שֶׁל אֱמֶת
View GitHub Profile
@thelastinuit
thelastinuit / docker-x11.bash
Created March 10, 2024 18:07 — forked from kiki67100/docker-x11.bash
Docker macOS X11 display
### Script to install xquartz and set the DISPLAY variable correctly, find the listen port and add current ip to connect to X11.
#skip if you want, install xquartz
brew cask reinstall xquartz
#get ip
IP=$(ifconfig|grep -E inet.*broad|awk '{ print $2; }')
#open XQuartz
open -a XQuartz &
#Go to preference Security check allow network, restart :
read -p "Go to preference Security check allow network and press a key to continue"
// Unity C# Cheat Sheet
// I made these examples for students with prior exerience working with C# and Unity.
// Too much? Try Unity's very good tutorials to get up to speed: https://unity3d.com/learn/tutorials/topics/scripting

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@thelastinuit
thelastinuit / redis_cheatsheet.bash
Created May 18, 2021 12:53 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@thelastinuit
thelastinuit / yardoc_cheatsheet.md
Created August 6, 2020 00:54 — forked from phansch/yardoc_cheatsheet.md
Improved YARD cheatsheet
@thelastinuit
thelastinuit / gist:3ca551e95063830cadad4bd41681c411
Created June 23, 2020 08:41 — forked from moraes/gist:2141121
LIFO Stack and FIFO Queue in golang
package main
import (
"fmt"
)
type Node struct {
Value int
}
@thelastinuit
thelastinuit / docker-cleanup-resources.md
Created August 6, 2019 14:58 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@thelastinuit
thelastinuit / sidekiq_monitoring
Created March 4, 2019 16:50 — forked from ngsmrk/sidekiq_monitoring
Sidekiq queue checking via rails console
stats = Sidekiq::Stats.new
stats.queues
stats.enqueued
stats.processed
stats.failed
@thelastinuit
thelastinuit / wait_until.rb
Created January 25, 2019 18:16 — forked from metaskills/wait_until.rb
Never sleep() using Capybara!
# Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations?
describe 'Modal' do
should 'display login errors' do
visit root_path
click_link 'My HomeMarks'
within '#login_area' do
fill_in 'email', with: 'will@not.work'
fill_in 'password', with: 'test'