Skip to content

Instantly share code, notes, and snippets.

View soham2008xyz's full-sized avatar
👨‍💻
Sprint-mode ON!

Soham Banerjee soham2008xyz

👨‍💻
Sprint-mode ON!
View GitHub Profile
@chris1111
chris1111 / AMFIPass-Extract.command
Last active October 17, 2024 17:50
AMFIPass-Extract
#!/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: "
@wmachert
wmachert / python-setup.bat
Last active May 8, 2024 06:23
Portable Windows Python Setup
@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
@patrickmaciel
patrickmaciel / configuracoes.md
Created April 18, 2021 00:30
Laragon + Mailhog
@shanselman
shanselman / ohmyposhv3-v2.json
Last active November 4, 2024 10:39
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@reanim8ed
reanim8ed / sample.md
Last active August 23, 2024 22:45
[Mailhog in Laragon] #email #laragon #laragon
@andrewodri
andrewodri / install.sh
Last active May 23, 2022 18:15
Force dark mode in High Sierra
#!/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
@romkatv
romkatv / install_meslo_wsl.sh
Last active July 11, 2024 13:16
Install Meslo Powerline font family on Windows
#!/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.
@FradSer
FradSer / iterm2_switch_automatic.md
Last active October 8, 2024 12:39
Switch iTerm2 color preset automatic base on macOS dark mode.

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.


  1. Add switch_automatic.py to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch with:
@chetans9
chetans9 / SecureHeadersMiddleware.php
Last active August 11, 2024 09:27
Laravel Secure Headers Middleware
<?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/