Skip to content

Instantly share code, notes, and snippets.

@frolbel
frolbel / git (сyrillic support).txt
Last active January 16, 2025 07:36
Support for Cyrillic in git-bash
1. Run 'Git Bash'
2. Right-click and select Options...
3. Select Text group at the left
4. Change Font to 'Lucida Console'
5. Select 'C' as Locale and 'UTF-8' as Character set
5. Select 'ru_RU' as Locale and 'UTF-8' as Character set
6. Apply and Save.
7. In the terminal execute:
git config --global core.quotepath false
git config --global i18n.commitencoding cp1251
@danielchc
danielchc / docker-emby-bypass.md
Last active January 16, 2025 07:34
Emby Premiere: ByPass Docker container

Emby Premiere ByPass for Docker

❗ All the information provided on this tutorial are for educational purposes only. I'm not responsible for any misuse of this information. If you like the app buy it

Table of Contents

Type Name Description Approach
Problem Group Anagrams To group the Anagrams strings, Input: Array of Strings, Output: Array of arrays having Anagrams strings. for-loop to iterate strings of given array. Map to store unique sorted string as key and array of all string having same sorted string as value. Once Done return Array.from(map.values()) which contains array of arrays having Anagrams strings.
@pmarreck
pmarreck / please.bash
Last active January 16, 2025 07:31
"please"- a bash function to ask an LLM to compose and run a bash command, with an approval/denial step
needs() {
command -v "$1" > /dev/null || { >&2 printf "%s is required- not installed or in PATH; %s\n" "$1" "${@:2}"; return 1; }
}
_generate_curl_api_request_for_please() {
needs jq;
local request args timeout model curl;
local curl=${CURL:-curl};
local model=${OPENAI_MODEL:-gpt-4o};
local timeout=${OPENAI_TIMEOUT:-30};
@SteveALee
SteveALee / README.md
Last active January 16, 2025 07:31
Build audacity with ASIO support on Windows

Build your own Audacity for Windows with ASIO driver support

You might want Audacity to work with the ASIO drivers supplied with your sound devices. Commmon reasons for this are:

  • Only ASIO drivers are available for your hardware (eg Behringer mixers)
  • Performance - ASIO has low latency (delays)
  • You don't want to use the ASIO4All bridging driver with non ASIO drivers
  • Multi channel support - though Audacity is not so good at handling other than Stereo or Mono

Due to licensing restrictions the Audacity team cannot provide a prebuilt version with Windows ASIO driver support. But with this guide and script you can easily build your own Audacity with ASIO support, on a Windows PC.

@osama2kabdullah
osama2kabdullah / Tailwind CSS with Shopify Theme.md
Created June 12, 2023 08:45
How to add Tailwind CSS in a shopify theme in development mode only

Add Tailwind CSS in Shopify Theme

  1. Initial node.js package manager with npm or yarn by running
yarn init -y 
#or
npm init -y
@jackblk
jackblk / LogitechF310_Macbook.MD
Created April 13, 2021 16:07
Getting Logitech F310 to work with Macbook USB-C port

Connect & use Logitech F310 with Macbook

Since my Macbook Pro only has USB-C port, I used an USB-A to USB-C adapter to connect my F310 to it, but it does not work (pressing MODE button does not turn on the LED).

How to

To make it work:

  • Disconnect F310 from Mac
  • On F310: switch X-input to D-input
  • Hold Logitech button (in the middle)
  • Connect F310 to Mac via adapter, now you can release the Logitech button.
@jcsteh
jcsteh / SpotifyGlobalKeys.ahk
Last active January 16, 2025 07:29
AutoHotkey script to control Spotify with global keyboard shortcuts
; SpotifyGlobalKeys.ahk:
; AutoHotkey script to control Spotify with global keyboard shortcuts
; Author: James Teh <[email protected]>
; Copyright 2017-2018 James Teh
; License: GNU General Public License version 2.0
DetectHiddenWindows, On
; Get the HWND of the Spotify main window.
getSpotifyHwnd() {
@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@iam-veeramalla
iam-veeramalla / upload_jenkins_build_logs.sh
Created January 7, 2025 15:11
upload_jenkins_build_logs.sh
#!/bin/bash
# Variables
JENKINS_HOME="/var/lib/jenkins" # Replace with your Jenkins home directory
S3_BUCKET="s3://your-s3-bucket-name" # Replace with your S3 bucket name
DATE=$(date +%Y-%m-%d) # Today's date
# Check if AWS CLI is installed
if ! command -v aws &> /dev/null; then
echo "AWS CLI is not installed. Please install it to proceed."