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
brew rm php56 && brew deps php56 | xargs brew rm | |
Uninstalling /usr/local/Cellar/php56/5.6.0... | |
Uninstalling /usr/local/Cellar/freetype/2.5.3_1... | |
Uninstalling /usr/local/Cellar/gettext/0.19.2... | |
Uninstalling /usr/local/Cellar/zlib/1.2.8... | |
Uninstalling /usr/local/Cellar/icu4c/53.1... | |
Uninstalling /usr/local/Cellar/jpeg/8d... | |
Uninstalling /usr/local/Cellar/libpng/1.6.13... | |
Uninstalling /usr/local/Cellar/libtool/2.4.2... | |
Uninstalling /usr/local/Cellar/unixodbc/2.3.2... |
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
$ brew doctor | |
Please note that these warnings are just used to help the Homebrew maintainers | |
with debugging if you file an issue. If everything you use Homebrew for is | |
working fine: please don't worry and just ignore them. Thanks! | |
Warning: Unbrewed dylibs were found in /usr/local/lib. | |
If you didn't put them there on purpose they could cause problems when | |
building Homebrew formulae, and may need to be deleted. | |
Unexpected dylibs: |
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
### Keybase proof | |
I hereby claim: | |
* I am Synchro on github. | |
* I am synchro (https://keybase.io/synchro) on keybase. | |
* I have a public key whose fingerprint is EC46 91BE 3D1E 19D7 DE28 E55F DE31 CD6E B646 AA24 | |
To claim this, I am signing this object: |
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 | |
set -e | |
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.73.tar.gz | |
tar -zxf mysql-5.1.73.tar.gz | |
cd mysql-5.1.73 | |
./configure '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-system-type=debian-linux-gnu' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-fast-mutexes' '--with-big-tables' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--without-readline' '--with-ssl' '--without-docs' '--with-extra-charsets=all' '--with-plugins=max' '--with-embedded-server' '--with-embedded-privilege-control' | |
make | |
sudo make install |
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 | |
# Change a user's UID and all files owned by them everywhere | |
# Syntax: chuid <from uid> <to uid> | |
# Example: chuid 1000 1001 | |
# <From uid> must exist; <to uid> must not exist | |
# usermod will fail if the <from uid> has any running processes | |
# - stopping them is left to you | |
# @author Marcus Bointon <https://gist.github.com/Synchro> | |
set -e |
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
sudo dtruss -e -c -f php -v | |
PID/THRD ELAPSD SYSCALL(args) = return | |
30865/0x8a875: 304 thread_selfid(0x0, 0x0, 0x0) = 567413 0 | |
30865/0x8a875: 6 csops(0x0, 0x0, 0x7FFF5B3161C8) = 0 0 | |
30865/0x8a875: 4 issetugid(0x0, 0x0, 0x7FFF5B3161C8) = 0 0 | |
30865/0x8a875: 7 shared_region_check_np(0x7FFF5B314108, 0x0, 0x7FFF5B3161C8) = 0 0 | |
30865/0x8a875: 42 stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x7FFF5B315298, 0x7FFF5B3161C8) = 0 0 | |
30865/0x8a875: 41 open("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x0, 0x0) = 3 0 | |
30865/0x8a875: 24 pread(0x3, "\312\376\272\276\0", 0x1000, 0x0) = 4096 0 | |
30865/0x8a875: 8 pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x1000) = 4096 0 |
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 | |
$dn = array( | |
'countryName' => 'UK', | |
'stateOrProvinceName' => 'Here', | |
'localityName' => 'There', | |
'organizationName' => 'PHP', | |
'organizationalUnitName' => 'PHPTest', | |
'commonName' => 'PHP Test', | |
'emailAddress' => 'php@example.com' | |
); |
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 | |
#Provides add-apt-repository | |
sudo apt-get install -y python-software-properties | |
#use jtimberman's chef ppa for installation | |
sudo add-apt-repository ppa:jtimberman/opschef | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
#This step asks for a chef server url to put in /etc/chef/client.rb | |
sudo apt-get install -y chef |
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 | |
/* | |
Folder structure: | |
/lib (fatfree files in here) | |
/temp | |
/ui (view templates) | |
/web (Doc root, static files and index.php) | |
If you're not using a .htaccess file, I found the default rewrites don't work in a vhost, had to change it to this: |
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 | |
### BEGIN INIT INFO | |
# Provides: logstash-shipper | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start daemon at boot time | |
# Description: Enable service provided by daemon. |
OlderNewer