Skip to content

Instantly share code, notes, and snippets.

@peaeater
peaeater / Default (Windows).sublime-keymap
Last active August 29, 2015 14:03 — forked from LeVM/Default (OSX).sublime-keymap
Insert accented characters in Sublime Text 3
[
{ "keys": ["ctrl+\\","a","`"], "command": "insert", "args": {"characters": "à"} },
{ "keys": ["ctrl+\\","a","^"], "command": "insert", "args": {"characters": "â"} },
{ "keys": ["ctrl+\\","e","'"], "command": "insert", "args": {"characters": "é"} },
{ "keys": ["ctrl+\\","e","`"], "command": "insert", "args": {"characters": "è"} },
{ "keys": ["ctrl+\\","e","^"], "command": "insert", "args": {"characters": "ê"} },
{ "keys": ["ctrl+\\","e",":"], "command": "insert", "args": {"characters": "ë"} },
{ "keys": ["ctrl+\\","i",":"], "command": "insert", "args": {"characters": "ï"} },
{ "keys": ["ctrl+\\","i","^"], "command": "insert", "args": {"characters": "î"} },
{ "keys": ["ctrl+\\","o","^"], "command": "insert", "args": {"characters": "ô"} },
@peaeater
peaeater / logger.ps1
Created March 26, 2018 20:41 — forked from barsv/logger.ps1
Logging in powershell with log rotation
# all logging settins are here on top
$logFile = "log-$(gc env:computername).log"
$logLevel = "DEBUG" # ("DEBUG","INFO","WARN","ERROR","FATAL")
$logSize = 1mb # 30kb
$logCount = 10
# end of settings
function Write-Log-Line ($line) {
Add-Content $logFile -Value $Line
Write-Host $Line