Skip to content

Instantly share code, notes, and snippets.

View fire's full-sized avatar

K. S. Ernest (iFire) Lee fire

View GitHub Profile
@fire
fire / gist:74e67c0141e72a73b239
Created December 28, 2014 21:25
Smartos Postgresxl #4
[admin@web01 /home/admin/postgres-xl/src/backend/pgxc/pool]$ make CFLAGS="-DXOPEN_SOURCE_EXTENDED"
gcc -DXOPEN_SOURCE_EXTENDED -I../../../../src/include -I/opt/local/include/libxml2 -I/opt/local/include -c -o execRemote.o execRemote.c
In file included from ../../../../src/include/pgxc/execRemote.h:26:0,
from execRemote.c:38:
../../../../src/include/pgxc/planner.h:224:13: error: storage class specified for parameter 'pgxc_query_contains_utility'
../../../../src/include/pgxc/planner.h:226:13: error: storage class specified for parameter 'pgxc_shippability_walker'
../../../../src/include/pgxc/planner.h:227:13: error: storage class specified for parameter 'pgxc_test_shippability_reason'
In file included from /usr/include/dirent.h:38:0,
from ../../../../src/include/storage/fd.h:41,
from ../../../../src/include/utils/resowner.h:22,
@fire
fire / Checked results
Last active August 29, 2015 14:12
Postgresql and system tzdata weirdness
-- Daylight saving time for timestamps beyond 32-bit time_t range.
SELECT '20500710 173201 Europe/Helsinki'::timestamptz; -- DST
timestamptz
------------------------------
Sun Jul 10 07:32:01 2050 PDT
(1 row)
SELECT '20500110 173201 Europe/Helsinki'::timestamptz; -- non-DST
timestamptz
@fire
fire / install.md
Last active August 29, 2015 14:12 — forked from surjikal/install.md
  1. Install JDK 1.8

  2. See if JAVA_HOME ENV variable is set to 1.8. If not, add this line in your ~/.bashrc:

    export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
    

    And apply the changes to your session:

source ~/.bashrc

@fire
fire / test.md
Last active August 29, 2015 14:13
apt-get install gparted quassel-client chromium 

install steam
install krita-lime
install additional drivers
sudo apt-get install adobe-flashplugin
sudo apt-get install vlc
sudo apt-get install ubuntu-restricted-extras libavcodec-extra-53
sudo apt-get install deluge
@fire
fire / test.md
Last active August 29, 2015 14:13

install go lang

go install bosun.org/cmd/bosun

nano dev.conf

smtpHost = mail.chibifire.com:25
emailFrom = [email protected]
#
# This file tells Git about engine files that never really belong in source control. They are usually build products, log
# files and intermediate files generated from a compiler or the engine runtime.
#
#
# NOTE:
# Paths that start with / match paths relative to the root (where the .gitignore file is)
# Paths that end with / will match a folder and all files under it (but not a regular file with no extension)
# Use * for wildcards. Wildcards stop at path separators
# Use ** for a wildcard that spans path separators
@fire
fire / serve.go
Last active August 29, 2015 14:14 — forked from paulmach/serve.go
/*
Serve is a very simple static file server in go
Usage:
-p="8100": port to serve on
-d=".": the directory of static files to host
Navigating to http://localhost:8100 will display the index.html or directory
listing file.
*/
package main
package main
import (
"fmt"
"net/http"
)
var urls = []string{
"http://pulsoconf.co/",
"http://golang.org/",
sudo apt-get install qttools5-dev
sudo apt-get install libpq-dev
sudo apt-get install libxml2-dev
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get install qtdeclarative5-dev qtbase5-private-dev qtdeclarative5-private-dev libqt5opengl5-dev qtdeclarative5-qtquick2-plugin
sudo apt-get install qtcreator qttools5-dev-tools
git clone #pgmodeler
#deploy
@fire
fire / tactic_apache_install.sh
Created February 3, 2015 08:13
TACTIC install on ubuntu 14.04
#!/bin/bash
#################################################
# description: Install Tactic 4.1 in Ubuntu 14.04
# date: 11-16-2014
# by: Daniel Bair
#################################################
tfile="TACTIC-4.1.0.v05.zip"
tdir="${tfile%\.*}"