Skip to content

Instantly share code, notes, and snippets.

View mrofi's full-sized avatar
🏠
work from home

Mokhamad Rofiudin mrofi

🏠
work from home
View GitHub Profile
@mrofi
mrofi / setup_selenium.sh
Created January 10, 2017 07:55 — forked from curtismcmullan/setup_selenium.sh
Setup Selenium Server on Ubuntu 14.04
#!/bin/bash
# Following the guide found at this page
# http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html
echo "\r\nUpdating system ...\r\n"
sudo apt-get update
# Create folder to place selenium in
#~/.config/sublime-text-3/Packages/User/Preferences.sublime-settings
{
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"caret_extra_width": 2,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"draw_white_space": "all",
"font_size": 9,
"highlight_line": true,
"ignored_packages":
@mrofi
mrofi / dhclient.conf
Last active September 1, 2019 02:22
DNS MASQ conf
#/etc/dhcp/dhclient.conf
prepend domain-name-servers 127.0.0.1;
@mrofi
mrofi / default
Created August 25, 2016 09:13
Set up Automatic Virtual Hosts with Nginx
#/etc/nginx/sites-available/default
server {
listen 80;
server_name ~^(www\.)?(?<sname>.+?).dev$;
root /home/mokhamad/html/suit/$sname/public;
location ~ /.well-known {
@mrofi
mrofi / capistrano_windows.textile
Created August 24, 2016 08:10
Cygwin + Ruby + RubyGems => Deploy with Capistrano from Windows
@mrofi
mrofi / index.html
Created August 19, 2016 08:08
Full with / height Iframe
<!DOCTYPE html>
<html>
<head>
<title>NUSP-2</title>
<style type="text/css" media="screen">
body,
html {
width: 100%;
height: 100%;
@mrofi
mrofi / visor-archivos-online.md
Created August 13, 2016 16:09 — forked from izazueta/visor-archivos-online.md
Google Docs Viewer & Office Web Apps Viewer

Google Docs Viewer

Only files under 25 MB can be previewed with the Google Drive viewer.

Google Drive viewer helps you preview over 16 different file types, listed below:

  • Image files (.JPEG, .PNG, .GIF, .TIFF, .BMP)
  • Video files (WebM, .MPEG4, .3GPP, .MOV, .AVI, .MPEGPS, .WMV, .FLV)
  • Text files (.TXT)
  • Markup/Code (.CSS, .HTML, .PHP, .C, .CPP, .H, .HPP, .JS)
  • Microsoft Word (.DOC and .DOCX)
@mrofi
mrofi / default.conf
Created June 2, 2016 21:06
NGINX Server Block
#BLOCKNAME
server {
listen 80;
server_name servername.com;
return 302 https://$server_name$request_uri;
}
server {
@mrofi
mrofi / deploy.php
Created June 2, 2016 15:03
Deployer Laravel Recipe
<?php
/*
* This file has been generated automatically.
* Please change the configuration for correct use deploy.
*/
require 'recipe/laravel.php';
define('REPO', 'git@bitbucket:foo/bar.git');
@mrofi
mrofi / deploy.rb
Created April 6, 2016 05:15
Caps deploy File
# config valid only for Capistrano 3.1
lock '3.4.0'
set :application, 'fooobar'
set :repo_url, '[email protected]:foo/bar.git'
# Default branch is :master
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
# Default deploy_to directory is /var/www/my_app