Skip to content

Instantly share code, notes, and snippets.

Gie-Art gieart87

Block or report user

Report or block gieart87

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
gieart87 / gist:6ac5324436b5b5b60ec1c164e9fc6464
Created Mar 27, 2017
Download All Web Pages from a Website Using wget
View gist:6ac5324436b5b5b60ec1c164e9fc6464
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --random-wait --domains --no-parent
gieart87 / gist:bfee0b0b78c58a7f3f23ee754be0a6f0
Created Mar 22, 2017
Fixing Error only_full_group_by when executing a query grouping in MySql
View gist:bfee0b0b78c58a7f3f23ee754be0a6f0
# ... other stuff will probably be here
gieart87 / pubnub_client.html
Created Mar 14, 2017
Sample Client Subscriber PubNub Realtime Notification
View pubnub_client.html
<!doctype html>
<title>PubNub Simple Chat Room Demo</title>
<script src=""></script>
<script type="text/javascript" src=""></script>
<link rel="stylesheet" type="text/css" href="">
gieart87 / default
Created Feb 20, 2017
Setting Virtual Host (Nginx + PHP7) on Mac OSX El Capitan
View default
server {
listen 80;
server_name localhost;
root /Users/user/gieart/nginx;
access_log /usr/local/etc/nginx/logs/default.access.log;
location / {
index index.html index.htm index.php;
gieart87 / codeigniter.conf
Last active Nov 16, 2018
Nginx Virtual Host Config for CodeIgniter 3.x in Mac / OSX Sierra
View codeigniter.conf
server {
listen 80;
server_name localhost;
root /Users/user/html/codeigniter/;
location / {
try_files $uri $uri/ /index.php;
location ~ \.php$ {
gieart87 / gist:69c781700267fa314bfcb4259d6e5869
Created Aug 9, 2016
Rails : Override Mime Type and Respond Default Format in Controller
View gist:69c781700267fa314bfcb4259d6e5869
# force as xml when params[:format] isn't present
request.format = 'xml'.to_sym if params[:format].nil?
View gist:585d5f8adac8ee16abd3
"message": "Not Found",
"url": "/bot/viglink/cakeviglink/api/categories.json?page=2",
"code": 404,
"trace": [
"file": "/var/www/html/bot/viglink/cakeviglink/vendor/cakephp/cakephp/src/Controller/Controller.php",
"line": 688,
"function": "paginate",
"class": "Cake\\Controller\\Component\\PaginatorComponent",
gieart87 / config
Created Feb 21, 2016
Deploy Rails App in Sub Directory with Nginx + Ubuntu 14.04
View config
server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
passenger_enabled on;
rails_env development;
root /var/www/rails/my_app/public;
gieart87 /
Created Jan 26, 2016
Backup MySQL databases into separated files and exclude some databases defined
rm "$OUTPUT/*gz" > /dev/null 2>&1
databases=`mysql --user=$USER --password=$PASSWORD -e "SHOW DATABASES;" | tr -d "| " | grep -v Database`
gieart87 / pagination.ctp
Created Jul 2, 2012 — forked from slywalker/pagination.ctp
pagination element for CakePHP on twitter bootstrap
View pagination.ctp
if (!isset($modules)) {
$modulus = 11;
if (!isset($model)) {
$models = ClassRegistry::keys();
$model = Inflector::camelize(current($models));
<div class="pagination">
You can’t perform that action at this time.