Skip to content

Instantly share code, notes, and snippets.

@Purexo
Purexo / to_pocketbook.sh
Last active April 8, 2019 07:55
a bash script (need imagemagick >6.8.3-10, zip, unzip, unrar) who will convert pictures for pocketbook with an inteligent minimal weight
#!/usr/bin/env bash
# a bash script (need imagemagick >6.8.3-10, zip, unzip, unrar) who will convert pictures for pocketbook with an inteligent minimal weight
# create UNARCHIVED folder
# create TRANSFORMED folder
# create OUTPUT folder
#
# for archive file
# unarchive in new folder in UNARCHIVED with name file - ext
# Purdie 'Sonic Pi' Shuffle
# https://careerdrummer.files.wordpress.com/2012/06/purdie-half-time-shuffle.jpg
def triplet(pattern = [1,1,1])
pattern.each { |pulse| yield if pulse; sleep 0.333 }
end
def quaver(pattern = [1,1])
pattern.each { |pulse| yield if pulse; sleep 0.5 }
end
@Lexikos
Lexikos / AutoComplete.lua
Last active March 28, 2023 19:55
Improved auto-complete for SciTE
-- AutoComplete v0.8 by Lexikos
--[[
Tested on SciTE4AutoHotkey 3.0.06.01; may also work on SciTE 3.1.0 or later.
To use this script with SciTE4AutoHotkey:
- Place this file in your SciTE user settings folder.
- Add the following to UserLuaScript.lua:
dofile(props['SciteUserHome'].."/AutoComplete.lua")
- Restart SciTE.
]]
@ryin
ryin / tmux_local_install.sh
Last active July 13, 2024 00:42
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8