Skip to content

Instantly share code, notes, and snippets.

@mattia72
mattia72 / AutoHotkey.ahk
Last active May 20, 2020 23:19
AutoHotkey.ahk with handy features.
;=============================================================================
; File: AutoHotkey.ahk
; Author: Mattia72
; Description: Automatically launched AHK script
; Created: 28 okt. 2015
; Project Repo: https://gist.github.com/f422d965d2dcd6db3bbf.git
;=============================================================================
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
@meinside
meinside / smartctl_test.md
Last active June 9, 2024 16:12
For checking health of usb hdd on raspberry pi with smartctl.

for testing external hdd with smartctl,

install smartmontools

$ sudo apt-get install smartmontools

start test,

@mikew
mikew / plug_disable.md
Created March 8, 2016 21:24
A way to disable a plugin in vim-plug

plug_disable.vim

If your vim distribution uses vim-plug and includes plugins you don't want, or if you want to simply maintain a single set of plugins but disable some on certain machines, this may be for you.

Source

let g:plugs_disabled = []
function! plug_disable#commit()
 for name in g:plugs_disabled
@martinusso
martinusso / IsEmptyOrNull.pas
Created January 10, 2017 15:44
Check if Variant is empty or null in Delphi
// uses System, Variants
function IsEmptyOrNull(const Value: Variant): Boolean;
begin
Result := VarIsClear(Value) or VarIsEmpty(Value) or VarIsNull(Value) or (VarCompareValue(Value, Unassigned) = vrEqual);
if (not Result) and VarIsStr(Value) then
Result := Value = '';
end;
@fnky
fnky / ANSI.md
Last active July 19, 2024 08:06
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27