Skip to content

Instantly share code, notes, and snippets.

View powpingdone's full-sized avatar

Aidan powpingdone

View GitHub Profile
"""
This python script will find flatpak deduplication size stats.
Made with :heart: by powpingdone#3611, or just powpingdone on github.
Explaination for output:
'no dedupe': The size that the ostree repository would take up if files were not deduplicated.
'dedupe': The actual size of the ostree repository.
'singlet': The size of all files that are referenced once.
'orphan': The size of all files not referenced (ie, only one hard link).
* Package: dev-libs/rocm-opencl-driver-2.7.9999
* Repository: rocm
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
* FEATURES: ccache network-sandbox preserve-libs sandbox userpriv usersandbox
dev-libs/rocm-opencl-driver: 23 seconds average for 1 merge
2019-09-19T14:40:28 >>> dev-libs/rocm-opencl-driver: 23 seconds
0;emerge 13:43:19 1|2 rocm-opencl-driver 00:23 (root@argil-pc)^G * FEATURES='assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-lo
cks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs un
merge-orphans userfetch userpriv usersandbox usersync xattr'
* CFLAGS='-O2 -pipe -march=native -flto=12 -ftree-vectorize -ftree-loop-distribution -ftree-loop-distribute-patterns -floop-interchange -Wl,-O1 -Wl,--as-needed -Wl,-flto -Wl,-O2'
g++ -c -pipe -std=c++11 -march=x86-64 -mtune=generic -pipe -fstack-protector-strong -fno-plt -O3 -Wall -W -D_REENTRANT -fPIC -DNDEBUG -DPROJECT_DEFINED_APP_NAME="\"Dust3D\"" -DPROJECT_DEFINED_APP_VER="\"0.0.0.1\"" -DPROJECT_DEFINED_APP_HUMAN_VER="\"0.0-unversioned\"" -DPROJECT_DEFINED_APP_REPOSITORY_URL="\"https://github.com/huxingyi/dust3d\"" -DPROJECT_DEFINED_APP_ISSUES_URL="\"https://github.com/huxingyi/dust3d/issues\"" -DPROJECT_DEFINED_APP_REFERENCE_GUIDE_URL="\"http://docs.dust3d.org\"" -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Ithirdparty/QtAwesome/QtAwesome -Isrc -Ithirdparty/QtWaitingSpinner -Ithirdparty/json -Ithirdparty/thekla_atlas/src -Ithirdparty/thekla_atlas/src/thekla -Ithirdparty/thekla_atlas/extern/poshlib -Ithirdparty/thekla_atlas/src/nvmesh -Ithirdparty/thekla_atlas/src/nvmesh/param -Ithirdparty/thekla_atlas/src/nvcore -Ithirdparty/thekla_atlas/src/nvimage -Ithirdparty/thekla_atlas/src/nvmath -Ithirdparty/meshlite -isystem /usr/local/include -isystem /u
from random import randint
filename=input("Filename? (dont add .svg)\n")
f=open(filename+".svg","w")
f.write("<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">")
iteration=eval(input("Iterations? (more iterations more randomness)\n"))
paths=["C","S","Q","L","H","V"]
randmax=randint(200,1000)
def gen(path,max):
if path=="C":