Skip to content

Instantly share code, notes, and snippets.

View thelastinuit's full-sized avatar
I don't know love. I was built to protect not to love.

loving marshmallow thelastinuit

I don't know love. I was built to protect not to love.
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
/* htts://sample.io/app.js
*
*/
(function() {
var BadgeInjector = (function (name) {
var root = typeof window !== 'undefined' ? window : global;
var had = Object.prototype.hasOwnProperty.call(root, name);
var prev = root[name];
@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
}

Keybase proof

I hereby claim:

  • I am thelastinuit on github.
  • I am thelastinuit (https://keybase.io/thelastinuit) on keybase.
  • I have a public key whose fingerprint is AC89 77B7 1754 CB8F 882E 308A 5F25 69EE 3887 D157

To claim this, I am signing this object:

@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