Skip to content

Instantly share code, notes, and snippets.

@the-ge
the-ge / your_application.desktop
Created December 28, 2025 19:48 — forked from HamidMolareza/your_application.desktop
A template for Ubuntu desktop entry
# This is a sample .desktop file for Your Application
# Add this to: ~/.local/share/applications/your_application.desktop OR /usr/share/applications/your_application.desktop
[Desktop Entry]
# Version of the Desktop Entry Specification
Version=1.0
# Type of entry, should be "Application" for application launchers
Type=Application

GitHub Markdown Demo

Headings

ATX headings

Tip

ATX headings need at least one space between the # characters and the heading text.

@the-ge
the-ge / conventional-commits-cheatsheet.md
Created December 3, 2025 16:51 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commits Cheatsheet
@the-ge
the-ge / in_memory_files.php
Created June 26, 2025 13:30 — forked from mmacia/in_memory_files.php
Generate files in-memory with PHP
<?php
/**
* This snippet shows a PHP neat trick: build a file into memory without use the filesystem.
*/
$fp = fopen('php://memory', 'rw'); // open an in-memory handler
for ($i = 0; $i < 100; ++$i) { // write some data to handler
fwrite($fp, $i."\n");
@the-ge
the-ge / rgba-to-hex.sass
Created March 28, 2025 13:18 — forked from deeperton/rgba-to-hex.sass
Converter RGBA() to #HEX color with applying alpha-channel + additional opacity
// converter rgba(r, g, b, a) color to #HEX string without alpha channel,
// with optional applying afterwards opacity ($opacity)
// by default alpha channel for rgba-color is applying against white background,
// but you can change it by setting third argumnet ($background)
@function rgba-to-rgb($rgba, $opacity: 0, $background: #fff) {
@if $opacity > 0 {
@if $opacity < 1 {
$opacity: $opacity * 100
}
@return mix(mix(rgb(red($rgba), green($rgba), blue($rgba)), $background, alpha($rgba) * 100%), rgb(255,255,255), $opacity)
<?php
return [
'&#xE84D;' => '3d_rotation',
'&#xE190;' => 'access_alarm',
'&#xE191;' => 'access_alarms',
'&#xE192;' => 'access_time',
'&#xE84E;' => 'accessibility',
'&#xE84F;' => 'account_balance',
'&#xE850;' => 'account_balance_wallet',
@the-ge
the-ge / country_date_formats.csv
Created December 21, 2024 07:37 — forked from mlconnor/country_date_formats.csv
Listing of countries with their preferred date formats, ISO3166 code, ISO629-2
ISO 3166 Country Code ISO639-2 Country Code Country ISO 3166 Country Code ISO639-2 Lang Language Date Format
ALB AL Albania sqi sq Albanian yyyy-MM-dd
ARE AE United Arab Emirates ara ar Arabic dd/MM/yyyy
ARG AR Argentina spa es Spanish dd/MM/yyyy
AUS AU Australia eng en English d/MM/yyyy
AUT AT Austria deu de German dd.MM.yyyy
BEL BE Belgium fra fr French d/MM/yyyy
BEL BE Belgium nld nl Dutch d/MM/yyyy
BGR BG Bulgaria bul bg Bulgarian yyyy-M-d
BHR BH Bahrain ara ar Arabic dd/MM/yyyy
@the-ge
the-ge / README.md
Created October 15, 2024 13:12 — forked from cbj4074/README.md
Creating a Certificate Authority for Self-Signing TLS Certificates with OpenSSL

Creating the CA (Certificate Authority)

There is quite a bit of preparation and configuration required to create a CA. Fortunately, once the configuration is correct, the remainder of the process is relatively simple.

Create necessary directories and files

Absent these directories, openssl will emit errors during certain steps throughout the overall process.

$ cd ~
@the-ge
the-ge / README.md
Created September 13, 2024 11:44 — forked from washingweb/README.md
bash nameref
@the-ge
the-ge / add_CA_on_linux.md
Created September 13, 2024 06:06 — forked from hamburghammer/add_CA_on_linux.md
Add CA cert to local trust store on CentOS, Manjaro, Debian or Ubuntu
  • Open a webpage that uses the CA with Firefox
  • Click the lock-icon in the addressbar -> show information -> show certificate
  • the certificate viewer will open
  • click details and choose the certificate of the certificate-chain, you want to import to CentOS
  • click "Export..." and save it as .crt file
  • Copy the .crt file to /etc/pki/ca-trust/source/anchors on your CentOS machine
  • run update-ca-trust extract
  • test it with wget https://example.com

On Manjaro (arch) the location for the certificates is: /usr/share/ca-certificates/trust-source/anchors (low priority) or /etc/ca-certificates/trust-source/anchors/ (high priority) and the command to update is update-ca-trust extract.