Skip to content

Instantly share code, notes, and snippets.

@maciakl
maciakl / gist:5033614
Created February 25, 2013 21:44
Windows batch files - date and time formatting:
@echo off
rem System provided date and time
echo %DATE%
echo %TIME%
rem Capture Hour
set hour=%time:~0,2%
rem Remove leading space if single digit
if "%hour:~0,1%" == " " set hour=0%hour:~1,1%
@dieseltravis
dieseltravis / shrug.ahk
Last active January 3, 2023 15:58
autohotkey script to replace 🤷 with ¯\_(ツ)_/¯ (and a few other common unicode art emoji)
; :shrug: ¯\_(ツ)_/¯
:B0:`:shrug::
if (A_EndChar == ":") {
SendInput, {BS 7}¯\_(ツ)_/¯
}
return
; :whatever: ◔_◔
:B0:`:whatever::
@atme
atme / csgolounge-autobump.user.js
Created April 22, 2015 09:10
Autobump for csgolounge.com
// ==UserScript==
// @name csgolounge-autobump
// @namespace csgoloungeAutobump
// @include http://csgolounge.com/mytrades
// @version 1
// @grant none
// ==/UserScript==
/*global $, console*/
(function ($) {
@nickbayley
nickbayley / alt-ssh-copy-id.md
Last active September 5, 2024 12:09
Simple Alternative to ssh-copy-id

Simple Alternative to ssh-copy-id

Replace user with the name of the user you want to ssh as.

Replace the ip with the ip of the machine / host / vps you want to connect to.

cat ~/.ssh/id_rsa.pub | ssh user@ip "cat >> ~/.ssh/authorized_keys"
@tikolakin
tikolakin / fish_alias.md
Last active February 17, 2025 10:33
Create alias in Fish shell and save this as a permanent function

Directly from CLI

alias x='exit'
funcsave x

or create a file in

~/.config/fish/functions 

with name

Sublime text 3 (Build 3100 to 3114) - license key [ tested on Mac OS ]
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
@db93n2
db93n2 / auto_include.ahk
Last active January 19, 2023 03:10
📃 (autohotkey) - create a list of .ahk files to be #included in your main script
/*
[search folders]
folder_1 =
folder_2 =
[ignore paths]
C:\Users\documents\scripts\example script name.ahk
C:\Users\documents\scripts\example folder name
[settings]
@RebeccaWhit3
RebeccaWhit3 / Complete List of Environment Variables in Windows 10.md
Last active March 4, 2026 10:14
Complete List of Environment Variables in Windows 10

Full List of Environment Variables in Windows 10

![information][6] Information

[Environment variables][7] are a set of dynamic named values that can affect the way running processes will behave on a computer. The variables can be used both in scripts and on the command line. Environment variables makes it easy when certain standard directories and parameters need to be referenced but where the actual locations or names can vary from computer to computer.

This tutorial will show you a complete list of environment variables that can be used to reference standard directories and parameters in Windows 10.

![Note][8] Note

@Au1st3in
Au1st3in / dayz_autorun.ahk
Last active December 27, 2024 14:40
DayZ AutoRun AutoHotKey Script with NumLock Toggle
#NoEnv
SendMode Input
#IfWinActive, DayZ
SetNumlockState, off
~NumLock::
if (GetKeyState("NumLock", "T")) {
Send, {lshift Down}
Send, {w Down}
@GEOFBOT
GEOFBOT / bobthefish-base16-monokai.fish
Last active October 29, 2020 18:08
Put this in ~/.config/fish/conf.d/
# Base16-Monokai
#
# color values from https://github.com/chriskempson/base16-vim/blob/037f328/colors/base16-monokai.vim
function bobthefish_colors -S -d 'Define a custom bobthefish color scheme'
__bobthefish_colors base16-dark
set -l base00 272822
set -l base01 383830
set -l base02 49483e