Skip to content

Instantly share code, notes, and snippets.

View od3n's full-sized avatar
🎯
Focusing

Salahuddin Hairai od3n

🎯
Focusing
View GitHub Profile
@od3n
od3n / LEMP-ubuntu.sh
Last active May 11, 2019 00:02
LEMP Stack Installation Bash Script for Ubuntu 14.0.4
#!/usr/bin/env bash
sudo add-apt-repository ppa:ondrej/php
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get install -y python-software-properties
@od3n
od3n / nginx_basics.md
Created February 28, 2016 03:04 — forked from leommoore/nginx_basics.md
Nginx Basics

#Nginx Basics for Ubuntu

Please see http://wiki.nginx.org/Main for more information. See http://arstechnica.com/gadgets/2012/11/how-to-set-up-a-safe-and-secure-web-server/ for a tutorial on how to install Nginx.

##Installation To install, you can install the version which is in the standard Ubuntu repositories but it is normally quite old and will not have the latest security patches. The best way is to update the repositories first:

apt-get update
apt-get install python-software-properties

apt-get upgrade

@od3n
od3n / unifi.rb
Created January 13, 2016 16:12
Check Unifi availability
#!/usr/bin/env ruby
require "capybara"
require "capybara-webkit"
Capybara.configure do |config|
config.run_server = false
config.default_driver = :webkit
end
@od3n
od3n / fix.php
Last active December 13, 2015 10:49
Search box
<?php
$output = '<label for="mod-finder-searchword">Carian </label><input name="searchword" id="mod-search-searchword" maxlengh="';
echo $output;
?>
@od3n
od3n / List.md
Created December 13, 2015 04:38 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@od3n
od3n / README.md
Last active August 29, 2015 14:18

Step 0:

Start downloading the install files from Oracle

Step 1:

Create a blank CentOs 6.5 instance

Convert to Oracle Linux: (source)

curl -O https://linux.oracle.com/switch/centos2ol.sh 
sh centos2ol.sh
@od3n
od3n / symfony.conf
Created November 29, 2014 10:24
Symfony2 Apache configuration
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /symfony/public
DirectoryIndex app_dev.php
ErrorLog /var/log/apache2/default-error_log
CustomLog /var/log/apache2/default-access_log common
<Directory /symfony/public>
AllowOverride All
require all granted
@od3n
od3n / .htaccess
Created November 29, 2014 10:15
Symfony2 development .htaccess
# Use the front controller as index file. It serves as a fallback solution when
# every other rewrite/redirect fails (e.g. in an aliased environment without
# mod_rewrite). Additionally, this reduces the matching process for the
# start page (path "/") because otherwise Apache will apply the rewriting rules
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl).
DirectoryIndex app_dev.php
<IfModule mod_rewrite.c>
RewriteEngine On
{% block collection_widget %}
{% spaceless %}
<div class="collection">
{% if prototype is defined %}
{% set attr = attr|merge({'data-prototype': block('collection_item_widget') }) %}
{% endif %}
<div {{ block('widget_container_attributes') }}>
{{ form_errors(form) }}
<ul>
{% for rows in form %}