Skip to content

Instantly share code, notes, and snippets.

@andraaspar
andraaspar / tesseract-hu-last.bat
Last active October 18, 2022 13:59
Tesseract copy result to clipboard
@echo off
chcp 65001
for /f "tokens=*" %%a in ('dir /b /od') do set newest=%%a
"c:\Program Files\Tesseract-OCR\tesseract.exe" -l hun "%newest%" stdout | clip
@andraaspar
andraaspar / chocolatey-minetest.log
Created February 27, 2021 12:47
Chocolatey Minetest failed install log
2021-02-27 13:35:52,966 14100 [DEBUG] - ---------------------------Script Execution---------------------------
2021-02-27 13:35:52,967 14100 [DEBUG] - Running 'ChocolateyScriptRunner' for minetest v5.4.0 with packageScript 'C:\ProgramData\chocolatey\lib\minetest\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\minetest', installArguments: '', packageParameters: '',
2021-02-27 13:35:52,968 14100 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\minetest\tools\chocolateyinstall.ps1'
2021-02-27 13:35:52,978 14100 [ERROR] - ERROR: At C:\ProgramData\chocolatey\lib\minetest\tools\chocolateyinstall.ps1:18 char:35
+ ... h $toolsDir "minetest-5.4.0-win$(Get-OSArchitectureWidth)\bin\minetes ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The string is missing the terminator: ".
2021-02-27 13:35:53,004 14100 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.Current
// ==UserScript==
// @name Feedly
// @namespace andraaspar
// @version 0.2.0
// @description Make feedly friendly
// @author AP
// @match https://feedly.com/*
// @run-at document-idle
// @require https://code.jquery.com/jquery-3.2.1.slim.min.js
// ==/UserScript==
module.exports = {
trailingComma: 'es5',
tabWidth: 4,
useTabs: true,
semi: false,
singleQuote: true,
jsxSingleQuote: true,
}
@andraaspar
andraaspar / web-timesheet.userscript.js
Last active August 14, 2019 09:23
Replicon Web TimeSheet
// ==UserScript==
// @name Web Timesheet
// @namespace andraaspar
// @version 0.3.2
// @description Tweaks.
// @author AP
// @match http://na1.replicon.com/ovitas/*
// @run-at document-idle
// @require https://code.jquery.com/jquery-3.2.1.slim.min.js
// @grant GM.setValue
// ==UserScript==
// @name HN
// @namespace andraaspar
// @version 0.1.1
// @description Colors visited links
// @author AP
// @match https://news.ycombinator.com/*
// @run-at document-idle
// @grant GM_addStyle
// ==/UserScript==
@andraaspar
andraaspar / tslint.json
Created November 30, 2017 17:40
TSLint rules
{
"defaultSeverity": "error",
"extends": [],
"jsRules": {},
"rules": {
"no-unused-variable": {
// Disallows unused imports, variables, functions and private class members.
"options": [true, { "ignore-pattern": "Vnode" }],
"severity": "warning"
},
Word Owl App Privacy Policy
We do not collect any data from Word Owl. Any information you enter into the application is kept locally on your device.
@andraaspar
andraaspar / spotify-ratings.user.js
Last active March 16, 2023 15:46
Spotify ratings
// ==UserScript==
// @name Spotify ratings
// @namespace 50edea63-8324-74b3-4019-81e0bdcd316a
// @version 0.2.0
// @description Loads my ratings for an album.
// @author AP
// @match https://open.spotify.com/*
// @run-at document-idle
// ==/UserScript==
@andraaspar
andraaspar / IAttributes.ts
Last active July 20, 2017 11:03
Mithril helpers
import { TMithrilEvent } from './TMithrilEvent'
export interface IAttributes {
id?: string
class?: string
style?: string | {[_: string]: any}
href?: string
target?: string
download?: string,
type?: string