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 | |
## Copyright (C) 2015 Cerebral Gardens http://www.cerebralgardens.com/ | |
## | |
## Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
## software and associated documentation files (the "Software"), to deal in the Software | |
## without restriction, including without limitation the rights to use, copy, modify, | |
## merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
## permit persons to whom the Software is furnished to do so, subject to the following | |
## conditions: |
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
// | |
// LoadImage.h | |
// AssetsFromPDF | |
// | |
// Created by Jeffrey Sambells on 2012-03-02. | |
// | |
#import <Foundation/Foundation.h> | |
@interface LoadImage : NSObject |
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 | |
# bisa pake kek gini juga kalo mau versi lain nya: /bin/sh oracle_JDK.sh <V> <rpm|tar> | |
# V: default 8 | |
# rpm | |
V="8" | |
EXT="rpm" | |
if [ -n "$1" ]; then |
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 | |
PGHOST="8.0.6.13" | |
PGUSER="masbog" | |
PGDB="masdb" | |
PGVERSION="9.4" | |
FILENAME="/tmp/dbdump/$(date '+%A-%M-%m-%Y-%T.dump')" | |
STARTTIME="START AT $(date '+%A-%M-%m-%Y-%T')" | |
echo "removing old data rm -f /tmp/dbdump/*" | |
rm -f /tmp/dbdump/* |
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 | |
### VARIABLES ### | |
PRE_PACK="openssl-devel pcre-devel make gcc" | |
VER="1.5.1" | |
# Setup Colours | |
black='\E[30;40m' | |
red='\E[31;40m' |
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/sh | |
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf | |
echo "net.ipv6.conf.default.disable_ipv6" = 1 >> /etc/sysctl.conf | |
echo "IPV6INIT=no" >> /etc/sysconfig/network | |
service ip6tables stop | |
chkconfig ip6tables off | |
echo "install ipv6 /bin/true" > /etc/modprobe.d/ipv6_disabled.conf | |
echo "PLEASE REBOOT." |
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/sh | |
# | |
# nginx - this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /opt/nginx/conf/nginx.conf | |
# config: /etc/sysconfig/nginx |
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
mkdir -p /usr/src/nginx_build && cd /usr/src/nginx_build && | |
yum groupinstall 'Development Tools' -y && yum install zlib zlib-devel -y && | |
curl -O http://nginx.org/download/nginx-1.7.7.tar.gz && | |
tar xzvf ./nginx-1.7.7.tar.gz && rm -f ./nginx-1.7.7.tar.gz && | |
curl -O http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.gz && | |
tar xzvf pcre-8.36.tar.gz && rm -f ./pcre-8.36.tar.gz && | |
curl -O http://www.openssl.org/source/openssl-1.0.1j.tar.gz && | |
tar xzvf openssl-1.0.1j.tar.gz && rm -f openssl-1.0.1j.tar.gz && | |
curl -O http://luajit.org/download/LuaJIT-2.0.3.tar.gz && | |
tar xvf LuaJIT-2.0.3.tar.gz && cd LuaJIT-2.0.3 && |
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/sh | |
echo "Input your iDevice ip address :" | |
read ipaddress | |
echo "create temporary directory at your desktop" | |
mkdir -p ~/Desktop/CydiaFileInstalls | |
echo "downloading Cydia" | |
cd ~/Desktop/CydiaFileInstalls && { curl -O http://cache.saurik.com/debs/cydia_1.1.13_iphoneos-arm.deb ; cd -; } | |
cd ~/Desktop/CydiaFileInstalls && { curl -O http://apt.saurik.com/debs/cydia-lproj_1.1.12_iphoneos-arm.deb ; cd -; } | |
ls -la ~/Desktop/CydiaFileInstalls | |
echo "default ssh password at your iphone is 'alpine' without quote" |
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 | |
# slave ip server is 10.10.10.10 | |
bucardo install --piddir=/tmp | |
bucardo add database db_master dbname=database_test | |
bucardo del database db_master | |
bucardo add database db_master dbname=database_test addalltables addallsequences | |
bucardo add database db_slave dbname=database_test host=10.10.10.10 addalltables addallsequences | |
bucardo add all table --herd=db_master_to_db_slave db=db_master | |
bucardo add all sequence --herd=db_master_to_db_slave db=db_master | |
bucardo add all table --herd=db_slave_to_db_master db=db_slave |