I hereby claim:
- I am diogotito on github.
- I am diogotito (https://keybase.io/diogotito) on keybase.
- I have a public key ASBs-dO0OlFHTP-IzFHQZJem14oJTypJEmGrGsGeRwocJAo
To claim this, I am signing this object:
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body{ | |
background: #f06; | |
background: linear-gradient(45deg, #002, #125); | |
min-height: 100%; | |
} | |
@keyframes girar_a_lua { |
{-# LANGUAGE OverloadedStrings #-} | |
import Test.WebDriver | |
import Test.WebDriver.Commands.Wait | |
import Test.WebDriver.Session | |
import Data.Text.IO | |
import qualified Data.Text as T | |
import qualified Data.Text.IO | |
import Control.Monad | |
import Control.Monad.Trans |
I hereby claim:
To claim this, I am signing this object:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
#SingleInstance force | |
#If WinActive("ahk_exe " "asebastudio.exe") | |
F8:: | |
WinGetPos, WinX, WinY, WinW, WinH | |
MouseGetPos, x, y |
$ofs = "`n" | |
$clipboard = Get-Clipboard -TextFormatType Html | |
$html_fragment = ("$clipboard" -split '<!--StartFragment-->|<!--EndFragment-->')[1] | |
$html_fragment | pandoc --from html --to zimwiki |
from collections import namedtuple | |
from csv import DictWriter | |
from datetime import datetime | |
SEVENZ_OUTPUT = "7z_output.txt" # Name of file with `7z l <FILE> -slt` output | |
EFU_FILENAME = "7z_filelist.efu" # Name of Everything File List to write | |
conv = namedtuple("conversion", ("efu_column", "fn")) | |
pass_fn = lambda x: x | |
date_fn = lambda dt: datetime.strptime(dt, "%Y-%m-%d %H:%M:%S").isoformat() |
// Drive service needed (in the sidebar, click the "+" next to "Services", select "Drive", then click "Add") | |
// To get a folder/file ID: Right click on Drive, Get link, manually copy the last part | |
const FOLDER_TO_BACKUP_ID = ScriptProperties.getProperty("Source Folder ID") || "... default folder ID ..." | |
const FOLDER_DEST_ID = ScriptProperties.getProperty("Dest Folder ID") || "... default folder ID ..." | |
const ZIP_NAME = "SOMETHING_backups.zip" | |
function zipAllFileVersionsInDirectory() { | |
let myFolder = DriveApp.getFolderById(FOLDER_TO_BACKUP_ID) |
// ==UserScript== | |
// @name Copy link to this page as Markdown | |
// @icon https://upload.wikimedia.org/wikipedia/commons/4/48/Markdown-mark.svg | |
// @homepageURL https://gist.github.com/diogotito/8523ae0c9cee3db96ada0a6f2378d9d9 | |
// @downloadURL https://gist.github.com/diogotito/8523ae0c9cee3db96ada0a6f2378d9d9/raw/markdown_link.user.js | |
// @namespace https://gist.github.com/diogotito | |
// @match *://*/* | |
// @noframes | |
// @grant GM_notification | |
// @grant GM_setClipboard |
# Search winget, Scoop and Chocolatey simultaneously in Windows Terminal | |
function pkg([string] $name) { | |
function Build-SearchCmd([string] $cmd) { | |
"C:\Windows\system32\cmd.exe", "/C", (@("ECHO ^> $cmd", "$cmd", "PAUSE") -join ' & ') | |
} | |
wt split-pane --vertical --size 0.5 (Build-SearchCmd "winget search $name") `; ` | |
split-pane --horizontal --size 0.66 (Build-SearchCmd "scoop search $name") `; ` | |
split-pane --horizontal --size 0.5 (Build-SearchCmd "choco search $name") `; ` | |
focus-pane --target 0 |
<style> | |
.PageTransitionLinkTitle, | |
.PageTransitionLinkTitle_hover { | |
font: xx-large sans-serif; | |
color: blue; | |
text-decoration: underline; | |
cursor: pointer; | |
} | |
.PageTransitionLinkTitle_hover { |