Skip to content

Instantly share code, notes, and snippets.

View jnbdz's full-sized avatar
👨‍💻
None stop

JN Σ jnbdz

👨‍💻
None stop
View GitHub Profile
# YES - Means it stays in a damaged VM (Qube)
# qrexec
-rwxr-xr-x 1 root root 26864 Mar 4 2022 qrexec-client-vm YES
-rwxr-xr-x 1 root root 18432 Mar 4 2022 qrexec-fork-server YES
lrwxrwxrwx 1 root root 18 Mar 4 2022 qrexec-policy -> qrexec-policy-exec YES
-rwxr-xr-x 1 root root 125 Mar 4 2022 qrexec-policy-agent YES
-rwxr-xr-x 1 root root 126 Mar 4 2022 qrexec-policy-daemon YES
-rwxr-xr-x 1 root root 124 Mar 4 2022 qrexec-policy-exec YES
#!/usr/bin/env python3
import copy
A = {'v1': {'configuration': {'$schema': '...', 'network': {'$schema': '...'}}}}
E = {'v1': {'configuration': {'network': {'entries': {'$schema': '...'}}}}}
expected = {'v1': {'configuration': {'$schema': '...', 'network': {'$schema': '...', 'entries': {'$schema': '...'}}}}}
#def safe_update_dict(d_to: dict, d_from: dict):
#!/usr/bin/env bash
curl -s https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints | grep -i li | grep -i \<code | awk -F '<' '{ print $3 }' | awk -F '>' '{ print $2 }'
#!/usr/bin/env bash
#
#/ rmcontainer helps remove obstinate containers that are not easily removed by *podman rm* command.
#/
#/ Usage: rmcontainer [OPTONS] [[PATH] [CONTAINER ID]]
#/
#/ OPTIONS:
#/
#/ General options:
#/
var win = window,
doc = document,
docElem = doc.documentElement,
body = doc.getElementsByTagName('body')[0],
x = win.innerWidth || docElem.clientWidth || body.clientWidth,
y = win.innerHeight|| docElem.clientHeight|| body.clientHeight;
alert(x + ' × ' + y);
#!/usr/bin/bash
echo -ne '##### (33%)\r'
sleep 1
echo -ne '############# (66%)\r'
sleep 1
echo -ne '####################### (100%)\r'
echo -ne '\n'
@jnbdz
jnbdz / convertAll.sh
Created May 12, 2022 05:39
I needed a quick little script to convert my iPhone HEIC files (image format from Apple) to jpg image format (works like a charm).
#!/usr/bin/bash
comvertAll() {
local heicFiles=$(ls ./106APPLE | grep -i heic)
for heicFile in ${heicFiles}
do
convert ./106APPLE/${heicFile} ./106APPLE-JPG/${heicFile}.jpg
done
}
comvertAll
Index: build.gradle
===================================================================
--- build.gradle (révision 1802325)
+++ build.gradle (copie de travail)
@@ -42,7 +42,8 @@
ext.pluginsDir = "${rootDir}/plugins"
// java settings
-def jvmArguments = ['-Xms128M', '-Xmx1024M']
+def jvmArguments = [System.getenv("OFB_MEM_XMS")?: '-Xms128M',
@jnbdz
jnbdz / registries.conf
Created March 21, 2022 00:28
sudo vim /etc/containers/registries.conf
[registries.search]
registries = ['docker.io', 'quay.io', 'registry.fedoraproject.org', 'registry.access.redhat.com']
# If you need to access insecure registries, add the registry's fully-qualified name.
# An insecure registry is one that does not have a valid SSL certificate or only does HTTP.
[registries.insecure]
registries = []
# If you need to block pull access from a registry, uncomment the section below
kex stop
kex --win -s