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 / waves.js
Last active July 16, 2018 17:03
Ocean waves Javascript Animation External Script
function Waves( $canvas, $width, $height ){
this.numberOfWaves = 10;
this.waveGap = 20;
this.width = Waves.width = $width;
this.height = Waves.height = $height;
Waves.globalY = 0;
this.move = 1;
this.ctx = $canvas.getContext( '2d' );
@Bubblemelon
Bubblemelon / NetworkUtils.java
Created April 7, 2018 23:44
Fetching HTTP Request
/**
* This method returns the entire result from the HTTP response.
*
* @param url The URL to fetch the HTTP response from.
* @return The contents of the HTTP response.
* @throws IOException Related to network and stream reading
*/
public static String getResponseFromHttpUrl(URL url) throws IOException {
// open http url connection object
@Bubblemelon
Bubblemelon / Vagrant_Mount_NFS_Shared_Folder_Error.md
Last active July 16, 2018 22:06
Vagrant Error when Mounting NFS Shared Folders
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
==> default: Mounting NFS shared folders...
#<Thread:0x0000559cdeada360@/usr/share/vagrant/gems/gems/vagrant-2.0.2/lib/vagrant/batch_action.rb:71 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
        52: from /usr/share/vagrant/gems/gems/vagrant-2.0.2/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
        51: from /usr/share/vagrant/gems/gems/vagrant-2.0.2/lib/vagrant/machine.rb:188:in `action'
        50: from /usr/share/vagrant/gems/gems/vagrant-2.0.2/lib/vagrant/machine.rb:188:in `call'
        49: from /usr/share/vagrant/gems/gems/vagrant-2.0.2/lib/vagrant/environment.rb:592:in `lock'
@Bubblemelon
Bubblemelon / img-packet-test.sh
Last active July 16, 2018 23:05
This file was used in testing Ignition changes for Packet.net within a Container Linux SDK
echo "[INFO] Pulling from bubblemelon remote branch:"
git pull bubblemelon $branchname
# Using ignition ebuild:
#cros_workon start ignition
# Check if above worked: should show sys-apps/ignition
#cros-workon list
# Installing & Checking Dependencies:
echo "[INFO] Going into ~ folder:"
@Bubblemelon
Bubblemelon / building_ostree.md
Last active March 12, 2024 23:29
Additional information on the [Building](https://github.com/ostreedev/ostree#building) section of ostree

Building ostree

These commands are for building on Fedora, it will not work on Ubuntu(Debian) OS(s).

# Optional since ./autogen.sh checks if the submodule needs to be updated
git submodule update --init
./autogen.sh --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc
./configure --prefix=/usr
make 
@Bubblemelon
Bubblemelon / rhcos_qemu-kvm.md
Last active August 2, 2022 12:56
Running RHCOS using `qemu-kvm`
@Bubblemelon
Bubblemelon / install.ipxe
Last active July 23, 2018 17:12
ipxe installation of fedora 28
#!ipxe
# Set source URI
set mirror https://sjc.edge.kernel.org/fedora-buffet/fedora/linux/releases/28/Workstation/x86_64/os/
# Detect CPU architecture and calculate repository URI
cpuid --ext 29 && set arch x86_64 || set arch i386
set repo ${mirror}/Fedora/${arch}/os
# Start installer