Skip to content

Instantly share code, notes, and snippets.

View aktowns's full-sized avatar
👾

Ashley Towns aktowns

👾
View GitHub Profile
# Configuration file for locale-gen
#
# lists of locales that are to be generated by the locale-gen command.
#
# Each line is of the form:
#
# <locale> <charset>
#
# where <locale> is one of the locales given in /usr/share/i18n/locales
# and <charset> is one of the character sets listed in /usr/share/i18n/charmaps
$OpenBSD: patch-src_log_c,v 1.8 2019/03/18 11:20:04 akt Exp $
HAproxy:
Patch the log function to avoid vfprintf receiving a NULL value.
Index: src/log.c
--- src/log.c.orig
+++ src/log.c
@@ -984,11 +984,12 @@
renderCandleAt :: CandleStick -> Candle -> Double -> String
renderCandleAt candlestick candle heightUnit =
if ((fromIntegral $ ceiling ts) >= heightUnit) && heightUnit >= (fromIntegral $ floor bc) then
if (tc - heightUnit) > 0.75 then symbolCandle
else if (tc - heightUnit) > 0.25 then
if (ts - heightUnit) > 0.75 then symbolHalfTop
else symbolHalfCandleTop
else
if (ts - heightUnit) > 0.75 then symbolStick
else if (ts - heightUnit) > 0.25 then symbolHalfStickTop
diff --git a/MakeLinux b/MakeLinux
new file mode 100644
index 0000000..8003e53
--- /dev/null
+++ b/MakeLinux
@@ -0,0 +1,34 @@
+URHO3D_SRC_DIR=Urho3D/Source
+URHO3D_LINUX_DIR=Urho3D/Urho3D_Linux
+OUTPUT_DIR=Bin/Desktop
+
@aktowns
aktowns / internode-usage.js
Created April 26, 2011 12:24
Wrapper around the internode api, for node.js
// internode-usage.js
// written by ashley towns <ashleyis@me.com>
var _ = require("underscore");
var request = require("request");
var xml2js = require("xml2js-expat");
//
var account_id = null;
var auth = null;

Keybase proof

I hereby claim:

  • I am aktowns on github.
  • I am ashleyis (https://keybase.io/ashleyis) on keybase.
  • I have a public key ASBLMNk5K7dy-Wf2nwiObJp13vWiWiqdRF7QdzvcMLvRxQo

To claim this, I am signing this object:

@aktowns
aktowns / envset.fs
Last active December 23, 2015 08:49
open System
open System.IO
[<EntryPoint>]
let main argv =
let file = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/envpath.txt"
if File.Exists(file) then
let contents = File.ReadAllText(file)
let currentEnv = Environment.GetEnvironmentVariable("PATH", EnvironmentVariableTarget.User)
Environment.SetEnvironmentVariable("PATH", contents + ":" + currentEnv, EnvironmentVariableTarget.User)
diff --git a/libplist-1.10 2/src/CMakeLists.txt b/libplist-1.10/src/CMakeLists.txt
index c4f5483..384f616 100644
--- a/libplist-1.10 2/src/CMakeLists.txt
+++ b/libplist-1.10/src/CMakeLists.txt
@@ -45,6 +45,16 @@ if(APPLE)
SET_TARGET_PROPERTIES( plist PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
endif()
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPLIST_BYTE_ORDER=${PLIST_BYTE_ORDER}")
+ADD_LIBRARY( pliststatic STATIC ${libplist_SRC} ${libcnary_object_files} )
#!/usr/bin/env ruby
# Quick and dirty script to fix up .fsproj build orders
# to compile under xbuild when enabled in xamarin studio
#
# this relies on a propper build order set the normal way under
# project options -> general -> build order. Output should be something like
#
# $ fixorder.rb gitopc/gitopc.fsproj
# Make sure you have set a valid build order in 'Project options -> General -> Build order' before running this script
# Press enter to continue, Ctrl+C to abort.
Ξ repos/crystal git:(master) ▶ cat test.cr
class Hello
def initialize(wow)
@wow = wow
end
def do_it
puts @wow
end
end