Skip to content

Instantly share code, notes, and snippets.

Avatar

Levi Strope localredhead

View GitHub Profile
@localredhead
localredhead / keybase.md
Created January 31, 2022 03:28
keybase.md
View 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
View gist:9244426519bc925e7e74e1a3a6ec612f
```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)
View 0_all_webkit.patch
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 / 0xE8DC793F55082024f3aA386490f7e0032995ee6A.txt
Created August 14, 2017 17:20
device ID 0xE8DC793F55082024f3aA386490f7e0032995ee6A
View 0xE8DC793F55082024f3aA386490f7e0032995ee6A.txt
0xE8DC793F55082024f3aA386490f7e0032995ee6A
@localredhead
localredhead / 0x50858f2c7873fac9398ed9c195d185089caa7967.txt
Last active August 11, 2017 02:25
0x50858f2c7873fac9398ed9c195d185089caa7967
View 0x50858f2c7873fac9398ed9c195d185089caa7967.txt
0x50858f2c7873fac9398ed9c195d185089caa7967
@localredhead
localredhead / package.json
Created June 27, 2017 05:28 — forked from pelle/package.json
Uport Connect - React Native example
View package.json
{
"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": {
View generate rdoc api documentation
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'
View pictures.markdown

One of my favorite past times is to look at the notebooks of famous scientists. Da Vinci's notebook is well known, but there plenty others. Worshipping Da Vinci like no other, I bought a Think/Create/Record journal, used it mostly to keep jot down random thoughts and take notes. This was great in the beginning, but the conformity of lines drove me nuts. Only moleskines made blank notebooks, so I had to buy one.

At the same time I started a freelance project. The project itself is irrelevant, but suffice to say it was very complex and spanned several months. It seemed like a perfect opportunity to use the moleskine. Looking back, all my entries fell under few categories:

  • Todo
  • Question
  • Thought
  • Bug
  • Feature
@localredhead
localredhead / development.rb
Created April 10, 2015 01:26
CORS development.rb
View development.rb
config.middleware.insert_before 0, "Rack::Cors", :debug => true, :logger => (-> { Rails.logger }) do
allow do
origins '*'
resource '/cors',
:headers => :any,
:methods => [:post],
:credentials => true,
:max_age => 0
@localredhead
localredhead / restclient
Created March 31, 2015 03:15
Restclient file
View restclient
## address bug
:var = GQh6z916qptswjtTd4KV
PUT http://client.archer.dev/svc/user/addresses/xxxxx
HTTP_AUTHORIZATION: :var
Content-Type: application/json
{
"address": {
"address": {
"address1": "1801 East St.",
"address2": "",