Skip to content

Instantly share code, notes, and snippets.

@xXPhenomXx
xXPhenomXx / golang_setup
Last active November 4, 2018 14:09
Go Setup on Ubuntu & Revel
** To install Golang on Ubuntu 17.xx server **
sudo add-apt-repository ppa:gophers/archive
sudo apt-get update
sudo apt-get install golang-1.9-go
export PATH=$PATH:/usr/lib/go-1.9/bin
go version (To verify its mapped correctly, should see something like: go version go1.9.2 linux/amd64)
* make a directory for your go applications, I use /home/apps/go
export GOPATH=/home/apps/go
(Now from inside your /home/apps/go folder you can start creating your go apps)
@xXPhenomXx
xXPhenomXx / cloudSettings
Last active September 8, 2017 14:12
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-09-08T14:12:44.873Z","extensionVersion":"v2.8.3"}
@xXPhenomXx
xXPhenomXx / middleware.py
Created April 20, 2016 15:24 — forked from Miserlou/middleware.py
Django Profiler
# Orignal version taken from http://www.djangosnippets.org/snippets/186/
# Original author: udfalkso
# Modified by: Shwagroo Team and Gun.io
import sys
import os
import re
import hotshot, hotshot.stats
import tempfile
import StringIO
@xXPhenomXx
xXPhenomXx / email_multi_related.py
Last active September 10, 2015 14:15
image email attachments using Django
@xXPhenomXx
xXPhenomXx / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
--- /usr/lib64/pypy-1.9/lib-python/2.7/distutils/unixccompiler.py 2012-06-15 11:33:20.000000000 -0700
+++ /tmp/unixccompiler.py 2013-06-17 12:39:10.212783192 -0700
@@ -297,7 +297,9 @@
# this time, there's no way to determine this information from
# the configuration data stored in the Python installation, so
# we use this hack.
- compiler = os.path.basename(sysconfig.get_config_var("CC"))
+ # XXX: http://bugs.python.org/issue14030
+ # compiler = os.path.basename(sysconfig.get_config_var("CC"))
+ compiler = os.path.basename(self.compiler[0])
#get root access
$su -
$ cd /tmp
#Remove old Ruby
$ yum remove ruby
# Install dependencies
$ yum groupinstall "Development Tools"
$ yum install zlib zlib-devel

Before you post an issue on laravel/framework...

Run though this damn checklist... Please!

  1. Search existing issues
  2. Have I run rm bootstrap/compiled.php?
  3. Have I run git pull {laravel remote name} develop?
  4. Have I run rm -rf vendor?
  5. Have I run composer update --no-dev?
  6. Have I tried turning it off and on again :P?
@xXPhenomXx
xXPhenomXx / base.jade
Created April 9, 2014 14:39
HTML5 boilerplate Jade
doctype html
html(class='no-js')
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
title
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')
//- Stylesheets
@xXPhenomXx
xXPhenomXx / .gitignore
Created March 27, 2014 17:43
Good Default .gitignore for Mac developers
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store?
ehthumbs.db