Skip to content

Instantly share code, notes, and snippets.

View TheBeachMaster's full-sized avatar
😈
👨‍💻

Arthur Kennedy Otieno TheBeachMaster

😈
👨‍💻
View GitHub Profile
@TheBeachMaster
TheBeachMaster / alarcitty.yml
Created January 10, 2020 19:57 — forked from ggsalas/alarcitty.yml
Alarcitty config
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@TheBeachMaster
TheBeachMaster / machine.js
Created November 5, 2019 16:28
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@TheBeachMaster
TheBeachMaster / busybox-extras-install.txt
Created July 22, 2019 10:16 — forked from ollieparanoid/busybox-extras-install.txt
Alpine Linux: busybox-extras install/uninstall
Related to this pull-request:
https://github.com/alpinelinux/aports/pull/1092
Steps:
1. upgrade busybox to the one, which has busybox-extras
2. telnet does not exist anymore
3. add busybox-extras
4. telnet exists
5. uninstall busybox-extras and re-install busybox
6. telnet does not exist anymore
@TheBeachMaster
TheBeachMaster / group-objects-by-property.md
Created July 17, 2019 21:12 — forked from JamieMason/group-objects-by-property.md
Group Array of JavaScript Objects by Key or Property Value

Group Array of JavaScript Objects by Key or Property Value

Implementation

const groupBy = key => array =>
  array.reduce((objectsByKeyValue, obj) => {
    const value = obj[key];
    objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
    return objectsByKeyValue;
@TheBeachMaster
TheBeachMaster / generate-ssh-key.sh
Created June 28, 2019 14:47 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@TheBeachMaster
TheBeachMaster / compact.cpp
Created January 21, 2019 11:09 — forked from Wunkolo/compact.cpp
Ascii Raymarcher(old)
#include <math.h>
#include <algorithm>
#include <string>
#include <immintrin.h>
using namespace std;typedef float R;
#define _W 79
#define _H 39
#define EP 0.01f
#define OP operator
#define C const
static int internal_get_and_notify_call_statistics(pjsua_call_id call_id, long comm_id)
{
pj_status_t status = PJ_SUCCESS;
pjsua_stream_stat stat;
int LOCAL_DELAY = 30;
float R;
float a = 0.0f; //iLBC a = 10;
float b = 19.8f;
float c = 29.7f;
int rx_pkts = 0;

Git CA issue

env GIT_SSL_NO_VERIFY=true git clone https://github... 
@TheBeachMaster
TheBeachMaster / install virtualenv ubuntu 16.04.md
Created June 8, 2018 11:20 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@TheBeachMaster
TheBeachMaster / CMakeLists.txt
Last active April 27, 2018 12:46
CMAKE Building Libraries Example
# Suppose a structure such as:
#... # root directory
#.../build
#.../lib
#.../lib/mylib.hpp
#.../lib/mylib.cc
#.../src
#.../src//main.cc
#.../CMakeLists.txt