Skip to content

Instantly share code, notes, and snippets.

View riseansmal's full-sized avatar
👨‍💻
🧠💻

Ri Sean Smal riseansmal

👨‍💻
🧠💻
View GitHub Profile
@riseansmal
riseansmal / tightcode.uuidv4-validate.js
Last active July 30, 2023 01:39
'Tight Code' JavaScript Helper Function to Validate UUIDv4 (RFC4122) Values
/*
Note: Yes, I know there are npm Packages that can do this, but it's
not always the best idea to drag a whole package including all it's
potential vulnerabilities around just for a simple task.
-- Always Be Kind and Help Others to Learn and Grow :)
*/
// 'Tight Code' JavaScript Helper Function to Validate UUIDv4 (RFC4122) Values
@riseansmal
riseansmal / ubuntu-vnc-without-monitor.md
Created June 15, 2023 09:50 — forked from dragolabs/ubuntu-vnc-without-monitor.md
Run VNC without connected monitor to ubuntu Desktop

Install Video Dummy Package

sudo apt-get install xserver-xorg-video-dummy

Create Default X Windows Configuration File

Create / Edit xorg.conf file Rename file if already exists for backup

@riseansmal
riseansmal / gist:725db38c52a966bdb402ad3cd0bd189b
Last active April 16, 2023 01:52 — forked from sebsto/gist:6af5bf3acaf25c00dd938c3bbe722cc1
Start VNCServer on Mac1 EC2 Instance
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU
#
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances)
#
ssh -i <your private key.pem> ec2-user@<your public ip address>
#
# On the Mac
@riseansmal
riseansmal / gitignore-wipe-script.md
Last active March 1, 2023 06:04
.gitignore Wipe Shell Script

.gitignore Wipe Shell Script

Shell Script

#!/bin/sh

while read ignored_file
do
 if [ -e "$ignored_file" ]; then