Skip to content

Instantly share code, notes, and snippets.

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

Arthur Kennedy Otieno TheBeachMaster

😈
👨‍💻
View GitHub Profile
@TheBeachMaster
TheBeachMaster / emulator-install-using-avdmanager.md
Created June 11, 2023 19:02 — forked from mrk-han/emulator-install-using-avdmanager.md
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

@TheBeachMaster
TheBeachMaster / Setting up guide for ArchLinux on Raspberry Pi.md
Last active March 13, 2023 21:38 — forked from TheZoc/Setting up guide for ArchLinux on Raspberry Pi.md
This is a guide to setup Arch Linux in Raspberry Pi 4, using macOS as the auxiliary system.

Raspberry Pi Setup Guide

This guide will use either a macOS or an ArchLinux base system, to prepare a microSD card with Arch Linux for Raspberry Pi.

If someone managed to do the initial setup using Windows, please let me know, so I can add to this guide.

This guide will be verbose at times for some simple tasks. This is intended to help people just starting out, so it's not confusing. If something confuses you, let me know and I'll try my best to answer it.

@TheBeachMaster
TheBeachMaster / nestedmaplookup.go
Created September 21, 2022 15:02 — forked from ChristopherThorpe/nestedmaplookup.go
Nested Map Lookup: find elements in golang maps of arbitrary depth
// NestedMapLookup implementation and usage example
// Run it at https://play.golang.org/p/VHRgMcLf0b1
//
// JSON is not required, but used to show the example in a "real" setting.
//
// This gist is copyright (c) 2018 Brightgate Inc.
// and licensed under the Creative Commons Attribution 4.0 International license
// https://creativecommons.org/licenses/by/4.0/legalcode
//
'use strict';
// Dependencies
// we can remove a dependency by using the vision
// package directly
const vision = require('@google-cloud/vision')({
projectId: 'sara-bigquery',
keyfileName: 'keyfile.json'
});
const fs = require('fs');
@TheBeachMaster
TheBeachMaster / error-refspec.md
Created May 25, 2020 11:17 — forked from brenopolanski/error-refspec.md
GitHub - error: src refspec your_name_branch matches more than one
git push origin refs/heads/your_name_branch:refs/heads/your_name_branch
@TheBeachMaster
TheBeachMaster / multiple_ssh_setting.md
Created March 26, 2020 14:16 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@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 / 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