Skip to content

Instantly share code, notes, and snippets.

R3TSU

Block or report user

Report or block R3TSU

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
@R3TSU
R3TSU / dabblet.css
Created Feb 18, 2014
Pass Container
View dabblet.css
/**
* Pass Container
*/
/*background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;*/
* {
box-sizing: border-box;
}
View install.sh
#!/usr/bin/env bash
echo ">>> Starting Install Script"
# Update
sudo apt-get update
# Install MySQL without prompt
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
@R3TSU
R3TSU / nginx.conf
Last active Sep 3, 2015 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View TileLayer.Common.js
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {
@R3TSU
R3TSU / dabblet.css
Created Jan 25, 2014
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
body{
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
font-size: 0;
letter-spacing: -1;
}
@R3TSU
R3TSU / nss.c
Created Nov 21, 2016
Cipher list constant
View nss.c
https://github.com/curl/curl/blob/master/lib/vtls/nss.c
http://www.theblog.ca/converting-php-curl-ssl-tls-cipher-names
static const cipher_s cipherlist[] = {
/* SSL2 cipher suites */
{"rc4", SSL_EN_RC4_128_WITH_MD5},
{"rc4-md5", SSL_EN_RC4_128_WITH_MD5},
{"rc4export", SSL_EN_RC4_128_EXPORT40_WITH_MD5},
{"rc2", SSL_EN_RC2_128_CBC_WITH_MD5},
{"rc2export", SSL_EN_RC2_128_CBC_EXPORT40_WITH_MD5},
@R3TSU
R3TSU / PHPExcel_Basics.md
Created Apr 12, 2017 — forked from r-sal/PHPExcel_Basics.md
PHPExcel Notes and code snippets
View PHPExcel_Basics.md

Basics

Creating a new PHPExcel Object.

    $this->PHPExcel = new PHPExcel();

Working with sheets

Creating a new sheet:

@R3TSU
R3TSU / README.md
Created Jun 22, 2017 — forked from oodavid/README.md
Deploy your site with git
View README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
    • apache's home directory is /var/www/
@R3TSU
R3TSU / Gulpfile
Created Aug 31, 2017 — forked from davidnknight/Gulpfile
A well structured gulpfile that performs CSS, JS, image and PHP tasks with an abstract config.
View Gulpfile
Specifically, this gruntfile will perform the following.
- CSS:
-- Compile SCSS
-- Add vendor prefixes for the last 10 browser versions
- JS:
-- Run scripts through jshint to detect errors and potential problems in code.
-- Compile scripts to your destination folder in their original state. Use these in development environments as they'll be easier to debug with as their code doesn't exist on 1 line, nor is it obfuscated.
-- Minify and concatenate scripts into one all.min.js. Uglify will also obfuscate code if you set mangle to true, leave as false if using AngularJS.
@R3TSU
R3TSU / date_loop.sh
Created May 16, 2018 — forked from chluehr/date_loop.sh
Bash: Loop over dates
View date_loop.sh
#!/bin/bash
now=`date +"%Y-%m-%d" -d "05/06/2012"`
end=`date +"%Y-%m-%d" -d "05/23/2012"`
while [ "$now" != "$end" ] ;
do
now=`date +"%Y-%m-%d" -d "$now + 1 day"`;
echo $now
done
You can’t perform that action at this time.