Skip to content

Instantly share code, notes, and snippets.

@peaeater
peaeater / logger.ps1
Created Mar 26, 2018 — forked from barsv/logger.ps1
Logging in powershell with log rotation
View logger.ps1
# 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
@peaeater
peaeater / Default (Windows).sublime-keymap
Last active Aug 29, 2015 — forked from LeVM/Default (OSX).sublime-keymap
Insert accented characters in Sublime Text 3
View Default (Windows).sublime-keymap
[
{ "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": "ô"} },