Skip to content

Instantly share code, notes, and snippets.

View tapickell's full-sized avatar
🌴
Just happy to be here

Todd Pickell tapickell

🌴
Just happy to be here
View GitHub Profile
@zacky1972
zacky1972 / Makefile
Last active November 9, 2023 03:04
HtPipe prevents the entire Elixir from terminating abnormaly by NIFs.
.phony: all clean
PRIV = $(MIX_APP_PATH)/priv
BUILD = $(MIX_APP_PATH)/obj
NIF = $(PRIV)/libnif.so
ifeq ($(CROSSCOMPILE),)
ifeq ($(shell uname -s),Linux)
LDFLAGS += -fPIC -shared
CFLAFGS += -fPIC
@Treeki
Treeki / TurnipPrices.cpp
Last active April 21, 2025 04:42
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@klingtnet
klingtnet / lenovo-x1-carbon-5th-gen-fixes-arch-linux.md
Last active February 17, 2020 20:45
Lenovo X1 Carbon 5th Gen. (X1C5) Fixes for Arch Linux

Lenovo X1 Carbon 5th Gen. (X1C5) Fixes for Arch Linux

Almost everything of this awesome machine works out of the box. But, it is still bleeding edge hardware so not everything is already supported in the stable kernel. This list should help to fix the most annyoing problems, which are not much.

BIOS Update

Download the latest BIOS version for your model, visit pcsupport.lenovo.com, enter your products serial number (e.g. 20HR-), goto Drivers&Utilies and download the BIOS. I am not sure about the next step because Lenovo already provides a bootable CD image but I followed did run this instruction and the BIOS updated worked flawless, so here it is: geteltorito.pl -o converted.img n1mur10w.iso where n1mur10w.iso is the name of your bootable BIOS update image.

@edwardloveall
edwardloveall / gtav_stocks.rb
Last active March 30, 2017 18:28
Get stocks for the GTA V BAWSAQ
require 'net/http'
require 'json'
def request
Net::HTTP.get(URI('http://socialclub.rockstargames.com/games/gtav/ps4/bawsaq'))
uri = URI('http://socialclub.rockstargames.com/games/gtav/ajax/stockdetail')
http = Net::HTTP.new(uri.host, uri.port)
req = Net::HTTP::Get.new(uri)
@Eunoia
Eunoia / Gulpfile.js
Created November 19, 2014 17:43
Deploy your wintersmith generated static site to amazon S3
var fs = require('fs');
var gulp = require('gulp');
var runWintersmith = require('run-wintersmith');
var s3 = require("gulp-s3");
var options = { headers: {'Cache-Control': 'public'} }
gulp.task('default', function() {
console.log('`gulp deploy` to deploy')
});
@pjobson
pjobson / remove_mcafee.md
Last active March 26, 2024 04:26
OSX McAfee Removal

Removal of McAfee from OSX

Note: This was written in 2015, it may be out of date now.

There are a lot of commands here which I use sudo if you don't know what you're doing with sudo, especially where I rm you can severely screw up your system.

There are many reasons which you would want to remove a piece of software such as McAfee, such as not wanting it to hammer your CPU during work hours which seems like primetime for a virus scan.

I intend this to be a living document, I have included suggestions from peoples' replies.

@StefanNyman
StefanNyman / gist:8358091
Created January 10, 2014 17:00
awesome widgets
#pacman -S vicious
vicious = require("vicious")
-- {{{ Wibox
-- battery widget
batwidget = wibox.widget.textbox()
vicious.register(batwidget, vicious.widgets.bat, ' bat: $1 $2%<span color="#cccccc"> | </span>', 61, 'BAT0')
anonymous
anonymous / bob.rb
Created August 4, 2013 02:12
Bob without if's and case
class Bob
def hey(phrase)
think_about(heard(phrase)).respond
end
def heard(phrase)
String(phrase)
end
def think_about(might_have_heard)