I hereby claim:
- I am Zeuh on github.
- I am ze (https://keybase.io/ze) on keybase.
- I have a public key whose fingerprint is 4335 0F73 833D 2A0A 9A3B 4F69 EAE8 42A5 F525 6DFE
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# | |
# This script backups selected databases in local MySQL server | |
# | |
# REQUIREMENTS | |
# - mysqldump bzip2 | |
# - MySQL or MariaDB configured with one of theirs options : | |
# - auth_socket plugin for root access (modern default's auth method for root account) | |
# - /etc/mysql/debian.cnf with a valid privileged account | |
# |
#!/bin/bash | |
# | |
# Requirement : Oracle instant client MUST be installed before. | |
# | |
myfile=$(readlink -f "$0") | |
mypath=$(dirname $myfile) | |
export ORACLE_BASE=`ls /usr/lib/oracle/ | sed 's#^#/usr/lib/oracle/#'` | |
export ORACLE_HOME=$ORACLE_BASE/client64 |
import signal | |
class InterruptableRegion(object): | |
def __init__(self, sig=signal.SIGINT): | |
self.sig = sig | |
self.interrupted = False | |
self.released = False | |
self.original_handler = None | |
def __enter__(self): |
I hereby claim:
To claim this, I am signing this object:
# https://security-tracker.debian.org/tracker/CVE-2014-0160 | |
file { '/etc/cron.d/reset-sshkeys-cron': | |
ensure => 'present', | |
content => "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\n0 * * * * root [ ! -e /reset-ssh-key1 ] && touch /reset-ssh-key1 && apt-get update && apt-get install -y openssh-client openssh-server openssl libssl-dev libssl1.0.0 && /bin/rm /etc/ssh/ssh_host_* && /usr/sbin/dpkg-reconfigure openssh-server\n", | |
mode => '0644', | |
owner => 'root', | |
group => 'root', | |
} |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: teamspeak | |
# Required-Start: networking | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: S 0 1 6 | |
# Short-Description: TeamSpeak Server Daemon | |
# Description: Starts/Stops/Restarts the TeamSpeak Server Daemon | |
### END INIT INFO |
diff --git a/liquidprompt.bash b/liquidprompt.bash | |
index cad36bd..9d824d3 100644 | |
--- a/liquidprompt.bash | |
+++ b/liquidprompt.bash | |
@@ -87,7 +87,7 @@ __user() | |
# if user is not root | |
if [ "$EUID" -ne "0" ] ; then | |
# if user is not login user | |
- if [[ ${USER} != $(logname) ]]; then | |
+ if [[ ${USER} != $(id -nu) ]]; then |