Nice hack!
gists | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
static inline __attribute__((__always_inline__)) void print_python_version_offsets(PythonVersionOffsets *pvo) {
bpf_printk("Python Version Offsets:\n");
bpf_printk(" major_version: %u\n", pvo->major_version);
bpf_printk(" minor_version: %u\n", pvo->minor_version);
bpf_printk(" patch_version: %u\n", pvo->patch_version);
bpf_printk(" py_object:\n");
bpf_printk(" ob_type: %lld\n", pvo->py_object.ob_type);
bpf_printk(" py_string:\n");
bpf_printk(" data: %lld\n", pvo->py_string.data);
I hereby claim:
- I am kakkoyun on github.
- I am kemal (https://keybase.io/kemal) on keybase.
- I have a public key ASBDhPtOiAyHRvtq3vp0bU7a7QfP538sm25IIluYUYT0wwo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package co.vispera.shark.miscellaneous; | |
import android.os.Handler; | |
import android.os.Looper; | |
import com.squareup.otto.Bus; | |
import com.squareup.otto.Produce; | |
import java.util.concurrent.ConcurrentHashMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Infix evaluator in C++. | |
* Haldun Bayhantopcu <[email protected]> 10976008 | |
* | |
* Usage: echo <expr> | ./infixeval | |
* Example: echo "((8+9)*(4-6)^4)" | ./infixeval | |
* Output: 272 | |
*/ | |
#include <cmath> | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Api::V1::PassportsController < Api::V1::BaseController | |
before_action :validate | |
def create | |
if (passport = Passport.where(uid: params[:uid], | |
provider: params[:provider]).first) | |
respond_with(current_application.password.get_token(passport.user, | |
passport.user.password), | |
location: false) | |
# member = passport.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
adminreverse from here http://djangosnippets.org/snippets/2032/ | |
changed for working with ForeignKeys | |
''' | |
''' | |
reverseadmin | |
============ | |
Module that makes django admin handle OneToOneFields in a better way. | |
A common use case for one-to-one relationships is to "embed" a model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
NewerOlder