Skip to content

Instantly share code, notes, and snippets.

View raymadrona's full-sized avatar

Ray Anthony Madrona raymadrona

View GitHub Profile
@raymadrona
raymadrona / cmder.md
Last active April 17, 2020 14:36 — forked from nickautomatic/cmder.md
Setting up Cmder to use bash by default

Set up cmder to use msysgit / bash by default

  • Install cmder_mini (msysgit is already installed, so no need for full version)
  • In Cmder, open settings: Win + Alt + P
  • Under Startup > Tasks, add a task called {bash} with the following settings:
    • Task parameters (set icon):
      • For Cmder icon: /icon "%CMDER_ROOT%\cmder.exe"
      • For Git icon: /icon "C:\Program Files\Git\mingw64\share\git\git.ico"
    • Commands (open Git's bash shell):
  • "C:\Program Files\Git\bin\sh.exe" -l -new_console:d:%USERPROFILE%
@raymadrona
raymadrona / gist:76daa8f4c33ff8b6517e49d7b0ab6c0c
Created December 4, 2020 08:55 — forked from somandubey/gist:52bff8c7cc8639292629
How to increase ulimit in Linux

How to increase ulimit in Linux:

  • Step 1 (ulimit): open the sysctl.conf and add this line fs.file-max = 65536

      vi /etc/sysctl.conf   
    

    add following at end of file in above file:

      fs.file-max = 65536
    

save and exit.

@raymadrona
raymadrona / git-cleanup-repo
Created January 15, 2021 00:36 — forked from robmiller/git-cleanup-repo
A script for cleaning up Git repositories; it deletes branches that are fully merged into `origin/master`, prunes obsolete remote tracking branches, and as an added bonus will replicate these changes on the remote.
#!/bin/bash
# git-cleanup-repo
#
# Author: Rob Miller <[email protected]>
# Adapted from the original by Yorick Sijsling
git checkout master &> /dev/null
# Make sure we're working with the most up-to-date version of master.
git fetch
@raymadrona
raymadrona / SignatureExample.php
Created February 2, 2022 08:02 — forked from jonneroelofs/SignatureExample.php
Wrapping SignaturePad and storing base-64 with Alpine.js and Laravel Livewire
<?php
namespace App\Http\Livewire;
use Illuminate\Support\Str;
use Livewire\Component;
class SignatureExample extends Component
{
public $signature;