Skip to content

Instantly share code, notes, and snippets.

@ivoronin
ivoronin / PKGBUILD
Created August 4, 2012 22:24
systemtap pkgbuild
# Maintainer: Sebastien Binet <binet@farnsworth>
# Wu Xingbo <wuxb45@gmail.com>
pkgname=systemtap
pkgver=1.8
pkgrel=1
pkgdesc="SystemTap provides free software (GPL) infrastructure to simplify the gathering of information about the running Linux system."
url="http://sourceware.org/systemtap/"
arch=('i686' 'x86_64')
license=('GPL')
@ivoronin
ivoronin / qmi_dissector.lua
Created May 9, 2012 03:26
Wireshark Dissector for Qualcomm MSM Interface (QMI) Protocol
--[[
Wireshark Dissector for Qualcomm MSM Interface (QMI) Protocol v0.1
Copyright (c) 2012 Ilya Voronin <ivoronin@gmail.com>
Based on Code Aurora Forum's BSD/GPL licensed code:
http://www.codeaurora.org/contribute/projects/gobi/
Short howto for using this script:
#!/usr/bin/env python
#
# Usage: ./pgpoke.py <dsn>
#
import psycopg2
from sys import argv
from time import sleep
from datetime import datetime
import logging
@ivoronin
ivoronin / create_gitlab_token.rb
Created November 22, 2019 19:45
Create GitLab Personal Access Token from cli
#
# gitlab-rails runner -e production create_gitlab_token.rb <token name> <token>
#
def update_token(token, desired_name, desired_scopes, desired_token_digest)
token.name = desired_name
token.scopes = desired_scopes
token.name = desired_name
token.scopes = desired_scopes
token.token_digest = desired_token_digest
token.revoked = false