Skip to content

Instantly share code, notes, and snippets.

View oguzkaganeren's full-sized avatar
👊

Oğuz Kağan EREN oguzkaganeren

👊
View GitHub Profile
@oguzkaganeren
oguzkaganeren / mirrorlist.sh
Created August 15, 2024 19:36 — forked from 2KAbhishek/mirrorlist.sh
Generate fastest mirrors for Arch linux
#!/bin/bash
# Install reflector
sudo pacman -S reflector
# Update mirrorlist
reflector | sudo tee /etc/pacman.d/mirrorlist
@oguzkaganeren
oguzkaganeren / gpg-import-and-export-instructions.md
Created January 17, 2021 16:22 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@oguzkaganeren
oguzkaganeren / spotihosts
Last active October 7, 2018 11:22
The hosts file entries to block Spotify audio ad servers.
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 adeventtracker.spotify.com
127.0.0.1 ads-fa.spotify.com
127.0.0.1 analytics.spotify.com
127.0.0.1 audio2.spotify.com
127.0.0.1 b.scorecardresearch.com
127.0.0.1 bounceexchange.com
127.0.0.1 bs.serving-sys.com
127.0.0.1 content.bitsontherun.com
127.0.0.1 core.insightexpressai.com