Skip to content

Instantly share code, notes, and snippets.

@dev-ext
dev-ext / setup.sh
Last active November 4, 2016 17:15
Install lampstack on ubuntu 15.10
# Install lamp sack on ubuntu 15.10
sudo apt-get update
sudo apt-get install -y apache2
sudo apt-get install -y mysql-server php5-mysql
sudo service mysql status
sudo apt-get install -y phpmyadmin
sudo service apache2 restart
## Install wp cli
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
@dev-ext
dev-ext / readme.md
Created August 16, 2016 17:32
Install node js with package manger
@dev-ext
dev-ext / readme.md
Last active August 12, 2016 18:55
How to install Google Chrome?
  1. Add Key: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

  2. Set repository: sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

  3. Install package:

sudo apt-get update sudo apt-get install google-chrome-stable

[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
<?php
/*
* Converts CSV to JSON
* Example uses Google Spreadsheet CSV feed
* csvToArray function I think I found on php.net
*/
header('Content-type: application/json');
// Set your CSV feed
@dev-ext
dev-ext / wp_plugin_list.md
Last active August 29, 2015 14:04
wp_plugin_list
@dev-ext
dev-ext / CSSPlugins
Last active August 29, 2015 14:03
Mostpopular Plugins
## Animation Plugin
//cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.0/animate.min.css
@dev-ext
dev-ext / JqueryTabmodule.js
Last active August 29, 2015 14:03
javascript code snippet
site.tabbed = function () {
var s = {};
s.tabcont = jQuery(".tab_content");
s.tabtitle = jQuery(".tab_title");
s.tabtitle.click(function(event){
event.preventDefault();
s.curritem = jQuery(this).attr("href");
s.tabcont.hide();
jQuery(s.curritem).show();
s.tabtitle.removeClass('active');
@dev-ext
dev-ext / 0_reuse_code.js
Created July 2, 2014 09:14
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