Skip to content

Instantly share code, notes, and snippets.

View TTimo's full-sized avatar

Timothee "TTimo" Besset TTimo

View GitHub Profile
# -*- Mode: python -*-
import pprint
from twisted.trial import unittest
from twisted.internet import reactor, protocol
import server
class ConnectClient( protocol.DatagramProtocol ):
# The Radiant plugins (modules) are a little funky
# Some of them are actually linked against the build directory
ln -s ../build ./build
ln: ./build/build: File exists
make: *** [bundle] Error 1
@TTimo
TTimo / gist:5957547
Created July 9, 2013 13:56
Screwy GtkR OSX fonts
FC_DEBUG=1024
Loading config file /opt/nulocal/etc/fonts/fonts.conf
Scanning config dir /opt/nulocal/etc/fonts/conf.d
Loading config file /opt/nulocal/etc/fonts/conf.d/10-scale-bitmap-fonts.conf
Loading config file /opt/nulocal/etc/fonts/conf.d/20-unhint-small-vera.conf
Loading config file /opt/nulocal/etc/fonts/conf.d/30-metric-aliases.conf
Loading config file /opt/nulocal/etc/fonts/conf.d/30-urw-aliases.conf
Loading config file /opt/nulocal/etc/fonts/conf.d/40-nonlatin.conf
Loading config file /opt/nulocal/etc/fonts/conf.d/45-latin.conf
Loading config file /opt/nulocal/etc/fonts/conf.d/49-sansserif.conf
@TTimo
TTimo / gist:5996746
Created July 15, 2013 00:29
lldb Linux compile fix, following rev 186211
Index: source/Host/linux/Host.cpp
===================================================================
--- source/Host/linux/Host.cpp (revision 186297)
+++ source/Host/linux/Host.cpp (working copy)
@@ -341,7 +341,7 @@
ModuleSpecList specs;
FileSpec filespec (exe_path, false);
- const size_t num_specs = ObjectFile::GetModuleSpecifications (filespec, 0, specs);
+ const size_t num_specs = ObjectFile::GetModuleSpecifications (filespec, 0, 0, specs);
* Full build system redesign
I need to ditch the whole es_downloader horror and build something clean from scratch
I don't think it's even worth pursuing the current effort on Linux/OSX
Need to put down some clear goals to hit with a rewrite though.
** As a Developer, I expect to leverage build systems provided with the software I use
ACCEPTANCE TESTS:
- Not wasting time rewriting build system
- Not dealing with gyp at any point
- Extend and tweak the build systems that come with the software as needed
** As a Developer, I expect to write the build systems for all platforms
[2013-12-27 10:27:58,382] Timothees-MacBook-Pro.local/INFO/locust.main: Starting web monitor at *:8089
[2013-12-27 10:27:58,383] Timothees-MacBook-Pro.local/INFO/locust.main: Starting Locust 0.7.0
[2013-12-27 10:28:13,906] Timothees-MacBook-Pro.local/INFO/locust.runners: Hatching and swarming 1000 clients at the rate 50 client
s/s...
[2013-12-27 10:28:37,991] Timothees-MacBook-Pro.local/INFO/locust.runners: All locusts hatched: WebsiteUser: 1000
[2013-12-27 10:28:37,992] Timothees-MacBook-Pro.local/INFO/locust.runners: Resetting stats
[2013-12-27 10:29:30,773] Timothees-MacBook-Pro.local/INFO/locust.runners: Hatching and swarming 1000 clients at the rate 100 clien
ts/s...
[2013-12-27 10:29:44,444] Timothees-MacBook-Pro.local/INFO/locust.runners: All locusts hatched:
Traceback (most recent call last):
File "./manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/opt/viduo/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
utility.execute()
File "/opt/viduo/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/viduo/local/lib/python2.7/site-packages/django/core/management/commands/test.py", line 50, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/opt/viduo/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
Index: jni/native.c
===================================================================
--- jni/native.c (revision 2)
+++ jni/native.c (working copy)
@@ -5,7 +5,7 @@
#define DEBUG_TAG "NDK_AndroidNDK1SampleActivity"
-void Java_com_mamlambo_sample_ndk1_AndroidNDK1SampleActivity_helloLog(JNIEnv * env, jobject this, jstring logThis)
+JNIEXPORT void JNICALL Java_com_mamlambo_sample_ndk1_AndroidNDK1SampleActivity_helloLog(JNIEnv * env, jobject this, jstring logThis)
# http://fishshell.com/
fish_shell:
pkgrepo.managed:
- ppa: fish-shell/release-2
pkg.installed:
- name: fish
# https://github.com/fish-shell/fish-shell/issues/107
/usr/share/fish/config.fish:
sshd_root_login:
file.replace:
- name: /etc/ssh/sshd_config
- pattern: ".*PermitRootLogin .*"
- repl: "PermitRootLogin no"
"service ssh restart":
cmd.run:
- onchanges:
- file: sshd_root_login