Skip to content

Instantly share code, notes, and snippets.

@demogorgonz
demogorgonz / spotifyblock.txt
Created March 29, 2023 14:28
spotify block
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 adeventtracker.spotify.com
127.0.0.1 ads-fa.spotify.com
127.0.0.1 analytics.spotify.com
127.0.0.1 audio2.spotify.com
127.0.0.1 b.scorecardresearch.com
127.0.0.1 bounceexchange.com
127.0.0.1 bs.serving-sys.com
127.0.0.1 content.bitsontherun.com
127.0.0.1 core.insightexpressai.com
@demogorgonz
demogorgonz / restart_zte_h108n.sh
Created April 22, 2020 14:09 — forked from ali-essam/restart_zte_h108n.sh
bash script to restart zte h108n router
#!/bin/bash
USER='yourusername'
PASS='yourpassword'
function login {
local __resultvar=$1
local FRMTOKEN=$(curl -s 'http://192.168.1.1/' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8,ar;q=0.6,ru;q=0.4' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.92 Safari/537.36' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Cache-Control: max-age=0' -H 'Connection: keep-alive' --compressed | grep "(\"Frm_Logintoken\").value = \"[0-9]*\"" | grep -o "[0-9]*")
echo "Frm_Logintoken=$FRMTOKEN"
curl -s 'http://192.168.1.1/' -H 'Origin: http://192.168.1.1' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,ar;q=0.6,ru;q=0.4' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.92 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -

My Openshift Cheatsheet

Openshift build secrets for cloning git repos using SSH Keys

  • To create ssh secret:
oc create secret generic sshsecret \
    --from-file=ssh-privatekey=$HOME/.ssh/id_rsa
@demogorgonz
demogorgonz / PKGBUILD
Last active December 19, 2019 13:25
BlackArch PKGBUILD template
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=
pkgver=1
pkgrel=1
groups=('blackarch' 'blackarch-exploitation')
pkgdesc=''
url='https://github.com/'
arch=('any')
\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?):\d{1,5}\b

Keybase proof

I hereby claim:

  • I am demogorgonz on github.
  • I am filips (https://keybase.io/filips) on keybase.
  • I have a public key whose fingerprint is 1EBD 6FB7 2F56 46FD 8389 267D CD4E 738C 9D43 239C

To claim this, I am signing this object:

@demogorgonz
demogorgonz / vaskir.co Linux Administrator for hire
Created December 4, 2016 19:16
vaskir.co Linux Administrator for hire
Hello, !
I suppose I'll get right down to business, We are an experienced Linux systems administrators with a strong background in VMware, KVM, OpenVZ, NginX, Apache, MySQL server, PHP optimization, server administration, deployment, automation, programming,web development and the list goes on... We have spent the last few years maintaining servers for high-traffic (over 100,000 page views per day) websites, general problems solving, automation and are looking to expand and offer our services to others. We are not a company, but we do make our living off of doing this.
Services offered:
Server Optimization
Optimize Nginx, Apache, PHP & MySQL specifically for your server & website.(Involves custom compiles of Apache & PHP unless specifically requested otherwise)
Can also optimize image servers like lighttpd, tux, thtpd, litespeed, nginx, etc.
@demogorgonz
demogorgonz / list.sh
Created April 20, 2016 13:26 — forked from rwjblue/list.sh
List account and distribution list details in Zimbra
sudo su - zimbra
# list all accounts and print out account name and aliases
for i in `zmprov -l gaa` ; do zmprov ga $i zimbraMailAlias ; done
# list all distribution lists and any members and/or aliases
for i in `zmprov gadl` ; do zmprov gdl $i zimbraMailAlias zimbraMailForwardingAddress ; done