Skip to content

Instantly share code, notes, and snippets.

" Denite {{{
" Change file_rec command.
call denite#custom#var('file_rec', 'command',
\ ['ag', '--follow', '--nocolor', '--nogroup', '--ignore=*.pyc', '-g', ''])
" Change mappings.
call denite#custom#map(
\ 'insert',
\ 'K',
\ '<denite:move_to_next_line>',
@ahmadawais
ahmadawais / flywheel-local-xdebug-vscode.md
Last active September 5, 2024 01:57
Debug WordPress with Visual Studio Code | VSCode WordPress Debug Setup | WordPress xDebug Setup for Local by FlyWheel with VSCode | Part of the VSCode Learning Course → https://VSCode.pro

VSCode WordPress Debugging Setup: WordPress Xdebug Setup for Local by FlyWheel with VSCode


Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User

🚅 TL;DR

  • Make sure your Local by FlyWheel WordPress install is a custom install
@jdm34
jdm34 / macosx-install-php-oci8-laravel-valet.md
Last active August 23, 2022 11:46
Setting Up Laravel Development Environment On Fresh Install Of MacOS High Sierra (13.1) with Laravel Valet, PHP, and Oracle (OCI8)

Setting Up Laravel Development Environment On Fresh Install of MacOS High Sierra (13.1) with Laravel Valet, PHP, and Oracle (OCI8)

Composer

https://getcomposer.org/download/

Open Terminal, copy, paste, and run

@sdkks
sdkks / iterm_nvim.AppleScript
Last active May 13, 2023 14:16
Open File with iTerm2 + nvim on OSX using Automator
on run {input, parameters}
-- If run without input, open random file at $HOME
try
set filename to POSIX path of input
on error
set filename to "nvim-" & (do shell script "date +%F") & "__" & (random number from 1000 to 9999) & ".txt"
end try
-- Set your editor here
set myEditor to "/usr/local/bin/nvim"
-- Open the file and auto exit after done
@poliquin
poliquin / open_file_neovim_iterm.applescript
Created August 20, 2017 15:14
Open selected file in Finder with neovim using iTerm2
-- Open selected file using neovim in an iTerm2 window
-- Requires iTerm2 version 2.9+
(* Install:
*
* (1) Save this script as an Application
* (2) Cmd + drag the application to Finder toolbar
* (3) Click the new shortcut to open selected file in neovim using iTerm2
*)
@HardenedArray
HardenedArray / Encrypted Arch Linux VirtualBox Guest Installation Procedure
Last active April 6, 2025 15:25
Efficient Encrypted Arch Linux Guest Installation in VirtualBox with a Full Plasma/KDE Environment. Perfect for Arch Linux Evaluation and Experimentation!
# OBJECTIVES: Install Arch Linux as a VirtualBox Guest with a complete Plasma5/KDE environment.
# Provide encrypted root and swap filesystems and UEFI boot our Arch Guest from within VirtualBox.
# Note: This install method is specific to VirtualBox (VBox) to allow non-Arch users and Arch testers to evaluate a properly
# configured and secure Arch OS while running a fully enabled Plasma/KDE system, and also by concurrently taking advantage
# of the multiple isolation safeguards inherently provided by the VBox environment.
# For those who want to install Arch on bare metal in a way that supports both dedicated Arch installations and Arch
# installation on a SSD/HDD multi-OS-UEFI-booting system, please refer to my Arch System Installation Guide, here:
@protorob
protorob / artowoo.sh
Last active June 10, 2025 19:35
Bash Sript to Automate the Configuration of the Artomultiplo's Woocommerce Starter Kit
#!/bin/bash -e
# Start allways the same
wpuser='yourusername'
wpuseremail='[email protected]'
wpuserpass=$(date +%s | sha256sum | base64 | head -c 16)
dpprefix=$(date +%s | sha256sum | base64 | head -c 6)
clear
@charlietran
charlietran / TerminalVim.scpt
Last active August 28, 2024 20:23
Open file in iTerm vim for MacOS Sierra
-- TerminalVim.app
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm
-- To use this script:
-- 1. Open Automator and create a new Application
-- 2. Add the "Run Applescript" action
-- 3. Paste this script into the Run Applescript section
-- 4. Save the application as TerminalVim.app in your Applications folder
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default
@generatepress
generatepress / gist:282078076cd8631c17717d5b8640c043
Last active May 15, 2023 22:00
Initiate the mobile header at your desired width. Change 768px to whatever you like.
@media( max-width: 768px ) {
.site-header,
#site-navigation,
#sticky-navigation {
display: none !important;
opacity: 0;
}
#mobile-header {
display: block !important;
@develmaycare
develmaycare / duplicate-row.js
Last active December 8, 2024 09:46
Duplicate a row in Google Sheets.
/* To use this in a Google Sheet:
1. Go to Tools > Script Editor.
2. Save the script.
3. Paste this script and click on the bug symbol.
4. Authorize the script.
5. Refresh the sheet.
*/
// global
var ss = SpreadsheetApp.getActive();