Skip to content

Instantly share code, notes, and snippets.

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?
#get root access
$su -
$ cd /tmp
#Remove old Ruby
$ yum remove ruby
# Install dependencies
$ yum groupinstall "Development Tools"
$ yum install zlib zlib-devel
--- /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])
@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
@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 / time_format.go
Created February 18, 2018 21:45 — forked from ik5/time_format.go
A full example of all possible time formats in Golang
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println("Times: ")
t := time.Now()
@xXPhenomXx
xXPhenomXx / GoMgoSample-1.go
Created March 8, 2018 15:17 — forked from 345161974/GoMgoSample-1.go
Sample Go and MGO example
type (
// BuoyCondition contains information for an individual station.
BuoyCondition struct {
WindSpeed float64 `bson:"wind_speed_milehour"`
WindDirection int `bson:"wind_direction_degnorth"`
WindGust float64 `bson:"gust_wind_speed_milehour"`
}
// BuoyLocation contains the buoy's location.
BuoyLocation struct {
@xXPhenomXx
xXPhenomXx / nginx-tls.conf
Created June 14, 2018 18:16 — forked from gavinhungry/nginx-tls.conf
Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Name: nginx-tls.conf
# Auth: Gavin Lloyd <gavinhungry@gmail.com>
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related
# to SSL/TLS are omitted here.
#
# Example: https://www.ssllabs.com/ssltest/analyze.html?d=gavinhungry.io
#
@xXPhenomXx
xXPhenomXx / server.conf
Created June 14, 2018 18:16 — forked from timcheadle/server.conf
SSL nginx config example
server {
listen 80;
server_name www.example.com example.com;
# Redirect all traffic to SSL
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443 ssl default_server;
@xXPhenomXx
xXPhenomXx / README-Template.md
Created June 19, 2018 14:41 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites