← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 57
  1. Mount and unmount a LUKS volume using Bash functions

    I have a LUKS encrypted volume that I only need from time to time.

  2. Postgres Initial Linux Configuration Guide

    Accessing psql sudo -i -u postgres psql Create a new database and user Create a new user: CREATE USER theusername WITH PASSWORD 'thepassword'; Create a new database: CREATE DATABASE thedatabase; Grant privileges: GRANT ALL PRIVILEGES ON DATABASE th…

  3. Bash string manipulation in program arguments

    In this code snippet, I would like to run an application with a URL payload based on date and time.

  4. Generate a self-signed certificate for Go

    Use OpenSSL generate a self-signed certificate for Golang.

  5. Use Linux diff command for line by line comparison

    Use Linux diff command to compare files line by line.

  6. Git Cheat Sheet

    Creating or cloning a Repository git init Initializes a new Git repository in the current directory git clone https://git[.]johnpili[.]com/path/to/repo.git Clones a repository using HTTPS protocol from a remote location git clone ssh://git[.]johnpili[.]co…

  7. Change Microsoft SQL Server Data Location

    Let’s say you have an existing Microsoft SQL data and want to move it to a different disk or directory.

  8. Recursively delete files with a specific file extension

    Delete files with specified file extension recursively.

  9. Using Unix Domain Socket in Go

    You can use Unix Domain Socket aka AF_UNIX for your interprocess communication.

  10. Check JPA Query Type

    I am developing a repository as a service application.

  11. Using Vue without a build step

    Background I would like to share my experience using Vue 2 without a build step in my project and the key factors behind this approach.

  12. Set HTTP Request Body Size in Go

    Use http.MaxBytesReader to limit and control the size of the HTTP request body.

  13. Boot Linux without a splash screen

    If you prefer to boot up your Linux machine with the boot messages rather than the distro splash screen.

  14. Start a React project without using CRA

    Let’s start a React project without using create-react-app (CRA).

  15. The Pragmatic Programmer - It's your life

    A sound bite from The Pragmatic Programmer: Your Journey To Mastery, 20th Anniversary Edition (2nd Edition) Interested?

  16. Change your SSH server port to reduce brute force attacks

    Reduce SSH brute force attacks by changing your default SSH server (sshd) port from port 22 to a different one.

  17. Rsync with different SSH port

    Some Linux servers were security hardened by changing the default SSH port from port 22 to a different port number.

  18. Golang with reCAPTCHA

    Google’s reCAPTCHA is one of the tool we can use to stop malicious internet bots from abusing our web applications.

  19. Embed Resources in Go

    The go:embed feature was introduce in Go 1.16.

  20. Python batch file MD5 checksum generator and checker

    I am backing-up a large number of files to another computer when this idea came to me to write a Python script that generate and validate batch MD5 checksum.

  21. Python rename files that begins with matching string

    Do you want to rename a number of files that begins with a specific name or string?

  22. Active Directory userAccountControl flags

    I was creating an Active Directory (AD) security auditing tool in Go and Python when I stumbled upon the UserAccountControl flags.

  23. Fix Raspberry Pi SSH freezing issue

    If your SSH connection to your Raspberry Pi is freezing or unstable, it could be because of OpenSSH TOS (Type of Service).

  24. Setup Static IP Address in Debian Linux

    Setting up a static IP address in Debian Linux is straightforward.

  25. Allow user or group to run sudo on specific applications in Linux

    In some situation, we may want to delegate a sudo capability to Linux users or groups without completely giving them full access to the operating system.

  26. Remove Source Path From Go's Panic Stack Trace

    I would like to share the Golang’s build flag to remove the source path (GOPATH) from panic stack trace output.

  27. Generate text to image in Go

    In this blog post, I’ll share how to generate text to image in Go programming language (Golang).

  28. Linux systemd entry for your Go application

    Systemd is a Linux software suite that handles system services (daemon) and timers; it enables you to start, stop and restart your application using systemctl command.

  29. Create a Linux systemd entry for your application

    Systemd is a Linux software suite that handles system services (daemon) and timers; it enables you to start, stop and restart your application using systemctl command.

  30. Setup static IP address in Red Hat Enterprise Linux 8

    Setting up a static IP address in your RHEL or CentOS is straightforward.

  31. How to change MySQL’s root to use mysql_native_password in Ubuntu

    In some MySQL installation in Ubuntu.

  32. Create MySQL User and Grant Privileges

    Let say that you wanted to create a MySQL user for example johnpili and assign privileges.

  33. Login as Jenkins in Linux Terminal

    You may need to setup an SSH keys or environment variables to your Jenkins installations.

  34. Golang Linux Daemon

    You build your first Golang web application and running in a remote server via SSH.

  35. Randomly create a time.Sleep in Golang

    To randomly create a time.Sleep in Golang you can use the code snippet below.

  36. Bus Seat Reservation User Interface Concept using Vue.js

    In response to this facebook post.

  37. MySQL Query – List Records That Don’t Exist From Another Table

    Suppose you want to retrieve a list of products that are not in promotion.

  38. HTML drop-down placeholder

    Do you ever wanted to have an HTML drop-down with default selected value (placeholder) that the user cannot re-select once they selected any valid value options?

  39. How to clear your local Maven repository

    I was building a multi-module project and I faced with this annoying problem with maven that keeps using old version of the maven project even though I uses mvn install -U.

  40. Create Android Studio Shortcut on Ubuntu 18.04

    You can easily create an Android Studio shortcut by creating an desktop entry using the following the steps below.

  41. How to change Full Disk Encryption (LUKS) password on Ubuntu 18.04

    Did you enabled the full disk encryption (LUKS) on Ubuntu 18.04?

  42. Make your old laptop usable again with Linux

    Revive your old laptop back in service using Lubuntu a light-weight version of Ubuntu.

  43. Completely Delete USB Flash Drive Partition in macOS using diskutil

    You may want to completely erase the partition table of your USB flash drive, including the boot record.

  44. Load balancing and redundant Internet connection using TP-Link ER6020

    Overview I started my homelab journey in 2017, set up a small server to host my files and to test my web applications.

  45. Golang SQLite Simple Example

    In this post, I will show you a simple example how to use SQLite in Go (Golang).

  46. Generate text to image in Python

    Today, I will show you how you can generate image and add text using Python.

  47. Connect to Windows Shared Folder on Ubuntu 18.04 LTS

    In this post I will show you how to access Windows Shared folders from Ubuntu Linux.

  48. How to create a bootable Ubuntu USB in macOS with UNetbootin

    In this guide I will teach you how to create a bootable Ubuntu USB on macOS with UNetbootin.

  49. Neofetch is visually pleasing command-line system information tool

    I saw neofetch on reddit.

  50. Screen recording in Ubuntu 18.04 using Kazam

    Part of my work is to screen record (screencast): software demos and programming tutorial.