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
@eaton
eaton / gist:3768758
Created September 23, 2012 03:40 — forked from saetia/gist:1623487
Clean Install – Mountain Lion OS X 10.8
@steveklabnik
steveklabnik / rails4gems.md
Last active December 19, 2015 13:19
Gems that may not be rails 4 compatible

Gems that need help with Rails 4

  • cucumber-rails
  • simple_form - has a 3.0.0.rc but it depends on rails 4.0.0.rc1
  • delayed_job_active_record - has a v4.0.0.beta3 so likely ready to release soon
  • spork-rails - has no indication of even a beta for rails 4
  • authlogic: binarylogic/authlogic#368
  • activeadmin/activeadmin#1963
@mparker17
mparker17 / 2013-07-13 1000 - Drupalicon's fables.md
Last active December 19, 2015 17:49
Notes from DrupalCamp Toronto 2013

2013-07-13 10:00 Andrew Berry Keynote

The Feature and It's Reflection: If you always chase what's hot in the Drupal community, you'll leave your own work behind and end up with nothing.

Ticket Soup: An effective project manage enables positive collaboration by identifying actionable units of work…

The Client in the User's Skin: Don't let your client pretend to be the user. Don't let the user in user stories be "I" or "me"…

The QA Tester and the other Devs: Testers ensure we have to acknowledge reality: QA is our best guard against software decay and run, even when it feels like it impedes progress towards our goes. We had better heed their device.

@JagCesar
JagCesar / .travis.yml
Last active April 29, 2016 15:26 — forked from johanneswuerbach/.travis.yml
Deploy to Testflight using Travis-CI
language: objective-c
before_script:
- chmod +x scripts/travis/add-key.sh
- chmod +x scripts/travis/remove-key.sh
- chmod +x scripts/travis/testflight.sh
- ./scripts/travis/add-key.sh
script: xctool -workspace [Workspace name].xcworkspace -scheme '[Scheme to use]' -configuration [Build configuration name] -sdk iphoneos7.1 CONFIGURATION_BUILD_DIR='~/build/' build
after_success:
- ./scripts/travis/testflight.sh
after_script:
@eaton
eaton / reading-list.md
Created July 29, 2020 03:03
In progress collection of reading list about the current bullshit.
@corngood
corngood / configuration.nix
Created January 23, 2017 00:02
NixOS matrix server using nginx
{ config, pkgs, ... }:
{
imports =
[
/etc/nixos/hardware-configuration.nix
];
nix.buildCores = 0;
@jterrace
jterrace / gist:1823320
Created February 14, 2012 03:42
Automatically log in user after django-registration activation
from registration.signals import user_activated
from django.contrib.auth import login, authenticate
def login_on_activation(sender, user, request, **kwargs):
"""Logs in the user after activation"""
user.backend = 'django.contrib.auth.backends.ModelBackend'
login(request, user)
# Registers the function with the django-registration user_activated signal
user_activated.connect(login_on_activation)
@mkg20001
mkg20001 / lotus.nix
Created February 14, 2021 17:30
nix derivation to build filecoin lotus
with (import ./. {});
let
lotusSrc = fetchFromGitHub {
owner = "filecoin-project";
repo = "lotus";
# master (nix-prefetch-github filecoin-project lotus --fetch-submodules --nix)
rev = "95e47cf9982c1c3538f4de8037ca5476cbaedab0";
sha256 = "lZmVYqs6wVzT0om8fvpDrP5pFDIYJZnZmQHM+RsP25I=";
fetchSubmodules = true;
@ismasan
ismasan / purge.vcl
Created January 27, 2011 18:30
Varnish VCL example for purging wildcard URLs
# This goes in vcl_recv
# It gives you:
# curl -X PURGE http://some.example.com/.*
# curl -X PURGE http://some.example.com/blog/.*
# curl -X PURGE http://some.example.com/blog/2011/bar.html
# curl -X PURGE http://another.example.com/.*
#
if (req.request == "PURGE") {
# Wildcard, per-domain purging
purge("req.http.host == " req.http.host " && req.url ~ " req.url "$");
@devgeeks
devgeeks / s3-phonegap-upload.js
Created November 27, 2012 19:47
S3 direct upload
var options = new FileUploadOptions();
options.fileKey="fileupload";
var time = new Date().getTime();
var userId = getUserId(); // In my case, Parse.User.current().id;
var fileName = userId+"-"+time+".jpg";
options.fileName = fileName;
options.mimeType ="image/jpeg";
options.chunkedMode = false;
var uri = encodeURI("https://BUCKET_NAME.s3.amazonaws.com/");