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
# | |
# 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 |
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
#!/usr/bin/env python | |
# | |
# Usage: ./pgpoke.py <dsn> | |
# | |
import psycopg2 | |
from sys import argv | |
from time import sleep | |
from datetime import datetime | |
import logging |
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
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 |
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
__author__ = 'ivoronin' | |
from pygments.lexer import RegexLexer, bygroups, include | |
from pygments.token import * | |
class StraceLexer(RegexLexer): | |
name = "Strace" | |
aliases = ["strace", "truss"] | |
tokens = { | |
'generic': [ |
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
# 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); | |
} |
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
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, |
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
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' |
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
# Maintainer: Sebastien Binet <binet@farnsworth> | |
# Wu Xingbo <[email protected]> | |
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') |
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
--- a/drivers/usb/serial/option.c | |
+++ b/drivers/usb/serial/option.c | |
@@ -164,6 +164,8 @@ static void option_instat_callback(struct urb *urb); | |
#define QUANTA_PRODUCT_GLX 0xEA04 | |
#define QUANTA_PRODUCT_GKE 0xEA05 | |
#define QUANTA_PRODUCT_GLE 0xEA06 | |
+#define QUANTA_PRODUCT_YOTA_ROUTER_OLD 0xD00A | |
+#define QUANTA_PRODUCT_YOTA_ROUTER 0xD009 | |
#define NOVATELWIRELESS_VENDOR_ID 0x1410 |
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
--- a/drivers/net/usb/qmi_wwan.c | |
+++ b/drivers/net/usb/qmi_wwan.c | |
@@ -365,6 +365,24 @@ static const struct driver_info qmi_wwan_force_int4 = { | |
.data = BIT(4), /* interface whitelist bitmap */ | |
}; | |
+static const struct driver_info qmi_wwan_force_int2 = { | |
+ .description = "Qualcomm Gobi wwan/QMI device", | |
+ .flags = FLAG_WWAN, | |
+ .bind = qmi_wwan_bind_gobi, |
NewerOlder