Skip to content

Instantly share code, notes, and snippets.

@hokecyber
hokecyber / install-php7.2-mcrypt.sh
Created May 6, 2018 18:17 — forked from arzzen/install-php7.2-mcrypt.sh
Install PHP 7.2 MCrypt extension
#
# Check version php and pecl
#
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php
pecl version
sudo apt install php-pear
sudo apt install php7.2-dev
#
# Install mcrypt extension
@hokecyber
hokecyber / myscript.sh
Created May 26, 2019 14:43 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@hokecyber
hokecyber / README.md
Created July 8, 2019 09:54 — forked from hofmannsven/README.md
Git Cheatsheet
@hokecyber
hokecyber / nodejs-cicd-github-actions.md
Created November 26, 2022 06:34 — forked from danielwetan/nodejs-cicd-github-actions.md
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder

@hokecyber
hokecyber / Response.php
Created January 12, 2023 12:08 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;