Skip to content

Instantly share code, notes, and snippets.

@rajdsouza
rajdsouza / phantomjs-1.9.8
Created December 5, 2023 01:09 — forked from Djokic/phantomjs-1.9.8
Installing PhantomJS 1.9.8 on Ubuntu/Mint x64/x86
sudo apt-get remove phantomjs
sudo unlink /usr/local/bin/phantomjs
sudo unlink /usr/local/share/phantomjs
sudo unlink /usr/bin/phantomjs
cd /usr/local/share
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
### Keybase proof
I hereby claim:
* I am rajdsouza on github.
* I am rajdsouza (https://keybase.io/rajdsouza) on keybase.
* I have a public key ASCNd8WcizgIR4QeEw5lKJFbZXdVmkOQPjJx1yktBNNr0wo
To claim this, I am signing this object:
@rajdsouza
rajdsouza / laravel_horizon.md
Created November 12, 2020 08:07 — forked from ankurk91/laravel_horizon.md
Laravel Horizon, redis-server, supervisord on Ubuntu 20 server

Laravel Horizon, redis-server, supervisord on Ubuntu server

Laravel 8.x, Horizon 5.x, Redis 6.x

Parepare application

  • Install and configure Laravel Horizon as instructed in docs
  • Make sure you can access the Horizon dashboard like - http://yourapp.com/horizon
  • For now it should show status as inactive on dashbaord

Install redis-server

@rajdsouza
rajdsouza / setup-mysql.sh
Created May 1, 2020 13:44 — forked from sheikhwaqas/setup-mysql.sh
Install MySQL Server on Ubuntu (Non-Interactive Installation)
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22
@rajdsouza
rajdsouza / .bash_profile
Created December 19, 2019 01:26 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@rajdsouza
rajdsouza / dnsmasq.conf
Created November 19, 2018 02:06 — forked from cee-dub/dnsmasq.conf
Generic configuration files for *.#{hostname}.local wildcard DNS with dnsmasq and mDNSResponder
# Add domains for which you want to force to an IP address here.
# This is the magic sauce for making *.#{hostname}
# always route to the localhost
address=/#{hostname}/127.0.0.1
address=/#{hostname}/::1
mx-host=#{hostname},#{hostname},10
# Extra options that make dnsmasq play nice
log-queries
@rajdsouza
rajdsouza / gist:aea4e610d8b1412fdb7d4aaf091f0f6c
Created August 21, 2018 00:58
Set Date and Time on Linux using CLI mode
##https://unix.stackexchange.com/questions/151547/linux-set-date-through-command-line
You can use date to set the system date. The GNU implementation of date (as found on most non-embedded Linux-based systems) accepts many different formats to set the time, here a few examples:
set only the year:
date -s 'next year'
date -s 'last year'
set only the month:
date -s 'last month'
@rajdsouza
rajdsouza / etc-init.d-hello-world
Created July 19, 2018 21:02 — forked from josephspurrier/etc-init.d-hello-world
/etc/init.d Script for Go Application
#!/bin/bash
#
# chkconfig: 35 95 05
# description: Hello world application.
# Run at startup: sudo chkconfig hello-world on
# Load functions from library
. /etc/init.d/functions
@rajdsouza
rajdsouza / gist:a30b008c905e124462c477557a177b1b
Created March 7, 2017 21:08
Search text or string in files under a giving folder
grep -rnw '<full-path-to-folder>' -e "<search-string>"
@rajdsouza
rajdsouza / my_sacrifice.md
Last active September 11, 2017 03:41
The motherf*cking way the get Oracle access in PHP5 over Ubuntu