Skip to content

Instantly share code, notes, and snippets.

@3v1n0
3v1n0 / xypos.vala
Last active August 29, 2015 14:06
XYPos
using Gtk;
// Compile with
// valac --pkg gtk+-3.0 --pkg gdk-x11-3.0 -X $(pkg-config xi --libs) xypos.vala
[CCode (gir_namespace = "xi", cprefix = "", lower_case_cprefix = "", cheader_filename = "X11/extensions/XInput2.h")]
namespace XI
{
[Compact]
[CCode (cname = "Display")]
@3v1n0
3v1n0 / keybase.md
Created May 5, 2015 16:29
keybase.md

Keybase proof

I hereby claim:

  • I am 3v1n0 on github.
  • I am 3v1n0 (https://keybase.io/3v1n0) on keybase.
  • I have a public key whose fingerprint is 45B1 103F B93A CBD9 0296 DBCA E83D 0894 8183 6EBF

To claim this, I am signing this object:

@3v1n0
3v1n0 / badunitymenus-gtkbuild.vala
Created October 14, 2011 22:33
Test bad menu files with Unity
using Gtk;
const string win_ui = """
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<object class="GtkWindow" id="window">
<property name="can_focus">False</property>
<property name="border_width">10</property>
<property name="title" translatable="yes">Sample Application</property>
Section "Files"
ModulePath "/usr/lib/xorg/modules/extensions"
ModulePath "/usr/lib/xorg/modules"
ModulePath "/usr/lib/x86_64-linux-gnu/xorg/extra-modules"
ModulePath "/usr/lib/xorg/extra-modules"
EndSection
Section "Module"
Load "glx"
EndSection
@3v1n0
3v1n0 / ubootwrite.py
Last active February 8, 2016 17:55
uboot-write.py
# -*- coding: utf-8 -*-
# Based on code by pgid69 on OpenWRT forums:
# https://forum.openwrt.org/viewtopic.php?pid=183315#p183315
#
# Allows to write on u-boot memory on modems not supporting 'loadb' commands
# python uboot-write.py --write=open-wrt-image.bin --addr=0x81000000
#
# Once memory is written, go with the classic way (use proper addresses for your device):
# erase 0x9f020000 +0x3c0000
# cp.b 0x81000000 0x9f020000 0x3c0000

#GoPro HERO4 Black Wifi Hacking, ep 2

By Maelstrom Napalm, @odwdinc and Konrad Iturbe

###Status URL:

http://10.5.5.9/gp/gpControl/status

####Protune EV compensation: Value | URL

@3v1n0
3v1n0 / prefix-builder.sh
Last active September 13, 2016 15:31
prefix-builder.sh
#!/bin/bash
#
# Use
# eval $(prefix-builder.sh [add|rm|prepend|append] folder)
#
# or Alias such as:
# function eval_cmd() { eval $($*); }
# alias build-prefix="eval_cmd prefix-builder.sh"
# alias add-build-prefix="eval_cmd prefix-builder.sh add"
# alias rm-build-prefix="eval_cmd prefix-builder.sh rm"
@3v1n0
3v1n0 / Flickr_Original_Link.user.js
Last active November 19, 2016 23:01
Flickr Original Link Autoload
@3v1n0
3v1n0 / snapcraft-config-generator.py
Last active February 15, 2017 10:24
snapcraft.cfg generator
#!/usr/bin/python3
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Generates .snapcraft/snapcraft.cfg credentials to upload to the store
#
# Copyright (C) 2017 Marco Trevisan <marco@ubuntu.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
@3v1n0
3v1n0 / verification.txt
Created June 13, 2017 11:30
Blockstack verification gist
Verifying that "trevinho.id" is my Blockstack ID. https://onename.com/trevinho