Skip to content

Instantly share code, notes, and snippets.

View rmzamora's full-sized avatar

mell zamora rmzamora

  • codebrewery.ph
  • Philippines
View GitHub Profile
@rmzamora
rmzamora / sandbox-vagrantfile
Last active August 23, 2016 03:16
Vagrant File for VirtualBox
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@rmzamora
rmzamora / zookeeper.sh
Created July 8, 2016 05:49
zookeeper start/stop
#! /bin/sh
### BEGIN INIT INFO
# Provides: confluent-zookepper
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: a distributed commit log.
# Description: Apache Kafka is publish-subscribe messaging rethought
# as a distributed commit log.
@rmzamora
rmzamora / kafka.sh
Last active November 18, 2023 19:00
kafka start/stop script
#! /bin/sh
### BEGIN INIT INFO
# Provides: kafka
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: a distributed commit log.
# Description: Apache Kafka is publish-subscribe messaging rethought
# as a distributed commit log.
@rmzamora
rmzamora / symfony2-apache-vhost
Created January 16, 2014 04:56
Apache vhost for symfony2 apps
<VirtualHost *:80>
ServerName www.domain.com.localhost
ServerAlias domain.com.localhost
ServerAdmin webmaster@localhost
DocumentRoot /home/user/www/project/web
<Directory /home/user/www/project/web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
@rmzamora
rmzamora / osx-apache-permission
Created January 15, 2014 05:46
OSX adding apache permission
sudo chmod -R +a '_www allow read,write,delete,add_file,add_subdirectory,file_inherit,directory_inherit' <dir>
# Installing A self-signed certificate on Apache/Linux
## Install Mod SSL
---
You have to be sure that Apache and Mod SSL are installed on the server. You can install both with one command:
yum install mod_ssl
## New Directory
---
Create a new directory where we will store the server key and certificate
@rmzamora
rmzamora / rz_linux_freeup_kernel_boot
Created December 2, 2013 04:57
Free up disk space on /boot.
This should give you an overview of the kernel related packages that rpm is aware off:
Code:
rpm -qa | grep kernel
You can remove them using:
Code:
rpm -e kernel_package_name
@rmzamora
rmzamora / rz_jpackage_repo_config
Last active December 29, 2015 23:49
jPackage Repo Configuration
[jpackage-6.0-generic]
name=JPackage 6.0, for generic
#baseurl=MIRROR/6.0/generic/free/
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=6.0
gpgcheck=0
enabled=0
#[jpackage-generic-updates]
#name=JPackage (free), generic
#mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=6.0-updates
@rmzamora
rmzamora / 0_reuse_code.js
Created November 8, 2013 07:00
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