Skip to content

Instantly share code, notes, and snippets.

@Drewzar
Drewzar / gist:9497094
Created March 11, 2014 23:19
Error on Web
$ /mnt/logstash/bin/logstash --config /etc/logstash/logstash.conf --filterworkers 1 --log /mnt/logstash/logstash.log web
LoadError: no such file to load -- rack
require at org/jruby/RubyKernel.java:1085
require at file:/mnt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
require at file:/mnt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53
require at /mnt/logstash/lib/logstash/JRUBY-6970.rb:27
(root) at /mnt/logstash/vendor/bundle/jruby/1.9/gems/ftw-0.0.39/lib/rack/handler/ftw.rb:1
require at org/jruby/RubyKernel.java:1085
require at file:/mnt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:135
require at file:/mnt/logstash/vendor/jar/jruby-complete-1.7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:133
[15:16]<skalnik> Slava has postmated a McFeast to the office
<skalnik> he starts with the McChicken
<skalnik> He has pulled out the fries and opened the habanero ranch sauce
<skalnik> what will he go for
<skalnik> he has discovered has normal rance as well
<skalnik> ranch*
<skalnik> hes eating the fries out of the bag
[15:20]<skalnik> and removing sauces
<skalnik> hes eating the fries
<skalnik> dipping them into the habanero ranch sauce
<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.