Skip to content

Instantly share code, notes, and snippets.

View ron4stoppable's full-sized avatar
😎

Rohan Shewale ron4stoppable

😎
View GitHub Profile
@ron4stoppable
ron4stoppable / moz-webkit.css
Created July 30, 2018 18:53 — forked from nathansmith/moz-webkit.css
Target Firefox and WebKit via hacky CSS.
/*
Read more here:
https://developer.mozilla.org/en/CSS/@-moz-document
For more browser-specific hacks:
http://paulirish.com/2009/browser-specific-css-hacks
*/
@-moz-document url-prefix() {
/* Put your Firefox specific code here. */
@ron4stoppable
ron4stoppable / db-connect-test.php
Last active April 28, 2016 13:36 — forked from chales/db-connect-test.php
Script for a quick PHP MySQL DB connection test.
<?php
# $ php -f db-connect-test.php
# a quick and easy script for db connectivity
$dbname = 'name'; // DB name
$dbuser = 'user'; // user name
$dbpass = 'pass'; // password
$dbhost = 'host'; // host
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");
@ron4stoppable
ron4stoppable / Migration Create Sessions
Last active June 28, 2018 11:07 — forked from harris21/Migration Create Sessions
Create CodeIgniter Sessions Migration
class Migration_Create_Sessions extends CI_Migration {
// The session table structure changed for CI 3.0
public function up()
{
$fields = array(
'id VARCHAR(40) DEFAULT \'0\' NOT NULL',
'ip_address VARCHAR(45) DEFAULT \'0\' NOT NULL',
'timestamp INT(10) unsigned DEFAULT 0 NOT NULL',
'data blob NOT NULL'
/* Body ------------------------------------------------------------ */
::-moz-selection,
::selection {
background-color: #600CAC;
color: #fff;
}
/* this will not work */