Skip to content

Instantly share code, notes, and snippets.

@tmacedo
tmacedo / macbook.patch
Last active November 11, 2015 16:15
macbook.patch
diff -Naur a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c
--- a/drivers/hid/hid-apple.c 2014-12-07 23:21:05.000000000 +0100
+++ b/drivers/hid/hid-apple.c 2015-04-16 16:18:35.009726041 +0200
@@ -535,6 +535,8 @@
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING7_JIS),
.driver_data = APPLE_HAS_FN | APPLE_RDESC_JIS },
{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING7A_ANSI),
+ .driver_data = APPLE_HAS_FN },
+ { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_WELLSPRING7A_NEW),
.driver_data = APPLE_HAS_FN },
@tmacedo
tmacedo / 3scale-apex-dig.txt
Created June 29, 2012 14:42
3scale.net AAAA dig
$ dig AAAA 3scale.net
; <<>> DiG 9.8.1-P1 <<>> AAAA 3scale.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23539
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;3scale.net. IN AAAA
$ dig www.3scale.net
; <<>> DiG 9.8.1-P1 <<>> www.3scale.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17264
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.3scale.net. IN A
VALUE
rb_ary_each(VALUE array)
{
long i;
volatile VALUE ary = array;
RETURN_ENUMERATOR(ary, 0, 0);
for (i=0; i<RARRAY_LEN(ary); i++) {
rb_yield(RARRAY_PTR(ary)[i]);
}
@tmacedo
tmacedo / SkypeGroupChatCallable.java
Created May 13, 2011 05:54
skype group chat callable
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package hudson.plugins.skype.im.transport.callables;
import com.skype.Chat;
import com.skype.ChatMessage;
import com.skype.SkypeException;
@tmacedo
tmacedo / gist:966579
Created May 11, 2011 14:45
jenkins skype group chat notification
diff --git a/src/main/java/hudson/plugins/skype/im/transport/SkypeIMConnection.java b/src/main/java/hudson/plugins/skype/im/transport/SkypeIMConnection.java
index 744e4b0..7071069 100644
--- a/src/main/java/hudson/plugins/skype/im/transport/SkypeIMConnection.java
+++ b/src/main/java/hudson/plugins/skype/im/transport/SkypeIMConnection.java
@@ -20,6 +20,7 @@ import hudson.plugins.im.IMPresence;
import hudson.plugins.im.bot.Bot;
import hudson.plugins.im.tools.ExceptionHelper;
import hudson.plugins.skype.im.transport.callables.SkypeChatCallable;
+import hudson.plugins.skype.im.transport.callables.SkypeGroupChatCallable;
import hudson.plugins.skype.im.transport.callables.SkypeSetupCallable;