Fri Jun 30 02:21:11 PM CEST 2023
- Windows 11 explorer.exe (and any other application running on Windows) is not being able to browse additionally mounted WSL2 directories.
from sys import argv | |
from pikepdf import Name, Pdf | |
def render(input: str, output: str) -> None: | |
with Pdf.open(input) as pdf: | |
for page in pdf.pages: | |
annots = page.get("/Annots") | |
if annots is not None: |
# Author: https://github.com/rxw1 <[email protected]> | |
# Last edit: Sun May 7 01:10:50 AM CEST 2023 | |
# https://gist.github.com/rxw1/2ddb64ab95dbb1c005f4ce688bef303f | |
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) | |
$admin = $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) | |
if (!$admin) { | |
Write-Output("Script must be run as Administrator") | |
exit 1 | |
} |
<script> | |
import { onMount } from 'svelte'; | |
import * as d3 from 'd3'; | |
$: width = 0; | |
$: height = 0; | |
$: barGaps = 20; | |
$: barHeight = 20; | |
let margin = {top: 50, right: 50, bottom: 50, left: 50}; |
javascript:!function(){const o=document.querySelector("#main > div > div.Root__top-container > div.Root__main-view > main > div.os-host.os-host-foreign.os-theme-spotify.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden.main-view-container__scroll-node.os-host-transition.os-host-overflow.os-host-overflow-y > div.os-padding > div > div > div.main-view-container__scroll-node-child > section > div.contentSpacing._4c3b6e4e88112fc8ef88512cbe7521ed-scss.da51a6e223c7200d373a2fd0614d7c33-scss > div.faffb409617fd7cf35017fde898cf860-scss > div > div > a").textContent.replace(/[^A-Za-z]/g,""),e=document.querySelector("#main > div > div.Root__top-container > div.Root__main-view > main > div.os-host.os-host-foreign.os-theme-spotify.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden.main-view-container__scroll-node.os-host-transition.os-host-overflow.os-host-overflow-y > div.os-padding > div > div > div.main-view-container__scroll-node-child > section > div.contentSpacing._4c3b6e4e88112fc8ef88512cbe7521ed |
import Data.List | |
import Data.Ord | |
main = interact $ (=<<) (\x -> show (length x) ++ " " ++ head x ++ "\n") | |
. sortBy (flip $ comparing length) | |
. group . sort | |
. words |
bla |
" vimrc | |
" [email protected] | |
" Sat Sep 12 01:04:02 AM CEST 2020 | |
let g:tex_flavor = "latex" | |
call plug#begin() " {{{ | |
" Completion | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'mattn/emmet-vim' |
#!/usr/bin/python3.8 | |
import sys | |
import math | |
import unicodedata | |
table = [ | |
["A", "ALEF", "ALPHA"], # 001 Α α א | |
["B", "BET", "BETA"], # 002 Β β ב | |
["C", "GIMEL", "GAMMA"], # 003 Γ γ ג |