This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
from concurrent import futures | |
from concurrent.futures import ThreadPoolExecutor | |
from datetime import datetime | |
from ftplib import FTP | |
import os | |
import random | |
import string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
from concurrent import futures | |
from concurrent.futures import ThreadPoolExecutor | |
import subprocess | |
parser = argparse.ArgumentParser(description='Stress test a FTP server') | |
parser.add_argument('-t', '--t', type=int, dest="threads", default=2, help="Number of threads to launch") | |
parser.add_argument('-c', '--command', dest="command", help="The command to be executed by the threads", required=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias grep='grep --color=auto' | |
alias ll='ls -laF --color=auto' | |
alias ls='ls -F --color=auto' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /data/tmp | |
sysbench --test=cpu --cpu-max-prime=20000 run | |
sysbench --test=fileio --file-total-size=20G prepare | |
sysbench --test=fileio --file-total-size=20G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run | |
sysbench --test=fileio --file-total-size=20G cleanup | |
sysbench --test=memory run --memory-total-size=2G | |
sysbench --test=memory run --memory-total-size=2G --memory-oper=read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'abstract.php'; | |
class Nudorm_Shell_Category extends Mage_Shell_Abstract | |
{ | |
/** | |
* Run script | |
* | |
*/ | |
public function run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Context docBase="/opt/apache-solr-3.5.0/dist/apache-solr-3.5.0.war" crossContext="true"> | |
<Environment name="solr/home" type="java.lang.String" value="/opt/apache-tomcat-7.0.61/solr" override="true"/> | |
</Context> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Successfully build php-5.5.24 on Yosemite 10.10.3 (14D131) with following libraries / application installed via brew: | |
# autoconf | |
# automake | |
# fontconfig | |
# freetype | |
# gd | |
# icu4c | |
# imagemagick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PS1="[\[$(tput setaf 1)\]\u\[$(tput setaf 0)\]@\[$(tput setaf 4)\]$(hostname -s) \[$(tput setaf 0)\]\W]\\$: \[$(tput sgr0)\]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo kextcache -prelinked-kernel /System/Library/Kernels -K /System/Library/Caches/com.apple.kext.caches/Startup /System/Library/Extensions/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mogrify -path OUTPUT_PATH \ | |
-filter Triangle \ | |
-define filter:support=2 \ | |
-thumbnail OUTPUT_WIDTH \ | |
-unsharp 0.25x0.25+8+0.065 \ | |
-dither None \ | |
-posterize 136 \ | |
-quality 82 \ | |
-define jpeg:fancy-upsampling=off \ | |
-define png:compression-filter=5 \ |