Skip to content

Instantly share code, notes, and snippets.

View walkah's full-sized avatar
🏠
Working from home

James Walker walkah

🏠
Working from home
View GitHub Profile
@walkah
walkah / lotus.nix
Created August 19, 2021 13:34
lotus.nix
{ pkgs, buildGoModule, fetchFromGitHub, rustPlatform }:
let
version = "1.11.1";
lotusSrc = fetchFromGitHub {
owner = "filecoin-project";
repo = "lotus";
rev = "v${version}";
sha256 = "0kvs9b3nzbkkrinrx9mnw0n41f32mcbd0bix3v98ng2h7lc3zj8a";
Verifying my Blockstack ID is secured with the address 1DjtGaF67GPbCUpodMvB3V1tr6zAy9RZHA https://explorer.blockstack.org/address/1DjtGaF67GPbCUpodMvB3V1tr6zAy9RZHA
var applescript = require('applescript');
var Rdio = require('./rdio');
var DashingClient = require('dashing-client');
var rdio = new Rdio(['CONSUMER_KEY', 'CONSUMER_SECRET']);
var dashing = new DashingClient("http://localhost:3030", "YOUR_AUTH_KEY");
var script = 'tell application "Rdio" to get the key of the current track';
var currentTrack = '';

Keybase proof

I hereby claim:

  • I am walkah on github.
  • I am walkah (https://keybase.io/walkah) on keybase.
  • I have a public key whose fingerprint is 2474 C3E1 0736 40BF C246 3E06 8896 FEC4 4D47 A81C

To claim this, I am signing this object:

@walkah
walkah / gist:4012728
Created November 4, 2012 17:40
django syncdb error on heroku
Running `python manage.py syncdb` attached to terminal... up, run.1
Skipping creation of NoticeTypes as notification app not found
Syncing...
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
@walkah
walkah / comment-rm.php
Created April 13, 2012 20:34
D7 comment remover
<?php
$first_comment = 38898;
$num_delete = 50;
do {
$cids = db_select('comment', 'c')
->fields('c', array('cid'))
->condition('cid', $first_comment, '>=')
->range(0, 50)
@walkah
walkah / drupal.rb
Created January 4, 2012 05:24
Drupal7 to Jekyll converter
require 'rubygems'
require 'sequel'
require 'fileutils'
require 'yaml'
# NOTE: This converter requires Sequel and the MySQL gems.
# The MySQL gem can be difficult to install on OS X. Once you have MySQL
# installed, running the following commands should work:
# $ sudo gem install sequel
# $ sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
@walkah
walkah / gist:832762
Created February 17, 2011 21:35
npm hang
% sudo npm install jerk --loglevel verbose ~
npm info it worked if it ends with ok
npm verb cli [ 'install',
npm verb cli 'jerk',
npm verb cli '--loglevel',
npm verb cli 'verbose' ]
npm info using npm@0.3.0-6
npm info using node@v0.4.0
npm verb /usr/local/bin/node node symlink
npm verb config file /Users/walkah/.npmrc