Skip to content

Instantly share code, notes, and snippets.

View dzc0d3r's full-sized avatar
🎯
Focusing

Walid Lamraoui dzc0d3r

🎯
Focusing
View GitHub Profile
@dzc0d3r
dzc0d3r / gpg_info.md
Created December 24, 2023 22:59 — forked from mdtanrikulu/gpg_info.md
Import GPG Key from External Backup Drive to new machine (MacOS)
  • To be able to import gpg key from external drive, first copy ~/.gnupg file from external drive to the host machine (do with finder)
  • via terminal, go into copied gnupg folder and try running gpg --homedir . --list-secret-keys
  • if you able to see "key found" information with your email address you are close to import your keys
  • in case you see such warning "gpg: conversion utf-8' us-ascii' failed: illegal byte sequence gpg:" you can ignore it
  • due to change from gpg to gpg2, you may not be able to export your keys with "gpg" command so try doing the rest with "gpg2" command
  • export your private key with gpg2 --homedir . --export-secret-key YOUR_MAIL_ADDRESS > private.key (it will ask your gpg password)
  • then go to your gpg suite, press import, find "private.key" file and import it (it will ask your gpg password)
  • and you are done!
@dzc0d3r
dzc0d3r / programmer.png
Last active November 11, 2022 16:16
👨🏻‍💻
programmer.png
@dzc0d3r
dzc0d3r / fire.png
Last active November 11, 2022 14:54
🔥
fire.png
@dzc0d3r
dzc0d3r / sparkles.png
Last active November 11, 2022 14:48
sparkles.png
@dzc0d3r
dzc0d3r / install-obsidian.sh
Created November 30, 2021 10:46 — forked from shaybensasson/install-obsidian.sh
Installing Obsidian (an advanced markdown editor) on Ubuntu
#!/usr/bin/env bash
# see https://forum.obsidian.md/t/gnome-desktop-installer/499
set -euo pipefail
icon_url="https://cdn.discordapp.com/icons/686053708261228577/1361e62fed2fee55c7885103c864e2a8.png"
#dl_url=${1:-}
dl_url=$( curl -s https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest \
| grep "browser_download_url.*AppImage" | tail -n 1 | cut -d '"' -f 4 )