Skip to content

Instantly share code, notes, and snippets.

@loopj
loopj / armbian-hdmi-rotate.md
Created August 10, 2023 20:20
Rotate console by 90 degrees on Armbian

Rotate console by 90 degrees on Armbian

Add the following to /boot/armbianEnv.txt

extraargs=fbcon=rotate:1
@loopj
loopj / wii_clang_rules
Last active October 12, 2021 20:01
devkitPPC rules for building apps with Clang
#---------------------------------------------------------------------------------
# devkitPPC rules for building with Clang
#
# How to use:
# - Copy this file into your DEVKITPPC path:
# cp wii_clang_rules $DEVKITPPC
#
# - Link Clang into your DEVKITPPC path:
# ln -s `which clang` $DEVKITPPC/bin/powerpc-eabi-clang
#
// // cur_evnt_full.begin format
// {
// "day":12,
// "month":9,
// "year":2019,
// "hour24":15,
// "hour12":3,
// "minutes":0,
// "ampm":"pm",
// // offset in minutes from now,
@loopj
loopj / fiddle.css
Last active December 2, 2018 21:46
AWS Instance Chart
html, body {
height: 100%;
padding: 0;
margin: 0;
}
#chart {
height: 100%;
}
{"p":6,"m":[{"s":16384,"l":"m","vc":30,"vv":30,"f":"b","n":"0","v":4,"d":[]},{"s":262144,"l":"m","vc":30,"vv":30,"f":"s","n":"1","v":8,"d":[]},{"s":262144,"l":"m","vc":30,"vv":30,"f":"s","n":"2","v":8,"d":[{"f":"s","n":"1","v":8,"_":""}]},{"s":131072,"l":"m","vc":30,"vv":28,"u":"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","f":"u","n":"1","v":3,"d":[{"f":"s","n":"2","v":8,"_":""}]},{"s":131072,"l":"f","vc":30,"vv":0,"d":[]}]}
com.bugsnag.android.AppData -> com.bugsnag.android.a:
com.bugsnag.android.Configuration config -> a
android.content.Context appContext -> b
java.lang.String packageName -> c
java.lang.String appName -> d
java.lang.Integer versionCode -> e
java.lang.String versionName -> f
java.lang.String guessedReleaseStage -> g
38:50:void toStream(com.bugsnag.android.JsonStream) -> a
53:56:java.lang.String getReleaseStage() -> a
@loopj
loopj / clearbit-popover.coffee
Created April 21, 2015 20:18
Clearbit "lead information" overlays
#
# Clearbit Lead Information Popover
#
# Dependencies:
# - jQuery
# - Bootstrap (for popovers)
#
# Screenshot:
# http://i.imgur.com/wWmUeGZ.png
#
@loopj
loopj / test.cpp
Last active August 29, 2015 14:19
// Works
class Something {
public:
void doSomething() {
uint8_t buffer[1024];
memcpy(buffer + bufferPosition, something);
bufferPosition += someSize;
memcpy(buffer + bufferPosition, something);
@loopj
loopj / Gemfile
Last active August 29, 2015 14:13
source "https://rubygems.org"
gem "bugsnag-api"
@loopj
loopj / Rakefile
Created October 10, 2014 18:23
Load rake tasks from gems in rails 2.3
# Rails 2.3 doesn't automatically load rake tasks from required gems
# Add the following code to your app's Rakefile to fix that
gem_tasks = []
Gem.loaded_specs.each do |name, spec|
next if %w{rake rails bundler activesupport rack actionpack actionmailer activerecord activeresource mysql2}.include?(name)
spec.load_paths.each do |load_path|
gem_tasks +=
Dir.glob("#{load_path}/**/tasks/*.rake")
end
end