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
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
#!/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
# | |
# 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 |
OlderNewer