Skip to content

Instantly share code, notes, and snippets.

Ilya Voronin ivoronin

Block or report user

Report or block ivoronin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ivoronin
ivoronin / create_gitlab_token.rb
Created Nov 22, 2019
Create GitLab Personal Access Token from cli
View create_gitlab_token.rb
#
# 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
View pgpoke.py
#!/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 / svg2icns
Created Apr 22, 2018 — forked from zlbruce/svg2icns
covert svg to icns (with imagemagick)
View svg2icns
#!/bin/bash
echo "*** SVG 2 ICNS ***"
if [ $# -ne 1 ]; then
echo "Usage: svg2icns filename.svg"
exit 100
fi
filename="$1"
name=${filename%.*}
ext=${filename##*.}
echo "processing: $name"
View keepalive-rpm.patch
diff --git a/SOURCES/keepalived.service b/SOURCES/keepalived.service
index d958940..6f9c41c 100644
--- a/SOURCES/keepalived.service
+++ b/SOURCES/keepalived.service
@@ -1,6 +1,6 @@
[Unit]
Description=LVS and VRRP High Availability Monitor
-After=syslog.target network.target
+After=syslog.target network.target snmpd.service
@ivoronin
ivoronin / StraceLexer.py
Created Nov 10, 2012
strace lexer for pygments
View StraceLexer.py
__author__ = 'ivoronin'
from pygments.lexer import RegexLexer, bygroups, include
from pygments.token import *
class StraceLexer(RegexLexer):
name = "Strace"
aliases = ["strace", "truss"]
tokens = {
'generic': [
View mutt_stitles.patch
# vi: ft=diff
Screen titles patch
Index: mutt-1.5.21/curs_main.c
===================================================================
--- mutt-1.5.21.orig/curs_main.c 2012-04-11 19:41:49.898788540 +0400
+++ mutt-1.5.21/curs_main.c 2012-04-11 19:44:32.826795297 +0400
@@ -123,6 +123,11 @@
fprintf(stderr, "%c]1;%s%c", ASCII_CTRL_OPEN_SQUARE_BRAKET, name, ASCII_CTRL_G);
}
View xmlstrfix.py
from twisted.web import proxy, server
import StringIO
import re
from urllib import quote as urlquote
from twisted.application import service, internet
class XMLSTRFixingProxy(proxy.ReverseProxyResource):
def getChild(self, path, request):
return XMLSTRFixingProxy(
self.host, self.port,
@ivoronin
ivoronin / mod_authnz_ldap-communigate.patch
Created Sep 4, 2012
avoid rebind in mod_authnz_ldap and make it work with Communigate LDAP server
View mod_authnz_ldap-communigate.patch
--- httpd-2.4.3.orig/modules/ldap/util_ldap.c 2012-08-15 03:59:24.000000000 +0400
+++ httpd-2.4.3/modules/ldap/util_ldap.c 2012-09-04 19:48:44.393080272 +0400
@@ -1737,44 +1737,6 @@
}
/*
- * Attempt to bind with the retrieved dn and the password. If the bind
- * fails, it means that the password is wrong (the dn obviously
- * exists, since we just retrieved it)
- */
@ivoronin
ivoronin / linux-systemtap.patch
Created Aug 6, 2012
core/linux PKGBUILD patch for building debuginfo package
View linux-systemtap.patch
diff -ur linux.orig/PKGBUILD linux/PKGBUILD
--- linux.orig/PKGBUILD 2012-08-28 21:53:04.757568936 +0400
+++ linux/PKGBUILD 2012-08-28 22:05:23.470891452 +0400
@@ -24,8 +24,8 @@
'i915-i2c-crash-3.5.x.patch')
md5sums=('24153eaaa81dedc9481ada8cd9c3b83d'
'01e0536109d2a06b1701b5051edfcea2'
- '4eb50449b069bd699d92a290dce76d00'
- '74c0ce9291ad8aaf26546fe85a1a7d18'
+ 'f2abe8d7f67936cc0cc8fc50a8d5dcf0'
@ivoronin
ivoronin / PKGBUILD
Created Aug 4, 2012
systemtap pkgbuild
View 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')
You can’t perform that action at this time.