Skip to content

Instantly share code, notes, and snippets.

View Bubblemelon's full-sized avatar
🍉
0x00007C00

Cheryl Fong Bubblemelon

🍉
0x00007C00
View GitHub Profile
@Bubblemelon
Bubblemelon / embed-webm-in-readme.md
Created November 25, 2026 18:13
Embed webm video file in GitHub README, Comments, Issues, and Pull Requests

About

Guide to embedding webm video files into GitHub README.md, Comments, Issues, Pull Requests (virtually anywhere were markdown is accepted in GitHub).

This solution does not require uploading the video file in a repository.

Example output:

embed-webm-demo.webm
@Bubblemelon
Bubblemelon / populateCalSunRiseNSet.gs
Last active June 14, 2022 03:35
Populates a Google calendar titled "Rise and Fall", using the a free sunrise and sunset API from a specified date range for San Francisco.
/**
* EXAMPLE: https://developers.google.com/calendar/api/quickstart/apps-script
* @see https://developers.google.com/calendar/api/v3/reference/events/list
*
*
* Sun rise and set API: https://sunrise-sunset.org/api
*
*/
function populateCalSunRiseNSet() {

Booting AGL with Qemu

This is the command specified on docs.automotivelinux.org.

qemu-system-x86_64 -enable-kvm -m 2048 -hda agl-demo-platform-crosssdk-qemux86-64.wic.vmdk -cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt -vga virtio -show-cursor -device virtio-rng-pci -serial mon:stdio -serial null -soundhw hda -net nic,vlan=0 -net user,hostfwd=tcp::2222-:22

Output:

[cherylfong@localhost Downloads]$ qemu-system-x86_64 -enable-kvm -m 2048 -hda agl-demo-platform-crosssdk-qemux86-64.wic.vmdk -cpu kvm64 -cpu qemu64,+ssse3,+sse4.1,+sse4.2,+popcnt -vga virtio -show-cursor -device virtio-rng-pci -serial mon:stdio -serial null -soundhw hda -net nic,vlan=0 -net user,hostfwd=tcp::2222-:22
qemu-system-x86_64: -net nic,vlan=0: 'vlan' is deprecated. Please use 'netdev' instead.
@Bubblemelon
Bubblemelon / missing-package-yocto.md
Last active April 9, 2019 16:12
`rpcgen` & `perl-bignum` packages is required to bitbake target for Fedora 28, see guide section: http://docs.automotivelinux.org/guppy/docs/getting_started/en/dev/reference/source-code.html#setting-up-your-operating-system

Following the guide through the link above, I proceeded with installing the build dependencies, for Fedora:

sudo dnf install gawk make wget tar bzip2 gzip python unzip perl patch \
     diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \
     ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue socat \
     SDL-devel xterm curl
@Bubblemelon
Bubblemelon / hide-me.md
Last active March 31, 2019 18:38
Hide archived files in images files

Intro

This is quick trick to hide archived files in image files i.e. files with the extension *.png, *.gif, *.jpeg, etc.

Step 1

Find an image file you want to use.

For example, I decied to use this gif:

Malamute puppies!

@Bubblemelon
Bubblemelon / go-1.12.5-install.sh
Last active June 10, 2019 17:23
Install/Update Golang version 1.12.5 on Fedora 28 and Later for arch x86_64
#!/bin/bash
# To make this script executable, run: chmod u+x go-1.12.1-install.sh
# Will need to be executed as root user or with root privileges
# go command path: /usr/bin/go
# other dependencies
dnf install -y gcc
dnf install -y go-srpm-macros
# main dependencies for golang 1.12.1
@Bubblemelon
Bubblemelon / my-k8-contributions.md
Last active March 18, 2019 06:32
My kubernetes and Kubernetes-incubator Contributions via https://github.com/nikhita/github-contrib
@Bubblemelon
Bubblemelon / .tmux.conf
Last active January 20, 2020 00:30
My tmux config file
## To erase all previous key bindings:
##
## Restart tmux server to reset key bindings via "tmux kill-server",
## then reopen terminal to automatically source this config.
## Otherwise, run "tmux source-file ~/.tmux.conf"
## list existing bindings:
##
## <prefix>:list-keys
## tmux list-keys