Skip to content

Instantly share code, notes, and snippets.

@0xack13
0xack13 / background.js
Created May 7, 2021 12:22 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@0xack13
0xack13 / FlappyBird.c
Created May 11, 2021 06:09 — forked from smvd/FlappyBird.c
flappy bird writen in c running in the terminal
/*
_____ _ ____ _ _
| ___| | __ _ _ __ _ __ _ _ | __ )(_)_ __ __| |
| |_ | |/ _` | '_ \| '_ \| | | | | _ \| | '__/ _` |
| _| | | (_| | |_) | |_) | |_| | | |_) | | | | (_| |
|_| |_|\__,_| .__/| .__/ \__, | |____/|_|_| \__,_|
|_| |_| |___/
compiler : GCC
command : gcc source.c -o FlappyBird.exe -Werror -Wall -W
@0xack13
0xack13 / manifest.json
Created May 11, 2021 12:04 — forked from IzumiSy/manifest.json
Chrome.storage.sync example
{
"name": "SyncExtension",
"version": "0.1",
"manifest_version": 2,
"description": "Storage Sync Extension",
"permissions": [ "storage" ],
"browser_action": {
@0xack13
0xack13 / background.js
Created May 11, 2021 19:38 — forked from chrahunt/background.js
Chrome extension for testing chrome.storage.local.
(function(window, document, undefined) {
var Storage = {};
window.Storage = Storage;
Storage.tracking = true;
Storage.track = function() {
Storage.tracking = !Storage.tracking;
if (Storage.tracking) {
console.log("Tracking storage performance.");
/*
* Btree example for DynnOS
*
* Quenza simple license
* 2013, Dinux
*
*
*/
// homerunner is Brad's shitty Docker wrapper after he got tired of running
// HA nine-VM Kubernetes clusters. Earlier versions of this tried to use podman
// and fancy cloud-init and CNI stuff but then I decided to go to the other
// extreme and write something super specific to what I need and super dumb:
// run my containers from gcr.io, and use my home Ceph cluster for mounts/state.
//
// This primarily runs Home Assistant, HomeSeer, an MQTT server, and some cameras.
// And some omitted misc stuff.
package main
@0xack13
0xack13 / README.md
Created May 31, 2021 10:08 — forked from feiskyer/README.md
Kubernetes flex volume

Flexvolume

Flexvolume enables users to mount vendor volumes into kubernetes. It expects vendor drivers are installed in the volume plugin path on every kubelet node.

It allows for vendors to develop their own drivers to mount volumes on nodes.

Note: Flexvolume is an alpha feature and is most likely to change in future

Prerequisites

@0xack13
0xack13 / lily58-keyboard.org
Created June 13, 2021 03:04 — forked from braun-steven/lily58-keyboard.org
Lily58 Pro Parts List
@0xack13
0xack13 / README.md
Created June 13, 2021 16:07 — forked from danielepolencic/README.md
Create 3 nodes Kubernetes cluster locally with Vagrant

3 Virtual Machines Kubernetes cluster

Dependencies

You should install VirtualBox and Vagrant before you start.

Creating the cluster

You should create a Vagrantfile in an empty directory with the following content:

@0xack13
0xack13 / vagrant-kvm.md
Created June 14, 2021 06:21 — forked from yuanying/vagrant-kvm.md
How to use vagrant-kvm

Install Vagrant

sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb 
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit

Install vagrant-kvm as user