Skip to content

Instantly share code, notes, and snippets.

View maestroh1git's full-sized avatar
🔋
buidling

David Amaku maestroh1git

🔋
buidling
View GitHub Profile
@dabit3
dabit3 / App.js
Last active November 16, 2022 05:46
Persisting a keypair for reading across clients
/*
* this file includes both a node.js script for creating a keypair
* as well as the client code for using it
*/
/* createKeypair.js */
const fs = require('fs')
const anchor = require("@project-serum/anchor");
const web3 = require('@solana/web3.js')
const account = anchor.web3.Keypair.generate();
@berodam
berodam / Navbar.js
Last active February 14, 2025 07:46
Styled Component based Responsive NavBar
import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
/*
* This is a ready to use component, just import it and plop it into your project as:
* <Navbar/>
* You might want to move all the style components into separate files for readability
* if you plan to do more with it.
*/
@kevinpapst
kevinpapst / flash-android-rom-with-heimdall-on-mac.md
Last active August 15, 2026 07:23
Flash a new Android ROM on Mac with ADB and Heimdall

Installing an Android ROM with your Mac via Heimdall and bash

Because every time I want to flash a new ROM, I forgot how I did it the last time.

This is how I re-flashed my unbranded Samsung Galaxy S4 (german black edition) with a stock ROM (because Cyanogenmod crashed my phone all the time). The correct Stock ROM for my Galaxy S4 is: I9505XXUHOJ2_I9505OXAHOJ2_I9505XXUHOJ2

Software you need

  • adb
  • heimdall (brew cask install heimdall-suite)