Skip to content

Instantly share code, notes, and snippets.

@MonrealRyan
MonrealRyan / Delete SOLR in Ubuntu.md
Last active May 23, 2023 20:53
Deleting SOLR in Ubuntu server
  1. sudo service solr stop

  2. sudo rm -r /var/solr

  3. sudo rm -r /opt/solr-5.3.1

  4. sudo rm -r /opt/solr

  5. sudo rm /etc/init.d/solr

@MonrealRyan
MonrealRyan / Steps to install SOLR + Laravel.md
Last active April 11, 2024 04:47
How to use PHP solarium to your Laravel project
@MonrealRyan
MonrealRyan / Cloning repository to existing folder.md
Last active August 5, 2020 11:02
Clone repository to a existing folder
  1. cd to you folder
  2. run git init
  3. run git add .
  4. run git commit -m 'initial commit'
  5. run git remote add origin {reportistoryUrl}
  6. run git pull origin master
@MonrealRyan
MonrealRyan / OctoberCMS thru Laravel Forge.md
Last active August 10, 2020 03:02
Steps on how to deploy OctoberCMS in Laravel Forge from the repo (June 2020)
  1. Make new Forge Site
  2. Remove "public" Web Directory
  3. Check "Create Database" (you may want to do this for your staging site)
  4. Click "Add Site" (Wait for the site to finish to then configuration)
  5. Click your new site
  6. Click "Git Repository" (choose your provide, repository url, and what branch by deafult it is master)
  7. Click "Install Repository"
  8. Add the script below in the bottom
@MonrealRyan
MonrealRyan / Steps.txt
Last active July 24, 2020 04:17
Remove folder and its contents from git history
git filter-branch --tree-filter "rm -rf node_modules" --prune-empty HEAD
git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d
echo node_modules/ >> .gitignore
git add .gitignore
git commit -m 'Removing node_modules from git history'
git gc
git push origin master --force
-- Stack.yaml
extra-deps:
- git: https://github.com/MonrealRyan/sendgrid-hs.git
commit: 13e28bd2aadf0e0ce092547292769a53f28a373e
-- Helper handler
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE CPP #-}
name: Budzu2
version: "0.0.0"
dependencies:
# Due to a bug in GHC 8.0.1, we block its usage
# See: https://ghc.haskell.org/trac/ghc/ticket/12130
- base >=4.8.2.0 && <4.9 || >=4.9.1.0 && <5
# version 1.0 had a bug in reexporting Handler, causing trouble

Note: This example is derive from the answer from (stackoverflow)[https://stackoverflow.com/questions/35976448/how-to-access-laravel-homestead-on-other-devices#43144708] by @totymedli. The purpose of this gist is for my personal referrence but everyone is welcom :) just give the credit to the real author.

Let say, in your server computer where you host your laravel project you have the following IP Address mapping in your host file:

192.168.10.10   poinOfSale.dev
192.168.10.10   invertory.dev

And let say that the server IP Address is 192.168.0.204.

@MonrealRyan
MonrealRyan / Installing Keter.md
Last active May 24, 2017 03:55
Installing Keter for 1G of ram

STEPS IN INSTALLING KETER

  1. Create a swap, type the following code: (Use sudo if your not in root user)

dd if=/dev/zero of=/tmp/swap bs=1M count=1024 mkswap /tmp/swap swapon /tmp/swap This is to make sure the our 1gb memory will not run out of memory.

  1. TRY to install it using this code