Skip to content

Instantly share code, notes, and snippets.

from functools import wraps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.http import HttpResponse
from django.template.base import TemplateDoesNotExist
from django.template.context import RequestContext, Context
from django.template.loader import BaseLoader, find_template
from django.utils._os import safe_join
from django.utils.importlib import import_module
@Kaelten
Kaelten / cgminer.rb
Created January 21, 2013 02:25
A homebrew recipie for cgminer
require 'formula'
class Cgminer < Formula
homepage 'https://github.com/ckolivas/cgminer'
url 'https://github.com/ckolivas/cgminer/archive/v2.10.4.zip'
sha1 '026e03f35f23c26417d09a3288f7933969668001'
depends_on 'automake' => :build
depends_on 'curl' => :build
depends_on 'c-ares' => :build
@Kaelten
Kaelten / synced.swift
Last active August 29, 2015 14:02
Simple Swift @synchronized Helper
// A simple replacement for Obj-C's @synchronized keyword, currently seems to cause compiler error if lock is an object array.
func synced(lock: AnyObject, closure: () -> ()) {
objc_sync_enter(lock)
closure()
objc_sync_exit(lock)
}
[22:05:43] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[22:05:43] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[22:05:43] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[22:05:44] [main/INFO] [FML]: Forge Mod Loader version 7.10.127.1393 for Minecraft 1.7.10 loading
[22:05:44] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Curse\Minecraft\Install\runtime\jre-x64\1.8.0_25
[22:05:44] [main/WARN] [FML]: The coremod appeng.transformer.AppEngCore does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[22:05:44] [main/INFO] [FML]: [AppEng] Core Init
[22:05:44] [main/WARN] [FML]: The coremod aroma1997.core.coremod.CoreMod does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[22:05:44] [main/WARN] [FML]: The coremod codechic
@Kaelten
Kaelten / Game Output
Created April 25, 2015 03:13
FML Log
[22:12:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[22:12:11] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[22:12:11] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[22:12:11] [main/INFO] [FML]: Forge Mod Loader version 7.10.127.1393 for Minecraft 1.7.10 loading
[22:12:11] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Curse\Minecraft\Install\runtime\jre-x64\1.8.0_25
[22:12:11] [main/WARN] [FML]: The coremod appeng.transformer.AppEngCore does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[22:12:11] [main/INFO] [FML]: [AppEng] Core Init
[22:12:11] [main/WARN] [FML]: The coremod aroma1997.core.coremod.CoreMod does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[22:12:11] [main/WARN] [FML]: The coremod codechic
This file has been truncated, but you can view the full file.
[22:48:28] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[22:48:28] [main/INFO] [FML/]: Forge Mod Loader version 7.10.113.1387 for Minecraft 1.7.10 loading
[22:48:28] [main/INFO] [FML/]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Curse\Minecraft\Install\runtime\jre-x64\1.8.0_25
[22:48:28] [main/DEBUG] [FML/]: Java classpath at launch is C:\Curse\Minecraft\Install\libraries\net\minecraftforge\forge\1.7.10-10.13.3.1387-1.7.10\forge-1.7.10-10.13.3.1387-1.7.10.jar;C:\Curse\Minecraft\Install\libraries\net\minecraft\launchwrapper\1.11\launchwrapper-1.11.jar;C:\Curse\Minecraft\Install\libraries\org\ow2\asm\asm-all\5.0.3\asm-all-5.0.3.jar;C:\Curse\Minecraft\Install\libraries\com\typesafe\akka\akka-actor_2.11\2.3.3\akka-actor_2.11-2.3.3.jar;C:\Curse\Minecraft\Install\libraries\com\typesafe\config\1.2.1\config-1.2.1.jar;C:\Curse\Minecraft\Install\libraries\org\scala-lang\scala-actors-migration_2.11\1.1.0\scala-actors-migration_2.
MultiMC version: 0.4.5
Minecraft folder is:
/Users/kaelten/Dropbox/MultiMC/Primer/minecraft
Java path is:
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java
Java Arguments:
[-Xdock:icon=icon.png, -Xdock:name="MultiMC: Primer", -Xms512m, -Xmx4096m, -Duser.language=en, -jar, /Applications/MultiMC.app/Contents/MacOS/jars/NewLaunch.jar]
@Kaelten
Kaelten / logging.rb
Created June 4, 2015 16:17
I got incredibly tired of seeing the spam of guard resource executions in chef converges, so I changed them to debug statements
class Chef
class Log
def self.info(msg=nil, &block)
if msg && msg.include?('Guard resource') && msg.include?('ran successfully')
debug msg
else
super
end
end

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: