Skip to content

Instantly share code, notes, and snippets.

View byronaltice's full-sized avatar

Byron Altice byronaltice

  • PM Me
  • Atlanta, GA, USA
View GitHub Profile
@byronaltice
byronaltice / ethercraft.js
Last active January 20, 2018 17:48
Total Balance Owed on EtherCraft
//Written by Casey Scarborough
//@caseyscarborough
// Change the invested amount to your amount in ETH invested into the ethercraft website/game
// https://ethercraft.io/#/inventory/0x87bf5750f4ca59dac8455ec37286967bb8388d13
// Paste below line of code into chrome developer to pull directly from gist
// function f() {var s = document.createElement('script');s.setAttribute('src', 'https://cdn.rawgit.com/byronaltice/c4aa5bc59624a0dfefbea0e3e18eedaa/raw/7f522ed173d7bc69db42b9d9e176f62d6a83e6bf/ethercraft.js');document.head.appendChild(s);return;}f();
var showIndividual = true,
oneEth = 1000000000000000000,
@byronaltice
byronaltice / nopromotedtweets.js
Last active July 23, 2021 17:23 — forked from gaulinmp/nopromotedtweets.js
Tampermonkey script to remove promoted tweets
// ==UserScript==
// @name Twitter Promoted
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Get rid of stupid promoted tweets
// @author Mac Gaulin
// @match http*://twitter.com/*
// @grant none
// ==/UserScript==
@byronaltice
byronaltice / diff_of_a_merge_commit.txt
Created June 7, 2022 20:32 — forked from DQNEO/diff_of_a_merge_commit.txt
How to show diff of a merge commit
$ git diff abcdef^ abcdef
or
$ git show --first-parent abcdef
or
$ git show -m abcdef
http://stackoverflow.com/questions/40986518/git-show-of-a-merge-commit?answertab=votes#tab-top
@byronaltice
byronaltice / Application.java
Created July 11, 2022 22:46
Print all env properties in Spring before starting up
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.ApplicationPreparedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.EnumerablePropertySource;
import org.springframework.core.env.PropertySource;
import java.util.Arrays;
@byronaltice
byronaltice / shortcuts.md
Last active April 1, 2024 15:28 — forked from memphys/shortcuts.md
Bash Shortcuts For Maximum Productivity

Note: For mac users, you'll need to open the Settings for Terminal and go to the Profiles tab, and open the Keyboard sub-tab, and check the option "Use Option as Meta key"

source: http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/

Command Editing Shortcuts

  • Ctrl + a – go to the start of the command line
  • Ctrl + e – go to the end of the command line
  • Ctrl + k – delete from cursor to the end of the command line
  • Ctrl + u – delete from cursor to the start of the command line