Skip to content

Instantly share code, notes, and snippets.

View TTimo's full-sized avatar

Timothee "TTimo" Besset TTimo

View GitHub Profile
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
sshd_root_login:
file.replace:
- name: /etc/ssh/sshd_config
- pattern: ".*PermitRootLogin .*"
- repl: "PermitRootLogin no"
ssh:
service.restart:
- onchanges:
- file: sshd_root_login
@TTimo
TTimo / index.html
Created December 20, 2014 17:57
jErXEL
<html>
<head>
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pure/0.5.0/pure-min.css"/>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.2.0/knockout-min.js"/>
</head>
<body>
</body>
</html>
@TTimo
TTimo / gist:cc1d7e827df9e1c51999
Created February 10, 2015 17:01
An un-handled exception was caught by salt's global exception handler
[ERROR ] An un-handled exception was caught by salt's global exception handler:
TypeError: string indices must be integers, not str
Traceback (most recent call last):
File "/usr/bin/salt-call", line 11, in <module>
salt_call()
File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 123, in salt_call
client.run()
File "/usr/lib/python2.7/dist-packages/salt/cli/__init__.py", line 410, in run
caller = salt.cli.caller.Caller.factory(self.config)
File "/usr/lib/python2.7/dist-packages/salt/cli/caller.py", line 64, in factory
@TTimo
TTimo / gist:179653f97e02ecc75e91
Created July 21, 2015 18:23
chocolatey pip installation failed
Chocolatey v0.9.9.8
Installing the following packages:
pip
By installing you accept licenses for the packages.
easy.install v0.6.11.4
Setting PYTHONHOME environment variable to 'C:\Python27'
PS: PYTHONHOME variable is not required to Python works, but it is a good practice to have it.
Using python home at 'C:\Python27'
Installing easy_install for Python(2.7.6)...
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.EwmhDesktops
import XMonad.Actions.GroupNavigation
import XMonad.Layout.NoBorders
import XMonad.Layout.Gaps
import XMonad.Util.Run(spawnPipe)
import XMonad.Util.EZConfig(additionalKeys)
# -*- 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