Skip to content

Instantly share code, notes, and snippets.

View localredhead's full-sized avatar

Levi Strope localredhead

View GitHub Profile
@localredhead
localredhead / keybase.md
Created January 31, 2022 03:28
keybase.md

Keybase proof

I hereby claim:

  • I am localredhead on github.
  • I am localredhead (https://keybase.io/localredhead) on keybase.
  • I have a public key ASCnIpj6el1Ql7XchYzG2Xvaw9dZ_9LMCbSSoici8wGGiwo

To claim this, I am signing this object:

@localredhead
localredhead / gist:9244426519bc925e7e74e1a3a6ec612f
Created March 20, 2019 14:42
Install AMD gpu ubuntu 18.10
```dpkg-deb -R /var/opt/amdgpu-pro-local/amdgpu-core_18.50-708488_all.deb edit```
the I edited the file DEBIAN/preinst and set the following:
```if [ "$VERSION_ID" != "18.10" ] ; then```
```dpkg-deb -b edit /var/opt/amdgpu-pro-local/amdgpu-core_18.50-708488_all.deb```
a simple `apt --fix-broken` would complain about wrong hashes, so i installed it manually
```sudo dpkg --install /var/opt/amdgpu-pro-local/amdgpu-core_18.50-708488_all.deb```
@localredhead
localredhead / 0_all_webkit.patch
Created August 21, 2018 16:16 — forked from fuxialexander/0_all_webkit.patch
One-stop patch for Emacs NS-port xwidget (by @veshboo)
From 2063aad860376419d899d1ae06ccb7daf56ef9ef Mon Sep 17 00:00:00 2001
From: Jaesup Kwak <veshboo@gmail.com>
Date: Mon, 4 Dec 2017 21:23:19 +0900
Subject: [PATCH] Support xwidget webkit for macOS X
Add xwidget webkit support for macOS X / NS Cocoa and accompanying
changes.
Squash changes for comments from Alan Third in Bug#29565.
@localredhead
localredhead / package.json
Created June 27, 2017 05:28 — forked from pelle/package.json
Uport Connect - React Native example
{
"name": "exampleapp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node_modules/react-native/packager/packager.sh --nonPersistent",
"test": "jest",
"build-uport-connect": "node_modules/.bin/derequire node_modules/uport-connect/dist/uport-connect.js >src/vendor/uport-connect.js"
},
"dependencies": {
@localredhead
localredhead / 0xE8DC793F55082024f3aA386490f7e0032995ee6A.txt
Created August 14, 2017 17:20
device ID 0xE8DC793F55082024f3aA386490f7e0032995ee6A
0xE8DC793F55082024f3aA386490f7e0032995ee6A
@localredhead
localredhead / 0x50858f2c7873fac9398ed9c195d185089caa7967.txt
Last active August 11, 2017 02:25
0x50858f2c7873fac9398ed9c195d185089caa7967
0x50858f2c7873fac9398ed9c195d185089caa7967
require 'rdoc/task'
namespace :doc do
namespace :generate do
## to regenerate documentation
## bundle exec rake doc:generate:reapi
RDoc::Task.new :api do |rd|
# config example
# http://snipplr.com/view/27986/
rd.rdoc_dir = 'doc/api/v2'
@localredhead
localredhead / .irbrc
Created May 18, 2013 02:00
pbcopy for irb sessions.
IRB.conf[:PROMPT_MODE] = :DEFAULT
def pbcopy(input)
str = input.to_s
IO.popen('pbcopy', 'w') { |f| f << str }
str
@localredhead
localredhead / tmux_sess
Created May 11, 2013 00:38
TMUX setup to launch emacs --daemon (OSX)
1. create .sh file, add this to it:
#!/bin/sh
/Applications/Emacs.app/Contents/MacOS/Emacs --daemon
2. Use platypus to wrap the .SH file as a .app.
3. Add .app to Login Items
4. Edit .tmux.conf and add "new session"
@localredhead
localredhead / state_machine_class.rb
Last active December 14, 2015 16:28
State machine setup.
class SomeClass < ActiveRecord::Base
STATES = {:is_valid => 0, :needs_review => 1, :reviewed => 2, :is_invalid => 3}
def initialize(*args)
super(*args)
end
attr_accessible :state