Skip to content

Instantly share code, notes, and snippets.

View agussudarmanto's full-sized avatar

Agus Sudarmanto agussudarmanto

  • Dinamika Prima Insani
  • Jakarta, Indonesia
View GitHub Profile
@aparajita
aparajita / upgrade-node.sh
Last active May 27, 2023 21:32
Shell script to install the latest Node version using fnm, pnpm and jq
#!/bin/bash
localVersion=$(fnm ls | sort | tail -1 | perl -ne 'if (/.*(v\d+\.\d+\.\d+)/) { print "$1" }')
remoteVersion=$(fnm ls-remote | grep -E '.*v\d+\.\d+\.\d+' | tail -n 1 | perl -ne 'if (/^.*(v\d+\.\d+\.\d+)/) { print "$1" }')
if [[ "$remoteVersion" != "$localVersion" ]]; then
read -r -n 1 -p "Version $remoteVersion is available. Install it? [Y/n] " shouldInstall
echo
case "$shouldInstall" in

Learning Plan for Test Driven Development (TDD)

These learning resources primarily focus on Test Driven Development (TDD).

  • There is an emphasis on learning using PHP, Laravel and PHPUnit.
  • All these resources are free (at the time of writing)

Laravel alternatives in NodeJS

These are alternative packages/frameworks in NodeJS that cover some of the primary features in Laravel. This is by no means a comprehensive list of Laravel features (or a comprehensive list of NodeJS alternatives).

Depending on your perspective, this list either shows how it's possible to switch from Laravel to NodeJS or shows why you'd want to stay with Laravel 😃


Full stack framework alternatives: Nest, Adonis

@diogorusso
diogorusso / 0.0_local-env.md
Last active November 30, 2022 18:07
Checking and Installing Xcode Command Line Tools

MacOS dev env setup

  • X-Code command line + .bash_profile
  • Homebrew + Brewfile
  • GIT + Github
  • Ruby + RVM + Bundler
  • mySQL
  • Python + Pyenv + Pyenv-Virtualenvwrapper
  • Node + NPM + Yarn + N + NCU
  • Webpack , Gulp
@gieart87
gieart87 / codeigniter.conf
Last active June 25, 2020 09:34
Nginx Virtual Host Config for CodeIgniter 3.x in Mac / OSX Sierra
server {
listen 80;
server_name localhost;
root /Users/user/html/codeigniter/;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
server {
listen 80;
index index.php;
server_name site.com admin.site.net;
client_max_body_size 32m;
client_body_buffer_size 32m;
charset utf-8;
@a7madev
a7madev / Laravel-All.md
Last active July 3, 2017 06:03
Laravel

Laravel All

Make Migration

php artisan make:migration create_teacher_subjects_table
@rcugut
rcugut / node-npm-install.md
Last active February 2, 2024 11:51 — forked from DanHerbert/fix-homebrew-npm.md
Install node & npm on Mac OS X with Homebrew

DEPRECATED as of macOS 10.13 (High Sierra). See the new GUIDE to install nvm and yarn for macOS (updated July 2019)

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

@josue
josue / pdf-conversion-fun.md
Last active December 10, 2023 15:11
Using ImageMagick to easily: Split, Merge, Remove a page from PDF.

Install Required libraries:

sudo apt-get update && sudo apt-get install imagemagick gs

create directory to test commands

mkdir -p pdf_conversion/{merged,split}
cd pdf_conversion