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
//
# Auto Update Ourbororos see -> https://github.com/pyouroboros/ouroboros/wiki/Usage#self-update
SELF_UPDATE=true
# Update the Application only works like Ignore
#MONITOR="arthurkenotieno/site-counter-app"
# Set Update interval seconds
INTERVAL=180
# Ignore Redis
options:
max-time: 10 # The build should not exceed 10 minutes
docker: true # We'll be using docker later.. Have it enabled
image: node:10.15.0-alpine
pipelines:
default: # (Unfortunately does not work once you enable branches)
- step:
caches:
- node
- docker # https://bitbucket.org/site/master/issues/14144/cache-docker-layers-between-builds
#Barebones configuration
#Library('mandelbrot',['./lib/mandelbrot.cc'])
#Program('./src/app.cc', LIBS=['mandelbrot'], LIBPATH='.')
#Customize excecutable directory and add a Clean up function
#Library('mandelbrot',['./lib/mandelbrot.cc'])
#Program('dist/mandelbrot','./src/app.cc', LIBS=['mandelbrot'], LIBPATH='.')
#target = Program('dist/mandelbrot','./src/app.cc', LIBS=['mandelbrot'], LIBPATH='.')
#Clean(target,'./dist')
.file "app.c"
.text
.section .rodata
.LC0:
.string "Well the answer is %i"
.text
.globl main
.type main, @function
main:
.LFB0:
'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"