Skip to content

Instantly share code, notes, and snippets.

View ablyler's full-sized avatar

Andy Blyler ablyler

View GitHub Profile
@ablyler
ablyler / -
Last active July 26, 2023 19:17
This file has been truncated, but you can view the full file.
diff --git a/Makefile.global b/Makefile.global
index 3a5b1c2..7450162 100644
--- a/Makefile.global
+++ b/Makefile.global
@@ -13,6 +13,8 @@ all: $(all_targets)
build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
+build-binaries: $(PHP_BINARIES)
+
log.ts:197 ERR Cannot read property 'settingsGroups' of undefined: TypeError: Cannot read property 'settingsGroups' of undefined
at e.onConfigUpdate (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7793:700)
at file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7777:286
at c.fire (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:215:242)
at I.triggerConfigurationChange (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7314:319)
at I.onLocalUserConfigurationChanged (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7309:604)
at I.reloadLocalUserConfiguration (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:7306:892)
console.ts:137 [
@ablyler
ablyler / metar-alias.sh
Last active January 23, 2019 23:29
Create alias that outputs the current local METARs for the Ann Arbor, MI Area
alias metar="curl -s https://aviationweather.gov/adds/dataserver_current/httpparam\?dataSource\=metars\&requestType\=retrieve\&format\=xml\&stationString\=karb,kozw,kyip,kdtw,ktol,kttf,klan,koeb,kjxn,kgrr,kphn,kazo,kmui\&hoursBeforeNow\=1\&mostRecentForEachStation\=true | xml2 | grep 'raw_text' | awk -F\\= '{ print \$2 }'"
@ablyler
ablyler / taf-alias.sh
Last active January 23, 2019 23:29
Creates alias that outputs the current local TAFs
alias taf="curl -s https://aviationweather.gov/adds/dataserver_current/httpparam\?dataSource\=tafs\&requestType\=retrieve\&format\=xml\&stationString\=karb,kdtw,kjxn,klan,kozw,kyip,kttf,konz,kdet,ktol,kgrr,kbtl,kmui\&hoursBeforeNow\=1\&mostRecentForEachStation\=true | xml2 | grep 'raw_text' | sed 's/\/response\/data\/TAF\/raw_text\=//' | sort"
@ablyler
ablyler / mysql-convert-myisam-to-innodb.sh
Created December 21, 2011 23:08
Convert all MyISAM tables in all databases on a server to InnoDB
#!/bin/bash
for t in $(mysql --batch --column-names=false -e "select concat(TABLE_SCHEMA, '.', TABLE_NAME) from INFORMATION_SCHEMA.TABLES where ENGINE = 'MyISAM' and TABLE_TYPE = 'BASE TABLE' and TABLE_SCHEMA <> 'mysql'" mysql); do
mysql -e "alter table $t type=InnoDB";
done

Keybase proof

I hereby claim:

  • I am ablyler on github.
  • I am andyblyler (https://keybase.io/andyblyler) on keybase.
  • I have a public key ASCEmfl0Q2B_HAmS4nVU2-IoDWj8CSCxCf92RMdBc8RSdgo

To claim this, I am signing this object:

diff --git a/Makefile.global b/Makefile.global
index b30c318..e8dd419 100644
--- a/Makefile.global
+++ b/Makefile.global
@@ -20,7 +20,7 @@ libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
-@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
- $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
+ $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(MH_BUNDLE_FLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
@ablyler
ablyler / 0001-add-percona-server-5.6-ebuild-and-required-eclass-ch.patch
Created September 4, 2013 12:27
Updated the eclass from the MySQL overlay to include the ability to parse the full Percona version from the ebuild filename. I also make an update that fixes the URL, so that the ebuilds will continue to work after they are no longer in the LATEST directory on the Percona site.
From 77c607e6348c4cd603ffdd61356b0161d3a15eca Mon Sep 17 00:00:00 2001
From: Andy Blyler <andy@blyler.cc>
Date: Wed, 21 Aug 2013 13:26:02 +0000
Subject: [PATCH 1/3] add percona-server 5.6 ebuild and required eclass changes
---
dev-db/percona-server/Manifest | 1 +
dev-db/percona-server/files/my.cnf-5.6 | 153 +++++++++++++++++++++
.../percona-server/percona-server-5.6.12.4.ebuild | 129 +++++++++++++++++
eclass/mysql-v2.eclass | 7 +-
@ablyler
ablyler / gist:6365755
Created August 28, 2013 12:58
php55-zookeeper.rb can't find headers
Andys-MacBook-Pro :: ~/Code/homebrew-php ‹master*› » brew install Formula/php55-zookeeper.rb
==> Installing php55-zookeeper dependency: zookeeper
==> Downloading http://www.apache.org/dyn/closer.cgi?path=zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz
==> Best Mirror http://mirror.reverse.net/pub/apache/zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz
######################################################################## 100.0%
🍺 /usr/local/Cellar/zookeeper/3.4.5: 193 files, 12M, built in 8 seconds
==> Installing php55-zookeeper
==> Downloading http://pecl.php.net/get/zookeeper-0.2.1.tgz
######################################################################## 100.0%
==> /usr/local/Cellar/php55/5.5.3/bin/phpize
diff --git a/memcached-2.1.0/ChangeLog b/memcached-2.1.0/ChangeLog
index 9a7280d..3502e19 100644
--- a/memcached-2.1.0/ChangeLog
+++ b/memcached-2.1.0/ChangeLog
@@ -41,8 +41,6 @@ Version 2.0.0b2
Version 2.0.0b1
---------------
- * Change the return value for non-existing keys to be NULL rather than
- 'false', affects simple get only