Skip to content

Instantly share code, notes, and snippets.

@3v1n0
3v1n0 / python.vapi
Created Oct 12, 2011
A simple test to use python code from Vala
View python.vapi
[CCode (lower_case_cprefix = "Py_", cheader_filename = "Python.h")]
namespace Python
{
public void Initialize ();
public void Finalize ();
[CCode (lower_case_cprefix = "PyRun_")]
namespace Run
{
public void SimpleString (string @string);
@3v1n0
3v1n0 / badunitymenus-gtkbuild.vala
Created Oct 14, 2011
Test bad menu files with Unity
View badunitymenus-gtkbuild.vala
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>
View xorg.conf
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
View PizzaDough-QtControls.qml
import QtQuick 2.2
import QtQuick.Window 2.1
import QtQuick.Controls 1.1
Window
{
id: main
visible: true
title: "Pizza Dough Helper"
@3v1n0
3v1n0 / lp-add-sru-bug.py
Last active Sep 6, 2017
Launchpad Tools
View lp-add-sru-bug.py
#!/usr/bin/python
import launchpadlib.launchpad
import sys
if len(sys.argv) < 2:
print "You need to pass the bug number to adjust"
sys.exit(1)
lp = launchpadlib.launchpad.Launchpad.login_with(u'rlp', u'production', version='devel')
View xypos.vala
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 / prefix-builder.sh
Last active Sep 13, 2016
prefix-builder.sh
View 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"
View parse-gov-certs.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) Marco Trevisan
#
# Authors:
# Marco Trevisan <marco@trevisan.xyz>
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 3.
@3v1n0
3v1n0 / gpControl.json
Last active Nov 2, 2020
GoPro Hero4 Remote tools
View gpControl.json
{
"version":2.0,
"display_hints":[
{
"key":"GPCAMERA_GROUP_VIDEO",
"display_name":"Video Settings",
"settings":[
{
"setting_id":5,
"widget_type":"select",
View HERO4BlackWifiHacking2.md

#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