Skip to content

Instantly share code, notes, and snippets.

View lincolnnguyen18's full-sized avatar

Lincoln Nguyen lincolnnguyen18

View GitHub Profile
@imharvol
imharvol / GCE-Nested-VMs.sh
Last active August 29, 2022 11:44
Example creation of a GCE instance with nested virtualization
# Instance Launch:
gcloud beta compute \
--project=PROJECT-ID \ # Changeme
instances create virtualbox \
--zone=europe-west2-c \
--machine-type=n1-standard-2 \
--metadata=ssh-keys=imharvol:ssh-rsa\ AAAAB3NzaC1yc2EAAAADAQABAAABAQDzQ5Z5gLRJXgLvUBCTkvsTfV2xbxkh64vlHZlZCNDz7u5BPb3PsR/ggrealR7JVDeStOB5yv52pj\+XYj3o5qhRLFhf2QZlvtpjBnfiDrZIIXGMkQ3McQlAixE1nZPHEt4mzwAEAuvd2KK\+RysaAQKZ2mTuwxmGE439ZJbQjbgBMOnGkR61YGDxZywBQnDMtJZ2I9B\+/kC07tQIkmj5L0YN/kpXfebmckn8d0Eq6ckPJ4vQI9aL9izE2kJwFK8NNghz/lfRTzWto78NaItDr1ipJQnm5ssyb57YFz7gamnwP\+1zcbXUlccfizbHsuyoYJ5Bqc0nFoprrafMdDHjEclD\ imharvol@imharvol-PC \ # Changeme
--image=ubuntu-2004-focal-v20210908 \
--image-project=ubuntu-os-cloud \
--boot-disk-size=32GB \
@tomowarkar
tomowarkar / mecab_cabocha.ipynb
Last active October 24, 2022 03:18
How to use MeCab and CaboCha in Google Colaboratory! you can also see here: https://tomowarkar.github.io/blog/posts/colab_mecab/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@enobufs
enobufs / index.html
Last active April 19, 2022 16:31
MediaTrackSettings.echoCancellation Test
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<style>
html, body{
height: 100%;
width: 100%;
}
#video{
height: 300px;
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active May 31, 2024 13:54
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@garethrees
garethrees / rsync.sh
Last active December 5, 2023 13:41
rsync & scp through jump host
# Upload
rsync -av -e "ssh -A JUMP_HOST ssh" FILE_TO_SEND DEST_HOST:/home/gareth/
# Download
rsync -av -e "ssh -A JUMP_HOST ssh" DEST_HOST:~/FILE_TO_DOWNLOAD ~/Downloads/
@waveacme
waveacme / example.c
Last active April 12, 2023 12:07
linux list.h for userspace
#include <stdlib.h>
#include <stdio.h>
#include "list.h"
typedef struct episode {
int epid;
struct list_head list;
} episode_t;
@karpathy
karpathy / min-char-rnn.py
Last active June 2, 2024 20:38
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@gitaarik
gitaarik / git_submodules.md
Last active June 3, 2024 03:52
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.