Skip to content

Instantly share code, notes, and snippets.

View dannyNK's full-sized avatar

Danny Parker dannyNK

  • NinjaKiwi
  • Dundee
View GitHub Profile
@dannyNK
dannyNK / AdColony.txt
Created May 20, 2021 10:59
Scripts to add SKAdNetworkItems to an application plist from Ad Provider lists
4pfyvq9l8r.skadnetwork
yclnxrl5pm.skadnetwork
v72qych5uu.skadnetwork
tl55sbb4fm.skadnetwork
t38b2kh725.skadnetwork
prcb7njmu6.skadnetwork
ppxm28t8ap.skadnetwork
mlmmfzh3r3.skadnetwork
klf5c3l5u5.skadnetwork
hs6bdukanm.skadnetwork
@dannyNK
dannyNK / diskusage_by_ext.sh
Created April 15, 2021 08:31
Lists disk usage of files in the current folder by file extension
# Based on answer from Yuval here: https://askubuntu.com/a/1214458/687179
# output pairs in the format: `filename size`.
# I used `nawk` because it's faster.
find . -type f -print0 | xargs -0 stat -f'%N %z' | awk '
{
split($1, a, "."); # first token is filename
ext = a[length(a)]; # only take the extension part of the filename
size = $2; # second token is file size
total_size[ext] += size; # sum file sizes by extension
}