Skip to content

Instantly share code, notes, and snippets.

@athalhammer
athalhammer / uberank.sh
Last active April 19, 2024 21:41
uberank
git clone https://github.com/athalhammer/wikidata-rank-hdt.git
cd wikidata-rank-hdt
wget https://danker.s3.amazonaws.com/uberank.hdt.bz2
bunzip2 uberank.hdt.bz2
mv uberank.hdt rank.hdt
docker-compose up
# call http://localhost:80
##### EXAMPLE QUERY #####
@athalhammer
athalhammer / ubuntu-dell-xps-9520.md
Last active February 16, 2023 20:25
Ubuntu on Dell XPS 9520

Ubuntu on Dell XPS 9520

Before installing Ubuntu:

  1. For dual boot, disable Bitlocker in Windows
  2. Update BIOS (and everything else that Dell recommends) via Windows
  3. Switch from RAID to AHCI in Bios
  4. Use Windows recovery to fix new disk setup
  5. Disable Fast Startup in Windows
  6. Disable secure boot in BIOS (or make sure it's disabled)
  7. Shrink main partition in Windows
@athalhammer
athalhammer / .config#terminator#config
Last active January 3, 2023 16:05
"Ubuntu Yaru" or "Gnome Adwaita" Terminator theme
[global_config]
[keybindings]
[profiles]
[[default]]
background_color = "#2c001e"
cursor_color = "#aaaaaa"
foreground_color = "#f3f3f3"
scrollback_infinite = True
palette = "#171421:#c01c28:#26a269:#a2734c:#3584e4:#a347ba:#2aa1b3:#d0cfcc:#5e5c64:#f66151:#33d17a:#e9ad0c:#99c1f1:#c061cb:#33c7de:#ffffff"
[layouts]
@athalhammer
athalhammer / qrank_danker.sh
Last active November 10, 2022 22:07
Spearman correlation: Wikidata QRank and Wikidata PageRank (danker)
#!/usr/bin/env bash
export LC_ALL=C
if [ ! -f "qrank_sorted.tsv" ]; then
wget -O - https://qrank.toolforge.org/download/qrank.csv.gz | \
gunzip -c | \
tail -n+2 | \
sed "s/,/\t/" | \
sort -k1,1 \
> qrank_sorted.tsv