Skip to content

Instantly share code, notes, and snippets.

View marczhermo's full-sized avatar

Marco Hermo marczhermo

  • New Zealand
View GitHub Profile
@marczhermo
marczhermo / update_curl.sh
Created July 10, 2017 10:05 — forked from fideloper/update_curl.sh
Update curl on Ubuntu 14.04
#! /usr/bin/env bash
# Install any build dependencies needed for curl
sudo apt-get build-dep curl
# Get latest (as of Feb 25, 2016) libcurl
mkdir ~/curl
cd ~/curl
wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2
tar -xvjf curl-7.50.2.tar.bz2
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"repositories": [
{
"type": "vcs",
"url": "/home/marcz/Code/opensource/NeatyHTML"
@marczhermo
marczhermo / .vimrc
Last active August 29, 2015 14:22 — forked from JeffreyWay/.vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
//
// SmoothScroll for websites v1.3.8 (Balazs Galambosi)
// Licensed under the terms of the MIT license.
//
// You may use it in your theme if you credit me.
// It is also free to use on any individual website.
//
// Exception:
// The only restriction would be not to publish any
// extension for browsers or native application
@marczhermo
marczhermo / phpstorm.vmoptions
Created October 10, 2014 23:18
phpstorm use opengl
-Dawt.useSystemAAFontSettings=lcd
-Dawt.java2d.opengl=true
@marczhermo
marczhermo / Default.sublime-keymap
Last active August 29, 2015 14:05
Sublime Preferences
[
{ "keys": ["ctrl+alt+n"], "command": "advanced_new_file_new"},
{ "keys": ["shift+ctrl+alt+n"], "command": "advanced_new_file_new", "args": {"is_python": true}},
{
"keys": ["tab"],
"command": "insert",
"args": {"characters": "\t"},
"context": [{
"key": "setting.anf_panel"
}]
/*!
* Grunt
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev
*/
module.exports = function(grunt) {
grunt.initConfig({
// Sass
@marczhermo
marczhermo / bin.bash
Created July 29, 2014 22:25
bash with -x
I don't know what's causing this problem in particular, however in general if you're having troubles with a script (such as an init script) it's worth running it under a shell with the -x option (eg /bin/bash -x /etc/init.d/php5-fpm start), which will print out a full trace of the script's execution, which will almost certainly make it obvious what's going wrong.
@marczhermo
marczhermo / android.gist
Created July 15, 2014 05:44
gist via android
phonegap create --name "Test App" --id "com.phonegap.test-app" testApp
Then delete the ff inside www
css folder
img folder
js folder
index.html file
paste you code inside www
update index.html and add script code:
<script type="text/javascript" src="cordova.js"></script>
cordova platforms add android
$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][$i]['AllowDeny']['rules'][] = 'allow % from 127.0.0.1';//can be your server's ip and then tunnel
$cfg['Servers'][$i]['AllowDeny']['rules'][] = 'deny % from all';