nginx

Nginx proxy and webserver

Introduction: Today we’ll consider about: Basic Concepts: Understanding the difference between directive and context, inheritance model, and the order in which nginx selects server blocks and locations. What is Nginx? Nginx is a versatile web server known for its exceptional speed. Besides serving web content, it functions as a reverse proxy server and proxy, facilitating smooth integration with slower upstream servers like Unicorn or Puma. Nginx allows traffic distribution through load balancing, supports media streaming, dynamic image resizing, content caching, and much more....

April 2, 2024 · 7 min · 1367 words
wifi

How to display Wifi password?

What Will We Be Doing? In this article, I will describe how to display the Wi-Fi password, provided that your computer has previously connected to this network. Na Windowsie Skorzystamy z CMD czyli narzędzia do tłumaczenia poleceń w systemie Windows. CMD jest używane do tworzenia osadzonych odwołań. Większość tych poleceń korzysta z dokumentów i plików wsadowych do automatyzacji zadań, wykonywania zadań administracyjnych na wysokim poziomie oraz rozwiązywania problemów związanych z systemem operacyjnym....

November 14, 2023 · 2 min · 233 words
docker

Go Cheatsheet

Introduction Go, also known as Golang, is a programming language created by Google. It is an open-source language known for its exceptional performance and efficiency. It is ideal for building server-side software, developer tools, and web applications. Due to its simplicity, Go is becoming increasingly popular for creating scalable and efficient web applications and microservices. Useful Links A Tour of Go Go repl Go Lang wiki Hello World! package main import "fmt" func main() { message := greetMe("world") fmt....

October 19, 2023 · 6 min · 1205 words · Adam
hugo

Deploy hugo app && github actions

Deploying a Hugo Application with GitHub Actions GitHub Actions is a powerful tool for automating processes in GitHub repositories. In this article, we will discuss how to deploy a Hugo-based website using GitHub Actions. Configuring GitHub Actions Create a file named .github/workflows/deploy.yml in your repository. Add the following configuration to the deploy.yml file: name: Deploy website on: push: branches: - master jobs: deploy: runs-on: ubuntu-latest steps: - name: Get files uses: actions/checkout@v3 with: submodules: true fetch-depth: 0 - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: '0....

September 28, 2023 · 2 min · 232 words · Adam
docker

Traefik, Docker and SSL

What is Traefik? Traefik is an open-source dynamic reverse proxy and load balancer. It’s often used as a tool for managing traffic in containerized environments, such as Docker. This tool enables automatic redirection of network traffic to different services based on defined configuration rules. Additionally, it supports various communication protocols including HTTP, TCP, and UDP. In this guide, I’ll show you how to set up Traefik within Docker. Benefits of Using Traefik Traefik is a tool for routing network traffic in a microservices architecture....

August 31, 2023 · 2 min · 373 words · Adam
nextcloud

Docker Nextcloud

What is Nextcloud? Nextcloud is an excellent solution as a self-hosted alternative to Google Drive or Dropbox. I’m not going to tell you why you should use Nextcloud. Instead, I will show you how to install a Nextcloud server using Docker containers. This guide utilizes a Nginx reverse proxy configuration, which allows you to deploy your Nextcloud instance with SSL. This way, your Nextcloud deployment’s URL will use the HTTPS protocol, and file transfers will be secure....

August 7, 2023 · 5 min · 1019 words
mysql

MySql Cheatsheet

Displaying Data -- Display available databases SHOW DATABASES; -- Display available tables in the current database SHOW TABLES; -- Display fields from a table / Describe table structure SHOW FIELDS FROM table / DESCRIBE table; -- Display the command used to create a specific table SHOW CREATE TABLE table; -- Display a list of active processes (queries) in the database SHOW PROCESSLIST; -- Terminate a running process with a specified number KILL process_number; Select Queries -- Select all columns from a specific table SELECT * FROM table; -- Select all columns from two tables (creates a Cartesian product) SELECT * FROM table1, table2; -- Select specific columns from two tables (creates a Cartesian product) SELECT column1, column2 FROM table1, table2; -- Select data from a table that meets a specified condition SELECT ....

July 22, 2023 · 8 min · 1658 words · Adam
bash

Bash Cheatsheet

What is Bash? Bash is a so-called Linux shell. It is nothing more than a program that allows us to communicate with the system. There are various shells for the Linux system, but Bash is by far the most popular. For countless users, it is a fundamental tool for their work. What can I do with the BASH shell? Everything! It would be easier to list what you cannot do....

July 21, 2023 · 8 min · 1567 words · Adam
docker

Docker Cheatsheet

What is Docker? Docker is a way to containerize applications (placing code in boxes that can operate independently). It magically creates a virtual computer, but in reality, these are not virtual machines. Containers are boxes that do not have a host operating system, so they are independent of the device they run on. Benefits: Isolation: Each container operates in a separate environment. Portability: Containers are independent of the environment. Scalability: Easy addition and removal of containers based on the workload....

July 21, 2023 · 4 min · 651 words · Adam
iptables rules

Iptables

What is iptables? iptables is a tool used in Linux-based operating systems for configuring firewall rules. It allows filtering and forwarding of network packets based on various criteria such as IP addresses, ports, and protocols. It can be used for both protecting against network attacks and managing network traffic within the system. Useful rules iptables -A INPUT -p tcp --dport 80 -j ACCEPT: This command adds a rule to the filter table that accepts incoming TCP packets on port 80....

July 9, 2023 · 2 min · 237 words · Adam