Skip to content

Instantly share code, notes, and snippets.

#To Get List of Hardware
sudo networksetup -listallhardwareports
#To Disable IPv6 on Wifi Adapter
sudo networksetup -setv6off wi-fi
#To Disable IPv6 on Built-in Ethernet Adapter
sudo networksetup -setv6off Ethernet
@Beasta
Beasta / fullCalendarIframe.html
Created May 16, 2017 01:02
Basic Google Calendar integration for fullcalendar
<link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.print.css" rel="stylesheet" media="print">
<script src="https://momentjs.com/downloads/moment.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js'></script>
<script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/gcal.min.js'></script>
<script type='text/javascript'>
// posting this because the following is a poor example https://fullcalendar.io/docs/google_calendar/
// This was used to wrap google calendar in squarespace and make it look tremendously better
$(document).ready(function() {
@Beasta
Beasta / 00-about-search-api-examples.md
Created June 18, 2018 23:24 — forked from jasonrudolph/00-about-search-api-examples.md
5 entertaining things you can find with the GitHub Search API
@Beasta
Beasta / docker-compose.yml
Last active July 8, 2021 19:26 — forked from tedder/docker-compose.yml
helium validator + watchtower (with consensus check) + exporter
# launch: docker-compose up -d
version: "3.7"
services:
validator:
image: quay.io/team-helium/validator:latest-validator-amd64
container_name: validator
init: true
restart: always
ports:
- "2154:2154"
@Beasta
Beasta / discord-token-logger.js
Created September 22, 2021 21:29 — forked from m-Phoenix852/discord-token-logger.js
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
@Beasta
Beasta / zapperfiWallets.js
Last active September 29, 2021 07:44
Simple script for retrieving, modifying, and updating zapper.fi wallets. Meant to be run in the console.
////////////////////////////////////////////////////
// zapper.fi
//////////////////////////////////////////////////////
// grab persist:account from localStorage and parse it
let persistAccount = JSON.parse(localStorage.getItem("persist:account"))
Object.keys(persistAccount).forEach(key => {
let value = JSON.parse(persistAccount[key]);
persistAccount[key] = value;
@Beasta
Beasta / frameWallets.js
Last active September 29, 2021 07:37
node.js script for retrieving, modifying, and updating Frame wallets. Meant to be run it its own folder. Kill Frame first.
// probably a smart idea to make sure that Frame isn't running when this is executed
const fs = require('fs');
// this location assumes Mac installation
let frameConfigLocation = `${process.env.HOME}/Library/Application Support/frame/config.json`;
// testMode will create a copy of the frame Config in the local folder and modify that instead of the original
const testMode = true;
let frameConfig;
let frameConfigAccounts;
const exampleAddressObj = {
id: '0x223c067F8CF28ae173EE5CafEa60cA44C335fecB',
@Beasta
Beasta / validator-penalties.js
Last active October 7, 2021 22:20
A simple script to extract your helium node's penalty history. Offers a little more history than is available on the website.
// you'll need to run ```npm i lodash cross-fetch``` first to install the packages
// next, to run it: ```node validator-penalties.js "your-node-name"```
// this script assumes no collisions in node names, which does occur in the wild
const _ = require('lodash');
const fetch = require('cross-fetch');
const findMe = process.argv[2];
(async () => {
try {
@Beasta
Beasta / AuthyToOtherAuthenticator.md
Created November 26, 2021 18:18 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Generating Authy passwords on other authenticators


There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.

Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.

His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the

@Beasta
Beasta / attestation.txt
Created April 11, 2022 22:06
Attestation
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 290
Hash: 597f1d0a 55282700 910c727c 18763960
a2eed191 9f3a289e f7d2a1c7 daa3bb01
603a5558 8351c82a cb578f5a 13cbeb84
1db4c834 ef4c3119 46f53aa4 5bd2770c