Skip to content

Instantly share code, notes, and snippets.

@psydvl
psydvl / file.sh
Last active September 28, 2023 17:29
JMESPath strange behaviour
#!/usr/bin/env bash
go install github.com/jmespath-community/jp@latest
# shellcheck disable=SC2089
data='[{
"stack": "",
"branch": [
"one/",
"two/"
@psydvl
psydvl / .gitignore
Last active November 3, 2023 19:21
Playground folder with generating folders
*
!.gitignore
!template.go
!template.bash
!new.sh
@psydvl
psydvl / !program.py
Last active May 17, 2022 19:19
Rewriting python code into pascal
def f(s,c,m):
if 41<=s<=50: return c%2==m%2
if s>50: return c%2!=m%2
if c==m: return 0
h = [f(s+1,c+1,m),f(s+2,c+1,m),f(s*2,c+1,m)]
return any(h) if (c+1)%2 == m%2 else all(h)
for s in range (1,41):
for m in range (1,7):
This file has been truncated, but you can view the full file.
(21:45:36) ERROR Data file not found. Creating new one. 
(21:45:36) INFO Performing Bottles checks... 
(21:45:36) INFO Runners path doesn't exist, creating now. 
(21:45:36) INFO Bottles path doesn't exist, creating now. 
(21:45:36) INFO Dxvk path doesn't exist, creating now. 
(21:45:36) INFO Vkd3d path doesn't exist, creating now. 
(21:45:36) INFO Nvapi path doesn't exist, creating now. 
(21:45:36) INFO Temp path doesn't exist, creating now. 
(21:45:36) INFO Runners found:
- sys-wine-6.0.2
@psydvl
psydvl / !Win postinstall.md
Last active March 28, 2024 13:52
My Windows minimal post-install (probably abandoned)

Install programms and neccesesary tools in Windows

Scoop.sh | Winget.run | winget

To run init.ps1, you should execute next two lines

Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb git.io/psydvl-win | iex

Script also doing little $PROFILE (both PowerShell 5&7) enhancement with functions:

Keybase proof

I hereby claim:

  • I am psydvl on github.
  • I am psydvl (https://keybase.io/psydvl) on keybase.
  • I have a public key ASBNIfrZ_Q9PUjYJt01HR5Nl-DOsRWwRHMjTns0Q1bMi2Ao

To claim this, I am signing this object: