Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
if [ ! -e /dev/disk/by-label/DATA ]; then | |
_disk=`fdisk -l |grep -Po '^Disk /dev/[a-z]+'|tail -1|cut -d' ' -f 2` | |
_disk_size=`fdisk -l |grep -P '^Disk /dev'|tail -1|cut -d' ' -f 3` | |
pvcreate ${_disk} | |
vgcreate data ${_disk} | |
lvcreate -n data -L$(expr $_disk_size * 80 / 100)G data | |
mkfs.ext4 /dev/data/data | |
e2label /dev/data/data DATA | |
else | |
echo "DATA already exists. Exiting." |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
content of file 1 |
dn: cn=accessRole,cn=schema,cn=config | |
objectClass: olcSchemaConfig | |
cn: accessRole | |
olcAttributeTypes: ( 1.3.6.1.4.1.30503.500.1.1.1.13 NAME 'accessRole' | |
DESC 'MANDATORY: Access Role' | |
EQUALITY caseIgnoreMatch | |
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 | |
) | |
olcObjectClasses: ( 1.3.6.1.4.1.30503.500.1.1.2.0 NAME 'userAccessRole' SUP top AUXILIARY | |
DESC 'MANDATORY: User Access Role objectclass' |
@@@ execute after patch @@@ | |
@@@ chmod +x /usr/local/etc/raddb/scripts/googleauth.py @@@ | |
@@@ patch with System_Patches package @@@ | |
diff -Naur --new-file /usr/local/pkg/freeradius.inc /usr/local/pkg/freeradius.inc | |
--- /usr/local/pkg/freeradius.inc 2016-05-16 22:59:15.000000000 +0300 | |
+++ /usr/local/pkg/freeradius.inc 2016-06-27 01:43:28.388579000 +0300 | |
@@ -119,6 +119,10 @@ | |
freeradius_datacounter_acct_resync(); | |
freeradius_datacounter_auth_resync(); |
/* | |
* by Konstantin Krastev | |
* | |
* NTP DDoS amplification | |
* Date: 04/04/2014 | |
* Used POC by Danilo PC - <[email protected]> | |
* CVE : CVE-2013-5211 | |
*/ | |
#include <stdio.h> //For on printf function |
import os, re | |
import _winreg as wreg | |
import psutil | |
from Tkinter import * | |
import tkMessageBox | |
""" Quick and dirty skype advertisements remover """ | |
class Build_GUI(object): | |
""" Build UI """ |