Skip to content

Instantly share code, notes, and snippets.

View FoxNeo's full-sized avatar
👨‍💻
Focusing

Miguel Caceres FoxNeo

👨‍💻
Focusing
  • Germany
View GitHub Profile
@FoxNeo
FoxNeo / show-shells.md
Created January 6, 2022 17:24
Command to show all shells on your system
cat /etc/shells

IntelliJ IDEA shortcurts

This are some of shortcuts, that I use.

System.out.println();

sout

public static void main(String[] args){}

psvm

Format SSD correct all sectors

Use the program blkdiscard

How to use blkdiscard

Find first the absolut path to the SSD for example /dev/sda3

$ sudo fdisk -l

Then use blkdiscard to delete all sectors in SSD

@FoxNeo
FoxNeo / fire-fly-iii-docker-compose.md
Created September 2, 2021 20:14
This is a sample docker-compose.yml file

Docker-compose fire-fly-III

docker-compose.yml

version: '3.3'

services:
  app:
    image: fireflyiii/core:latest
    restart: unless-stopped
 volumes:

SSH store connections

open the file with an editor like vim or nano.

$ ~/.ssh/config

or

$ /etc/ssh/ssh_config

example:

Import SSH Key

$ cat ~/id_rsa.pub >> ~/.ssh/authorized_keys

Linux show dns

This show your configurated DNS Server con your Linux:

systemd-resolve  --status

tcpdump

To check your local computer network traffic incoming and outcoming traffic with ip targets

$ sudo tcpdump

To save file

$ sudo tcpdump > output.log

Change folder to store ssh generated keys:

ssh-keygen -t rsa -b 4096 -C "[email protected]" -f $HOME/keys/id_rsa

gpg commands

List private keys:

$ gpg --list-secret-keys

List public keys:

gpg --list-keys