Skip to content

Instantly share code, notes, and snippets.

/**
* Bookmarklet to write my webponto e-mail message.
* Create a bookmark in your browser and paste this script in the 'location' field.
*/
(function(){
'use strict';
const cfg = {
to: 'rodolfo.jesus',
cc: 'marco.scheid',
@andregs
andregs / profile.ps1
Last active March 2, 2019 11:28
PowerShell script to set the user profile with quote of the day, custom prompt string, and CTRL+D shortcut to close the window
# prints quote of the day
$temp = [System.IO.Path]::GetTempPath()
$today = Get-Date -UFormat "%Y-%m-%d"
$file = "$temp\qod-$today.json"
try {
if (Test-Path $file) {
$qod = (Get-Content -Path $file | ConvertFrom-Json)
} else {