Monday, March 16, 2015

Multiple domain search linux

A line in /etc/resolv.conf with multiple domains, separated by spaces, works for me, e.g.:


Tuesday, April 29, 2014

CPU Load Test (100%) Linux

# Simple CPU stress test script

# Read the user's input
echo -n "Number of CPU threads to test: "
read cpu_threads
echo -n "Duration of the test (in seconds): "
read cpu_time

# Run an endless loop on each thread to generate 100% CPU
echo -e "\E[32mStressing ${cpu_threads} threads for ${cpu_time} seconds...\E[37m"
for i in $(seq ${cpu_threads}); do
    let thread=${i}-1
    (taskset -cp ${thread} $BASHPID; while true; do true; done) &

# Once the time runs out, kill all of the loops
sleep ${cpu_time}
echo -e "\E[32mStressing complete.\E[37m"
kill 0

Friday, April 25, 2014

AWS Workspace howto

Part 1 - AWS Workspaces with On-Premise Directory +
OpenVPN Server (How-to)

Part 2 - AWS Workspaces with Cloud Directory (How-to)


Sunday, April 13, 2014

Yum proxy

# The proxy server - proxy server:port number
# The account details for yum connections

Thursday, April 10, 2014

OpenVPC - AWS VPC Guide

Tuesday, November 26, 2013

MAC address filter Linux DHCP


ddns-update-style interim;

allow booting;
allow bootp;


ignore client-updates;
set vendorclass = option vendor-class-identifier;

# VDI Vcenter IPs
class "private-hosts" {
        match if substring(hardware,1,4) = 00:50:56:84;

subnet netmask {
     option routers   ;
     option domain-name-servers;
     option domain-name         "";
     option subnet-mask;
     filename                   "/pxelinux.0";
     default-lease-time         2419200;
     max-lease-time             2419200;
     option ntp-servers;
     pool {
                range dynamic-bootp;
                deny members of "private-hosts";

group {
    host {
        hardware ethernet 00:23:7D:DE:97:E4;
        option host-name "";
        option routers;
        filename "/pxelinux.0";

Additional info:

Sunday, November 17, 2013

Block leave page pop up

Download grease monkey add on

Download the script

(Click "Install" on upper right corner)

Test painfull popup