View venv_module_example.sh
# assuming python3 is in PATH (maybe python34 on centos).
# create a virtualenv in a 'venv' folder.
# ``-m venv`` refers to the venv module.
# the second ``venv`` refers to the path to folder.
# if the path is /tmp/venv then the command would be like::
# python3 -m venv /tmp/venv
python3 -m venv venv
# enter virtualenv.
source venv/bin/activate
# python should be under our virtualenv.
View jtrinstall.sh
#/bin/bash
# Centos 7 John the Ripper Installation
sudo yum -y group install "Development Tools"
git clone https://github.com/magnumripper/JohnTheRipper
cd JohnTheRipper/src
./configure && make
sudo make clean linux-x86-64
cd ../run/
./john --test
#password dictionnary download
View gist:8d69ee5a1ad95c254ef3d350296c101c
INFO global: Vagrant version: 1.8.6
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_OLD_ENV__system_version="10.11"
INFO global: VAGRANT_OLD_ENV_GEM_PATH="/Users/sunnz/.rvm/gems/ruby-2.3.0:/Users/sunnz/.rvm/gems/ruby-2.3.0@global"
INFO global: VAGRANT_OLD_ENV_rvm_bin_path="/Users/sunnz/.rvm/bin"
INFO global: VAGRANT_OLD_ENV_TERM_SESSION_ID="10116589-0DE6-40BF-96AD-4829D452F161"
INFO global: VAGRANT_OLD_ENV_USER="sunnz"
INFO global: VAGRANT_OLD_ENV_LOGNAME="sunnz"
View unmute.py
#!/usr/bin/env python3
import requests
import json
channel_id = ''
payload = {
'token': ''
}
View venv-run.sh
#!/bin/bash
set -e
DIR=$1
SCR=$2
VEN=$3
PATH="$DIR:$DIR/venv/bin:$PATH"
cd $DIR
source $DIR/$VEN/bin/activate
$DIR/$SCR
View dovecot.patch
diff -r -u a/conf.d/10-auth.conf b/conf.d/10-auth.conf
--- a/conf.d/10-auth.conf 2015-09-11 03:41:57.000000000 +1000
+++ b/conf.d/10-auth.conf 2015-10-09 16:47:00.000000000 +1100
@@ -7,7 +7,7 @@
# matches the local IP (ie. you're connecting from the same computer), the
# connection is considered secure and plaintext authentication is allowed.
# See also ssl=required setting.
-#disable_plaintext_auth = yes
+disable_plaintext_auth = no
View font-el7.sh
#!/usr/bin/bash
set -e
# set up nux-dextop repo to install font packages. skip if this repo had already set up.
# can be done by either rpm or yum app.
# /usr/bin/sudo /usr/bin/rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
/usr/bin/sudo /usr/bin/yum localinstall http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
# disable nux-dextop by default and only enable it as needed as part of running yum.
View puppet.conf
[main]
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet
# Where SSL certificates are kept.
View solr-tomcat.sh
#!/bin/bash
TOMCAT_TGZ=/usr/local/src/apache-tomcat-7.0.59.tar.gz
SOLR_SRC=/usr/local/src/solr-4.10.3
SOLR_WAR=/usr/local/src/solr-4.10.3/dist/solr-4.10.3.war
DRUPALSOLR_SRC=/usr/local/src/search_api_solr.git/solr-conf/4.x
set -e
sudo apt-get update
View install-composer-osx.sh
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer