Skip to content

Instantly share code, notes, and snippets.

@Drewzar
Drewzar / Drunk-hello.txt
Created August 22, 2016 23:29 — forked from dusya/Drunk-hello.txt
Hello, I'm drunk
Hello, it's me
I'm just calling cause I've had a little bit too much to drink
At the bar, then the club
They say tequila's supposed to heal ya
But I'm feelin kinda queasy
Hello, can you hear me?
I'm standing in a crowded bathroom and I really have to pee
I might not make it to the stall
With all these people all around me, I'll have a puddle at my feet
<Muta_work> Hey, go create a bunch of gists.
ubuntu@phptest-dev-1100:~/php-5.3.27$ ./configure -help
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
--cache-file=FILE cache test results in FILE
--help print this message
--no-create do not create output files
--quiet, --silent do not print `checking...' messages
--version print the version of autoconf that created configure
Directory and file names:
ubuntu@phptest-dev-1100:~/php-5.3.27$ cat Makefile
srcdir = /home/ubuntu/php-5.3.27
builddir = /home/ubuntu/php-5.3.27
top_srcdir = /home/ubuntu/php-5.3.27
top_builddir = /home/ubuntu/php-5.3.27
EGREP = grep -E
SED = /bin/sed
CONFIGURE_COMMAND = './configure' '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--enable-fpm' '--disable-ipv6' '--with-openssl' '--with-zlib' '--enable-calendar' '--with-curl' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr/lib' '--enable-intl' '--with-ldap' '--enable-mbstring' '--with-mcrypt' '--with-mysql' '--with-mysqli' '--with-pdo-mysql' '--with-tidy' '--with-xmlrpc' '--with-xsl' '--enable-zip' '--with-pear' '--with-config-file-path=/etc/php/php.ini' '--with-config-file-scan-dir=/etc/php'
CONFIGURE_OPTIONS = '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--enable-fpm' '--disable-ipv6' '--with-openssl' '--with-zlib' '--enable-calendar' '--with-curl' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr/lib' '--enable-intl' '--with-ldap' '--enable-mbstring'
@Drewzar
Drewzar / gist:7163171
Created October 25, 2013 23:06
fucking php
usr/bin/ld: ext/intl/msgformat/msgformat_helpers.o: undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3'
/usr/bin/ld: note: '__gxx_personality_v0@@CXXABI_1.3' is defined in DSO /usr/lib/x86_64-linux-gnu/libstdc++.so.6 so try adding it to the linker command line
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
search(:users, 'groups:dev') do |u|
ssh_keys << u['ssh_keys']
end
search(:users, 'id:deploy') do |u|
home_dir = "/home/#{u['id']}"
user u['id'] do
uid u['uid']
gid u['gid']
@Drewzar
Drewzar / gist:5257932
Last active December 15, 2015 12:09 — forked from dstrctrng/gist:5257727
#!/bin/bash
#This will create a lucid docker image
# must been done from an ubuntu12.04 server as non-root
echo Installind debootstrap
sudo aptitude install debootstrap
echo Create boostrap
sudo debootstrap --arch amd64 --include=language-pack-en,aptitude lucid lucid http://archive.ubuntu.com/ubuntu/
echo Create policy
package "mysql-devel" do
package_name value_for_platform_family(
"rhel" => "MySQL-devel",
"debian" => "libmysqlclient-dev",
"default" => 'libmysqlclient-dev'
)
action :install
end
Purpose:
To migrate the emcee data out of the publisher mysql database, while continuing to maintain a current copy of that data in the Publisher database, with minimal downtime for both Publisher and Emcee.
Plan:
configure new emcee database to replicate only the emcee database to the publisher master database (into a different database name)
configure new emcee database to replicate all data to emcee slave.
  1. lol
  2. lol
  3. asdf