Skip to content

Instantly share code, notes, and snippets.

View jimmerioles's full-sized avatar
👨‍💻
On my quest for the better version of myself 💪 🤓

Jim Merioles jimmerioles

👨‍💻
On my quest for the better version of myself 💪 🤓
  • GPG: 0xC77D0546407FD339
View GitHub Profile
@jimmerioles
jimmerioles / better-gitlog.sh
Created March 22, 2023 16:15
Better git log
git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all
@jimmerioles
jimmerioles / workstation-setup.txt
Last active March 18, 2023 17:49
Debian 11 workstation setup
1. Configure System
1.1. In Software & Updates, enable contrib & non-free (for cpu microcode & firmware)
1.2 Add debian backports (for btop) https://backports.debian.org/Instructions
1.3. Clean up - remove CD entries in sources.list using Software & Updates
1.4. sudo apt update && sudo apt upgrade && sudo apt autoremove && sudo apt autoclean
1.5. sudo apt install intel-microcode firmware-linux firmware-realtek
2. Configure Development Environment
2.1. Fix dual screen - Settings > Displays
2.2. Fix alt + tab behaviour - Settings > Keyboard Shortcuts > Switch windows = alt + tab
@jimmerioles
jimmerioles / alias.sh
Last active March 17, 2023 08:17
.zshrc aliases
alias c="clear"
alias e="exit"
alias l="ls -lhX --group-directories-first"
alias ll="ls -lAhX --group-directories-first"
alias a="php artisan"
@jimmerioles
jimmerioles / multiboot-trial-1.txt
Last active March 15, 2023 20:59
Debian 11 Workstation & Tinkstation dual/multi boot trial 1
1. Install workstation on 500gb ssd - boot, root and all are inside (sda)
2. Install tinkstation on 250gb ssd - boot, root and all are inside (sdb)
3. Login (will default to tinkstation - the only visible)
3.1 Mount all workstation partitions using Disks
3.2 sudo grub-install /dev/sda1
3.3 sudo os-prober
3.4 sudo update-grub2 (will detect workstation)
3.5 Reboot (at this point workstation will be visible)
4. Login to workstation
4.1 Mount all tinkstation partitions using Disks
@jimmerioles
jimmerioles / fixed.txt
Last active March 15, 2023 17:00
Fixed - Dual/Multi boot workstation & tinkstation - workstation not showing in grub
Mounted all sda(workstation) in disks
sudo grub-install /dev/sda1 (boot)
sudo os-prober
sudo update-grub2 <-- detected workstation
sudo update-alternatives --config php
@jimmerioles
jimmerioles / gitDiffDump.txt
Created April 16, 2018 22:13
These are the files and lines of code that were edited/changed.
diff --git a/.gitignore b/.gitignore
index 898b5b7..7ef6df2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,5 @@ sftp-config.json
.ftpquota
.htaccess
/public/error_log
+.env.backup
+.vagrant/
@jimmerioles
jimmerioles / fix.md
Last active March 6, 2018 21:15
Homestead: Laravel mix npm install mozjpeg fix

✖ Error: autoreconf -fiv && ./configure --disable-shared --disable-dependency-tracking --with-jpeg8 --prefix="/home/vagrant/code/node_modules/mozjpeg/vendor" --bindir="/home/vagrant/code/node_modules/mozjpeg/vendor" --libdir="/home/vagrant/code/node_modules/mozjpeg/vendor" && make -j1 && make install -j1 Command failed: ./configure --disable-shared --disable-dependency-tracking --with-jpeg8 --prefix="/home/vagrant/code/node_modules/mozjpeg/vendor" --bindir="/home/vagrant/code/node_modules/mozjpeg/vendor" --libdir="/home/vagrant/code/node_modules/mozjpeg/vendor" ./configure: line 13633: PKG_PROG_PKG_CONFIG: command not found ./configure: line 13812: syntax error near unexpected token libpng,' ./configure: line 13812: PKG_CHECK_MODULES(libpng, libpng, HAVE_LIBPNG=1,'

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)

at maybeClose (internal/child_process.js:925:16)

@jimmerioles
jimmerioles / webpack.config.js
Last active October 20, 2017 08:51
Basic webpack config for organized dist/
// .
// ├── dist
// │   ├── css
// │   │   └── main.css
// │   ├── images
// │   │   └── stubby.jpg
// │   └── bundle.js
// ├── src
// │   ├── images
// │   │   └── stubby.jpg
@jimmerioles
jimmerioles / fix.sh
Last active October 15, 2017 21:18
Fix/add mic static noise cancellation in debian with pulseaudio
pactl load-module module-echo-cancel aec_method=webrtc