Skip to content

Instantly share code, notes, and snippets.

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

Miguel Caceres FoxNeo

👨‍💻
Focusing
  • Germany
View GitHub Profile

SSH store connections

open the file with an editor like vim or nano.

$ ~/.ssh/config

or

$ /etc/ssh/ssh_config

example:

@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:

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

IntelliJ IDEA shortcurts

This are some of shortcuts, that I use.

System.out.println();

sout

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

psvm

@FoxNeo
FoxNeo / show-shells.md
Created January 6, 2022 17:24
Command to show all shells on your system
cat /etc/shells
@FoxNeo
FoxNeo / run-typescript-in-terminal.md
Last active June 13, 2022 15:26
A short tutorial, how to run TypeScript in Terminal

Run TypeScript code from terminal

Create a node project:

$ npm init

Add to your node project:

$ npm install typescript --save-dev

Add TypeScript config

SSH key gen rsa

ssh-keygen -t rsa -b 4096

SSH key gen github

$ ssh-keygen -t ed25519 -C "[email protected]"
@FoxNeo
FoxNeo / python-clicker.py
Created June 8, 2023 17:37
To click automaticaly on web pages
import time
import threading
import sys
from pynput.mouse import Controller, Button
from pynput.keyboard import Listener, KeyCode
TOOGLE_KEY = KeyCode(char="t")
EXIT_KEY = KeyCode(char="q")
@FoxNeo
FoxNeo / git-commands.md
Last active July 19, 2024 09:50
Command to sign commit or other configuration

Git commands

show global confg

$ git config --global --list

sign commits local repository

$ git config commit.gpgsign true