Skip to content

Instantly share code, notes, and snippets.

View JucaRei's full-sized avatar
:electron:
Focusing

JucaRei

:electron:
Focusing
View GitHub Profile
@JucaRei
JucaRei / linux-programs.md
Created May 15, 2023 21:38
Linux nice programs

GNU Alternatives

  1. top/htop -> bpytop, bottom
  2. ps -> procs
  3. cat -> bat
  4. sed -> sad
  5. find -> fd

Nice programs

@JucaRei
JucaRei / 00-install-arch-linux-2023.md
Created May 15, 2023 21:36 — forked from Zeitwaechter/00-install-arch-linux-2025.md
Installing Arch Linux (Encrypted) on a device 2023 (with a few extras)

To backup your old system:

  • rsync -aAXhv --exclude={"/dev/*","/lost+found","/mnt/*","/media/*","/proc/*","/run/*","/sys/*","/tmp/*","*cache"} / /[TARGET]

  • Do efivar --list
  • If you get any feedback, watch out for EFI specifics in this guide.
  • Warning: Some of the yay pacakges do take much time. You will at least spend an evening, installing all.

Local Development Techniques with Kubernetes

This talk is all live demos of tools developers can use in their inner-loop, at development time to be more productive with containers.

Start Easier

Docker Compose captures the build arguments and run arguments so we can focus on our coding.

@JucaRei
JucaRei / Readme.md
Created May 15, 2023 14:31 — forked from normal-carrot/Readme.md
Docker + nginx-proxy + let's encrypt + watchtower + fail2ban

Complete solution for websites hosting

This gist contains example of how you can configure nginx reverse-proxy with autmatic container discovery, SSL certificates generation (using Let's Encrypt) and auto updates.

Features:

  • Automatically detect new containers and reconfigure nginx reverse-proxy
  • Automatically generate/update SSL certificates for all specified containers.
  • Watch for new docker images and update them.
  • Ban bots and hackers who are trying to bruteforce your website or do anything suspicious.

https://github.com/reireias/dotseeker

grep -r -E -v -h '^\s*#' files | grep --color=none -E "^\s*alias " | sed -e 's/#.*//g' -e 's/^\s*//g' -e 's/\s*$//g' | sort | uniq -c | sort -nr
 90 alias ls='ls --color=auto'
 87 alias grep='grep --color=auto'
 59 alias fgrep='fgrep --color=auto'

59 alias egrep='egrep --color=auto'

@JucaRei
JucaRei / 0_README.md
Created May 13, 2023 23:35 — forked from 0xcaff/0_README.md
OpenVPN, rTorrent and Flood Docker Compose Configuration

The Setup

This is a docker-compose file for a simple, secure torrent setup. It includes [rTorrent] (a torrent client), [flood] (a web interface for rTorrent), [OpenVPN] (to tunnel traffic through your ISP) and a simple iptables firewall to allow rTorrent to only access the internet through a VPN.

To run everything, put your open vpn configuration file in ./vpn.ovpn and the other configuration files from this gist in a directory then go to that

@JucaRei
JucaRei / ffmpeg.md
Created May 13, 2023 15:00 — forked from nonwip/ffmpeg.md
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec
@JucaRei
JucaRei / 01 - macOS Workspace Setup.md
Created May 13, 2023 14:58 — forked from nonwip/01 - macOS Workspace Setup.md
My complete macOS Workspace Setup Tutorial!

Setting up workspace for web development...

If you are planning to use everything from this guide, do it in exact order, otherwise install only what you need...


Try my automated macOS setup... It will configure all of these automatically for you. If you don't want everything, feel free to clone repo and modify what you want/need!

dvL-den macOS Setup

@JucaRei
JucaRei / Kali Linux GUI on Termux Android.md
Created May 13, 2023 14:56 — forked from HimDek/Kali Linux GUI on Termux Android.md
This Guide will help you install Kali Linux in Android, that too with a GUI Desktop Environment within Android. It uses Termux to run Kali Linux in Android with XFCE4 Desktop Environment and a Tight VNC Server, which we connect to using a VNC Viewer app in Android.

How to install Kali Linux GUI Desktop in Android using Termux:

This Guide will help you install Kali Linux in Android, that too with a GUI Desktop Environment within Android. It uses Termux to run Kali Linux in Android with XFCE4 Desktop Environment and a Tight VNC Server, which we connect to using a VNC Viewer app in Android.

Just Follow these steps to install Kali Linux with XFCE4 Desktop GUI in Android using Termux:

  • Download and install Termux in Android. (Play Store release is no more updated, so is not recommended.)
  • Open Termux and run the following commands:
    apt update && apt install python python2 openssh -y