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 / gist:6fcfeed04a241cc5e4c38b5c4b3d4f14
Created February 6, 2022 14:08
Clear docker container log files
sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log"
@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...

#### Stop all containers
docker stop `docker ps -qa`
#### Remove all containers
docker rm `docker ps -qa`
#### Remove all images
diff -ur /opt/lampp-back/ /home/oguz/Downloads/xampp/pkg/xampp/opt/lampp/ > diff.txt
makepkg --printsrcinfo > .SRCINFO
makepkg -g
makepkg -g >> PKGBUILD && makepkg
makepkg -si --asdeps
makepkg -sri
sudo pacman -S npm
sudo npm i -g expo-cli
expo init ProjectName
sed -i '/. .\/configure.user/!b;n;cecho "$stripped_arg"' configure
needed magisk
`adb shell`
```
su
pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE
```
Description='Eduroam'
Interface=wlp2s0
Connection=wireless
Security=wpa-configsection
IP=dhcp
ESSID=eduroam
WPAConfigSection=(
'ssid="eduroam"'
'key_mgmt=WPA-EAP'
'eap=TTLS'
git config --global credential.helper store
git config credential.helper cache 9000000