This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Extract AMFIPass.kext | |
# By chris1111 | |
# get AMFIPass path | |
if [ "$2" == "" ]; then | |
echo -n "Please move to terminal window ➤ \ OpenCore-Patcher.app \ | |
Followed by ENTER: " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: Portable Windows Python Setup | |
:: Downloads and installs a portable Python runtime as well as all requirements. | |
:: | |
:: Usage: setup.bat [INSTALL-LOCATION] [PYTHON-VERSION] | |
:: INSTALL-LOCATION - python installation folder, default: .\rt | |
:: PYTHON-VERSION - major Python version, supported: 35 - 312, default: 312 | |
:: | |
:: To install python 3.12, pip, and all dependencies from the current directory into the directory .\python: | |
:: > setup.bat python 312 |
- Download MailHog: https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_windows_amd64.exe
- Move it to `C:\laragon\usr\bin\MailHog.exe
- Open Laragon's Procfile (Menu > Laragon > Procfile) and add these lines: MailHog: MailHog.exe autorun MailHog Admin: http://localhost:8025 autorun
- Stop Laragon
- Close/Edit completely
- Start Laragon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
- Download MailHog: https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_windows_amd64.exe
- Rename it to MailHog.exe
- Move it to `C:\laragon\usr\bin\MailHog.exe
- Open Laragon's Procfile (Menu > Laragon > Procfile) and add these lines:
MailHog: MailHog.exe autorun
MailHog Admin: http://localhost:8025 autorun
- Open F:\laragon\bin\php\php-7.1.14-Win32-VC14-x64\php.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://www.howtogeek.com/fyi/enable-dark-mode-in-high-sierra-sort-of/ | |
# https://medium.com/@n1kk/how-to-tweak-macos-mojave-dark-mode-per-app-a5fab0574691 | |
# https://stackoverflow.com/questions/52562383/is-there-a-way-to-toggle-dark-mode-on-off-for-individual-apps-in-macos-mojave | |
defaults write -g NSWindowDarkChocolate -bool TRUE | |
defaults write -g NSRequiresAquaSystemAppearance -bool FALSE | |
defaults write com.google.Chrome NSRequiresAquaSystemAppearance -bool FALSE | |
defaults write com.google.Chrome _NSSystemAppearanceOverride DarkAppearance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script installs patched Meslo Powerline font family on Windows. | |
# The fonts are installed for the current user only. The script must be | |
# run from WSL. | |
# | |
# bash -c "$(curl -fsSL https://gist.githubusercontent.com/romkatv/aa7a70fe656d8b655e3c324eb10f6a8b/raw/install_meslo_wsl.sh)" | |
# | |
# If you just want the font files, they are in | |
# https://github.com/romkatv/dotfiles-public/tree/master/.local/share/fonts/NerdFonts. |
The latest beta (3.5) includes separate color settings for light & dark mode. Toggling dark mode automatically switches colors.
Vist iTerm2 homepage or use brew install iterm2-beta
to download the beta. Thanks @stefanwascoding.
- Add
switch_automatic.py
to~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch
with:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class SecureHeadersMiddleware | |
{ | |
// Enumerate headers which you do not want in your application's responses. | |
// Great starting point would be to go check out @Scott_Helme's: | |
// https://securityheaders.com/ |
NewerOlder