Skip to content

Instantly share code, notes, and snippets.

View fayland's full-sized avatar

Fayland Lam fayland

View GitHub Profile
@fayland
fayland / haproxy.service
Created August 23, 2020 08:36
haproxy.service
[Unit]
Description=HAProxy Load Balancer
Documentation=man:haproxy(1)
Documentation=file:/usr/share/doc/haproxy/configuration.txt.gz
After=network-online.target rsyslog.service
Wants=network-online.target
[Service]
EnvironmentFile=-/etc/default/haproxy
Environment="CONFIG=/etc/haproxy/haproxy.cfg" "PIDFILE=/run/haproxy.pid"
➜ perl-Crypt-OpenSSL-VerifyX509 git:(master) ✗ gitdiff
diff --git a/Makefile.PL b/Makefile.PL
index c2d26d3..aa85a4e 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -51,9 +51,12 @@ if (-d "/usr/include/openssl") {
} elsif (-d "/usr/local/ssl/include") {
cc_inc_paths('/usr/local/ssl/include');
cc_lib_paths('/usr/local/ssl/lib');
+} elsif (-d "/usr/local/opt/openssl/include") {
#!/usr/bin/env perl
use Mojolicious::Lite;
use Mojo::Redis2;
use Scalar::Util;
helper redis => sub { shift->stash->{redis} ||= Mojo::Redis2->new(
url => 'redis://127.0.0.1:6379/1'
); };
@fayland
fayland / test.txt
Created October 17, 2015 04:52
Test from perl6 WebServices::GitHub::Gist
Created on Instant:1445057596.540210
@fayland
fayland / test.txt
Created October 17, 2015 04:51
Test from perl6 WebServices::GitHub::Gist
Created on Instant:1445057503.279866
@fayland
fayland / test.txt
Created October 17, 2015 04:49
Test from perl6 WebServices::GitHub::Gist
Created on Instant:1445057426.585477
@fayland
fayland / gist:c3aba0bac46a9e4c9ede
Created October 18, 2014 02:49
yosemite php54
~ brew reinstall php54 --homebrew-apxs
==> Reinstalling php54 with --homebrew-apxs
==> Downloading http://www.php.net/get/php-5.4.33.tar.bz2/from/this/mirror
######################################################################## 100.0%
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php54/5.4.33 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.4 --with-config-file-path=/usr/loca
3. Apache was not built using --enable-so (the apxs usage page is displayed)
@fayland
fayland / file1.txt
Created October 8, 2014 00:09
the description for this gist
String file contents
@fayland
fayland / debug.log
Created August 31, 2014 02:02
pubnub
➜ PubNub-PubSub git:(master) ✗ perl examples/subscribe.pl
<<<<<<
HTTP/1.1 200 OK
Date: Sun, 31 Aug 2014 02:00:57 GMT
Content-Type: text/javascript; charset="UTF-8"
Content-Length: 24
Connection: keep-alive
Cache-Control: no-cache
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET
@fayland
fayland / gwt
Created September 19, 2012 14:12
This file has been truncated, but you can view the full file.
$wnd.com_google_ads_apps_targetingideas_client_TargetingIdeas.runAsyncCallback10("function Hd(){}\nfunction $d(){}\nfunction Ff(){}\nfunction Fs(){}\nfunction hs(){}\nfunction rs(){}\nfunction Ws(){}\nfunction ok(){}\nfunction ul(){}\nfunction Hl(){}\nfunction vm(){}\nfunction Yr(){}\nfunction Pt(){}\nfunction Ut(){}\nfunction gx(){}\nfunction ix(){}\nfunction qx(){}\nfunction Xx(){}\nfunction dy(){}\nfunction hz(){}\nfunction lz(){}\nfunction nz(){}\nfunction pz(){}\nfunction rz(){}\nfunction tz(){}\nfunction tA(){}\nfunction yA(){}\nfunction DA(){}\nfunction IA(){}\nfunction NA(){}\nfunction SA(){}\nfunction uC(){}\nfunction xC(){}\nfunction HC(){}\nfunction xD(){}\nfunction uG(){}\nfunction zG(){}\nfunction IG(){}\nfunction MG(){}\nfunction VG(){}\nfunction dH(){}\nfunction aI(){}\nfunction YI(){}\nfunction hJ(){}\nfunction lJ(){}\nfunction TJ(){}\nfunction AK(){}\nfunction JK(){}\nfunction vL(){}\nfunction SL(){}\nfunction _L(){}\nfunction iM(){}\nfunction RM(){}\nfunction wN(){}\nfunction XN(){}\nfunctio