This file contains hidden or 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 | |
| LAST_HASH="" | |
| # Detect clipboard tool | |
| if command -v wl-paste &> /dev/null; then | |
| CLIP_COPY="wl-copy" | |
| CLIP_PASTE="wl-paste" | |
| elif command -v xsel &> /dev/null; then | |
| CLIP_COPY="xsel --clipboard --input" |
This file contains hidden or 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 | |
| # Convert WSL path to Windows path | |
| if [ "$1" = "." ]; then | |
| WINPATH=$(wslpath -w $(pwd)) | |
| elif [ -n "$1" ]; then | |
| WINPATH=$(wslpath -w "$1") | |
| else | |
| WINPATH="" | |
| fi |
This file contains hidden or 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
| local hyper = {"alt", "cmd"} | |
| local BITLY_API_ACCESS_TOKEN = "" | |
| -- Load Spoons | |
| hs.loadSpoon("MiroWindowsManager") | |
| hs.loadSpoon("ReloadConfiguration") | |
| --hs.loadSpoon("BingDaily") | |
| hs.loadSpoon("Caffeine") | |
| spoon.ReloadConfiguration:start() |
This file contains hidden or 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
| """Script to import any number of JSON formatted files into a db""" | |
| import sqlite3 | |
| import requests | |
| from tqdm import tqdm | |
| from sqlite3 import Error | |
| from operator import itemgetter | |
| from collections import defaultdict | |
| files = [ |
This file contains hidden or 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 | |
| set -e | |
| PROG=${0##*/} | |
| pushd "$(dirname "$0")/.." >/dev/null | |
| popd >/dev/null | |
| _err() { echo "$PROG: $@" >&2; exit 1; } | |
| FPS=50 | |
| MAXSIZE=800 |
This file contains hidden or 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
| // ==UserScript== | |
| // @name lmarena.ai Custom Tweaks (Wait for Height 0) | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.5 | |
| // @description Suppress alert, hide element, and click Arena tab when model_selector_md height is zero | |
| // @match https://lmarena.ai/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function () { |
This file contains hidden or 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 | |
| # Function to check if a command exists | |
| command_exists() { | |
| command -v "$1" >/dev/null 2>&1 | |
| } | |
| # Set Git user name and email credentials | |
| git config --global user.name "suraj sharma" |
This file contains hidden or 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 | |
| # Define the font URL from Overleaf (direct link to the font file) | |
| FONT_URL="https://filebin.net/xp47sk0a8rew8uel/bm.ttf" | |
| # Define the font name (change this if you know the exact font file name) | |
| FONT_NAME="custom_font.ttf" | |
| # Define the installation directory | |
| FONT_DIR="/usr/share/fonts/truetype/bm" |
This file contains hidden or 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
| version: "3.8" | |
| services: | |
| postgres: | |
| image: postgres:13-alpine | |
| environment: | |
| POSTGRES_DB: campaigns | |
| POSTGRES_USER: admin | |
| POSTGRES_PASSWORD: admin | |
| ports: |
This file contains hidden or 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
| #Requires AutoHotkey v2.0 | |
| #SingleInstance force | |
| ScriptStartModTime := FileGetTime(A_ScriptFullPath) | |
| SetTimer(CheckScriptUpdate, 100, -1) ; 100 ms, highest priority | |
| ; Hotkeys for different window types | |
| ^Space::ToggleSpecificWindow("terminal") | |
| ^!Space::ToggleSpecificWindow("browser") | |
| +Space::ToggleSpecificWindow("notepad++") |
NewerOlder