start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# Bash shell script for generating self-signed certs. Run this in a folder, as it | |
# generates a few files. Large portions of this script were taken from the | |
# following artcile: | |
# | |
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html | |
# | |
# Additional alterations by: Brad Landers | |
# Date: 2012-01-27 |
# vim: set ft=python : | |
from __future__ import print_function | |
import json | |
import sys | |
import datetime | |
from redis import StrictRedis as Redis |
with mock.patch("%s.restart_server" % module_under_test, autospec=True) as mock_restart: | |
restart_servers_in_datacenter(servers, "sfo") | |
mock_restart.assert_called_once() |
--- /usr/bin/xmlsec1-config.orig 2015-02-25 13:47:13.384286257 +0100 | |
+++ /usr/bin/xmlsec1-config 2015-02-25 13:46:54.849285579 +0100 | |
@@ -199,7 +199,7 @@ | |
# | |
# Assemble all the settings together | |
# | |
-the_flags="$the_flags -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1 -I/usr/include/xmlsec1 $the_xml_flags $the_xslt_flags $the_crypto_flags" | |
+the_flags="$the_flags -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1 -DXMLSEC_NO_SIZE_T -I/usr/include/xmlsec1 $the_xml_flags $the_xslt_flags $the_crypto_flags" | |
the_libs="$the_libs -L${package_libdir} -lxmlsec1 -lltdl $the_xmlsec_crypto_lib -lxmlsec1 $the_xml_libs $the_xslt_libs $the_crypto_libs" |
[general] | |
accounts = GMail | |
maxsyncaccounts = 3 | |
[Account GMail] | |
localrepository = Local | |
remoterepository = Remote | |
autorefresh = 5 | |
quick = 5 |
#!/usr/bin/env python | |
""" | |
no more embarrasing "removed pdb, sorry" commits | |
install | |
------- | |
save it as .git/hooks/pre-commit giving +x permission | |
""" |
# Notify Slack - Send notifications to a Slack Channel | |
# Copyright (C) 2016 Gustavo Arjones (@arjones) | |
# | |
# 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; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# Full blog post here: http://arjon.es/2016/09/15/be-notified-on-slack-when-a-long-process-finishes/ | |
# |
"gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory" CentOS's and Fedora +22 workaround | |
Install `redhat-rpm-config` | |
$ sudo dnf install redhat-rpm-config |