Skip to content

Instantly share code, notes, and snippets.

Avatar

Rainer Bendig hexathos

View GitHub Profile
View gist:f28e14ebef6c7669ee9029e90cb06829
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 46.105.57.169...
* TCP_NODELAY set
* Connected to corentinraimbault.com (46.105.57.169) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
View hxfunctions-reduced.sh
function checkForPid {
lockfile=${1}
if [ -f ${lockfile} ] ; then
runningpid=$(cat ${lockfile})
if ps -p${runningpid} >/dev/null
then
runningpid=$(cat ${lockfile})
echo "${0##*/} wird bereits ausgeführt (PID ${runningpid})"
ps -p${runningpid} -u
exit 1
View post-commit.sh
#!/bin/bash
jenkinsjobname=<INSERT>
jenkinsbuildtoken=<INSERT>
jenkinsusername=<INSERT>
jenkinspasswordhash=<INSERT>
jenkinsurl=<INSERT>
while read oldrev newrev refname
do
@hexathos
hexathos / evelog2speech.sh
Last active Oct 5, 2017
EVE GameLogs to speech on linux
View evelog2speech.sh
## ONE logfile
tail -n1 -f logfilename | sed 's/.*)//' -u | sed 's/<[^>]\+>//g' -u | espeak -ven-us+f5 -s1600 --pho
## Multiple Logfiles with cachefile
#this must run in background, or any other console
tail -n1 -f * | grep -v "==" --line-buffered | sed 's/.*)//' -u | sed 's/<[^>]\+>//g' -u >>~/Documents/eve.log
#this is for text2speech conversion
tail -f ~/Documents/eve.log | espeak -ven-us+f5 -s1600 --pho
@hexathos
hexathos / gist:a9a7f0e99b5ebf32afe5490789c2d775
Last active Jun 14, 2017
name parameters in sophos av not working
View gist:a9a7f0e99b5ebf32afe5490789c2d775
The following output is generated by savscan with hashs
md5 1bb08a3214461dcda0fcb3c7931c419b /opt/sophos-av/bin/savscan
sha512 193a8094f1eb1e3b6793e08194a85dda17faeed00e702b771a96bf5b1cb270d336b53036412b8b1d0006aa8adeb80651f117d2157c83b9a7534e193dd975037c /opt/sophos-av/bin/savscan
I would expect to get output of scanned files, according to -dn parameter and
file details, according to --show-file-details, but none of them seems to get
used by savscan
@hexathos
hexathos / example.php
Last active Jun 12, 2016
Get unicode hexadecimal value from fontawesome's _variables.scss (works on 4.6.3)
View example.php
<?php
// For example if you need to print a fontawesome icon on an image... or as dropdown in a select box...
// works with fontawesome 4.6.3
// proof of concept, maybe a bit slow -.-
$in = file_get_contents('_variables.scss');
$out = array();
preg_match_all("/fa-var-(.*): \"\\(.*)\";/", $in, $out);
$result = array();
$count=0;
View keybase.md

Keybase proof

I hereby claim:

  • I am hexathos on github.
  • I am hexathos (https://keybase.io/hexathos) on keybase.
  • I have a public key ASB-SkX8Pd-fqW5eW7YuO3ul4-zI9gTtVXYvtqfkp8twVgo

To claim this, I am signing this object:

@hexathos
hexathos / 2015-08-06 (hexathos) eraagentinstaller.diff
Last active Aug 29, 2015
Useless Code in Eset's EraAgentInstaller.sh
View 2015-08-06 (hexathos) eraagentinstaller.diff
35,40d34
< if test -z $eraa_installer_url
< then
< echo "No installer available for '$arch' arhitecture. Sorry :/"
< exit 1
< fi
<
View gist:e84936f69490ded1368f
rbendig@zwiby:~$ dig nosslsearch.google.com @8.8.8.8
; <<>> DiG 9.9.5-4.3ubuntu0.2-Ubuntu <<>> nosslsearch.google.com @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38158
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
View gist:e2f3ddcddbf693ff39a8
<?xml version="1.0" encoding="UTF-8" ?>
<feedback>
<report_metadata>
<org_name>google.com</org_name>
<email>noreply-dmarc-support@google.com</email>
<extra_contact_info>http://support.google.com/a/bin/answer.py?answer=2466580</extra_contact_info>
<report_id>11092558519225687717</report_id>
<date_range>
<begin>1404950400</begin>
<end>1405036799</end>
You can’t perform that action at this time.