Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View arzzen's full-sized avatar
🤖
I'm borg...

arzzen

🤖
I'm borg...
  • ::1
  • 10:23 (UTC)
View GitHub Profile
##
## How to install mcrypt in php7.2 / php7.3
## Linux / MacOS / OSX
##
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/
#
@arzzen
arzzen / search.sh
Last active January 2, 2018 19:53
Bash script for search in 1.4bilion text credentials.
#!/bin/bash
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ "$1" != "" ]; then
letter1=$(echo ${1,,}|cut -b1)
if [[ $letter1 == [a-zA-Z0-9] ]]; then
if [ -f "$dir/data/$letter1" ]; then
cat "$dir/data/$letter1" | awk -F":" '{print $1"||"$2}' | grep -ai "$2$1$3"
else
letter2=$(echo ${1,,}|cut -b2)
#!/usr/bin/awk -f
BEGIN {
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
print "<payroll_list>"
print "<payroll>"
}
/programom HUMAN/{
print "</payroll>"
print "<payroll>"
}
@arzzen
arzzen / jenkins.css
Created September 5, 2017 07:49
test
/**
INFO:
replace "place-your-logo-here" with a logo for your company
replace "place-your-domain-here" with the domain of you jenkins so it finds the jenkins.png
replace the hey #2980b9 with a accent-color you love
**/
#jenkins-home-link {
background: url("place-your-logo-here") 100% 12px no-repeat;
background-size: 80px;
@arzzen
arzzen / cygwin-uninstaller.sh
Created January 22, 2017 13:36
Cygwin Uninstaller - git-quick-stats
#!/usr/bin/env bash
echo "Cygwin Uninstaller - git-quick-stats"
test -d /usr/local/bin/git-quick-stats && rm -rf /usr/local/bin/git-quick-stats
git config --global --unset alias.quick-stats '! /usr/local/bin/git-quick-stats'
echo -e "...\ndone"
@arzzen
arzzen / cygwin-installer.sh
Created January 22, 2017 13:33
Cygwin Installer - git-quick-stats
#!/usr/bin/env bash
echo "Cygwin Installer - git-quick-stats"
chmod 0755 git-quick-stats && cp git-quick-stats /usr/local/bin/git-quick-stats
git config --global alias.quick-stats '! /usr/local/bin/git-quick-stats'
echo -e "...\ndone"
#!/bin/bash
count=`git tag -l | wc -l`
keep=20
num=0
for t in `git tag -l --sort=taggerdate`
do
if [ "$num" -ge `expr $count - $keep` ]
then
@arzzen
arzzen / download.sh
Last active January 29, 2018 18:12
Download torrent
#!/bin/bash
# Install transmission dependences
# sudo apt-get install transmission-cli transmission-daemon transmission-common
# chmod +x download.sh
DOWNLOAD_DIR=${HOME}"/download"
TRANS_CLI="transmission-cli"
TRANS_SHOW="transmission-show"
TRANS_NOTIFY=${HOME}"/notify.sh"
@arzzen
arzzen / notify.sh
Created September 16, 2016 10:01
Notifikacny skript
#!/bin/bash
# Install dependences
# sudo apt-get install mailutils
# chmod +x notify.sh
RECEIVER="email@gmail.email"
SERVER_NAME=$HOSTNAME
SENDER=$(whoami)

Keybase proof

I hereby claim:

  • I am arzzen on github.
  • I am get (https://keybase.io/get) on keybase.
  • I have a public key whose fingerprint is A18B EADA BDC6 0123 6F9E 29F4 88BB C317 72F6 3516

To claim this, I am signing this object: