Skip to content

Instantly share code, notes, and snippets.

@andreibosco
andreibosco / gist:cb8506780d0942a712fc
Created October 21, 2014 17:28
Using GNU Stow to manage your dotfiles

Fonte: http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to-manage-your-dotfiles.html?round=two

I accidentally stumbled upon something yesterday that I felt like sharing, which fell squarely into the "why the hell didn't I know about this before?" category. In this post, I'll describe how to manage the various configuration files in your GNU/Linux home directory (aka "dotfiles" like .bashrc) using GNU Stow.

The difficulty is that it would be helpful to manage one's configuration files with a version control system like Git, Mercurial or Bazaar, but many/most dotfiles reside at the top-level of your home directory, where it wouldn't be a good idea to initialize a VCS repository. Over time I've come across various programs which aim to manage this for you by keeping all the files in a subdirectory and then installing or linking them into their appropriate places. None of those programs ever really appealed to me. They would require a ton of dependencies (like Ruby and a ton of libraries for it) or t

@johnathanmay
johnathanmay / logitech-mx-master-3-extras-for-linux-with-logiops.md
Last active January 1, 2025 00:16
How to install and configure PixlOne's logid to program Logitech MX Master 3 buttons on Linux.

Logitech MX Master 3 Extras for Linux With logiops

The Logitech Options program isn't available for Linux, but by a nice guy on GitHub (PixlOne) created an open source project that lets you obtain some of that functionality. It's called logiops. It works in conjunction with the Solaar project as well, which I find especially handy since that shows your available battery life in the system tray and lets you pair/unpair devices with the Logitech Unifying Receiver.

Here are some additional pages with info that I used to generate this documentation:

@smuuf
smuuf / a2manage.sh
Created January 28, 2022 10:19
a2enmod and a2dismod for Alpine
#!/bin/sh
# Usage:
# ./a2manage.sh a2dismod proxy.*
# ./a2manage.sh a2enmod proxy proxy_fcgi ssl
MODS_A_CONF_PATH="/etc/apache2/*.conf"
MODS_B_CONF_PATH="/etc/apache2/conf.d/*.conf"
function a2enmod {
@sundowndev
sundowndev / GoogleDorking.md
Last active January 1, 2025 00:07
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@Klerith
Klerith / pasos-node-typescript.md
Last active January 1, 2025 00:00
Configurar proyecto de Node con TypeScript

Pasos para usar Node con TypeScript con Nodemon

Más información - Docs Oficiales

  1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo
npm i -D typescript @types/node
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
@chirag-chhajed
chirag-chhajed / aab.md
Created June 15, 2024 15:56
Expo APK/AAB Building Tutorial (No EAS Required)

Here's the list with the additional points:

  1. Ensure that you have OpenJDK 17, Android Studio, and its associated tools and NDK (Native Development Kit) installed on your system.

  2. Initialize a new Expo project by executing the following command in your terminal: pnpm create expo-app@latest. This command will prompt you to provide some details about your project, such as the project name and configuration options.

  3. Before building the Android app, you need to prebuild the android directory. Run the command pnpm expo prebuild to generate the necessary files. Additionally, you should provide your app's package name during this step. For example, if your app's package name is com.example.app.

  4. Generate a keystore file. Use an administrator shell to create the keystore. Run the following command: keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000 and enter your password (store it safely somewhere) and details.

@JakubPetriska
JakubPetriska / quotes.csv
Last active December 31, 2024 23:53
Motivational quotes
Author Quote
Thomas Edison Genius is one percent inspiration and ninety-nine percent perspiration.
Yogi Berra You can observe a lot just by watching.
Abraham Lincoln A house divided against itself cannot stand.
Johann Wolfgang von Goethe Difficulties increase the nearer we get to the goal.
Byron Pulsifer Fate is in your hands and no one elses
Lao Tzu Be the chief but never the lord.
Carl Sandburg Nothing happens unless first we dream.
Aristotle Well begun is half done.
Yogi Berra Life is a learning experience, only if you learn.
@afrolino02
afrolino02 / generarBulletjournal.py
Last active December 31, 2024 23:52
Gist para crear bullet journal en python
import os
from datetime import datetime, timedelta
from xmlrpc.client import DateTime
import calendar
import locale
locale.setlocale(locale.LC_TIME, 'es_CO.UTF-8')
# Templates
# Función para crear carpetas y archivos
@ezhevita
ezhevita / Ryujinx Games List Compatibility.csv
Last active December 31, 2024 23:49
Reconstructed Ryujinx games list compatibility database
issue_number issue_title extracted_game_id issue_labels extracted_status last_event_date events_count
42 ARMS - 01009B500007C000 01009B500007C000 status-playable;ldn-works;LAN playable 2024-08-28 7:49:24 9
43 Pokemon Quest - 01005D100807A000 01005D100807A000 status-playable playable 2022-02-22 16:12:32 10
44 Retro City Rampage DX status-playable playable 2021-01-05 17:04:17 8
45 Kirby Star Allies - 01007E3006DDA000 01007E3006DDA000 status-playable;nvdec playable 2023-11-15 17:06:19 23
46 Bayonetta 2 - 01007960049A0000 01007960049A0000 status-playable;nvdec;ldn-works;LAN playable 2022-11-26 3:46:09 10
47 Bloons TD 5 - 0100B8400A1C6000 0100B8400A1C6000 Needs Update;audio;gpu;services;status-boots boots 2021-04-18 23:02:46 5
48 Urban Trial Playground - 01001B10068EC000 01001B10068EC000 UE4;nvdec;online;status-playable playable 2021-03-25 20:56:51 8
49 Ben 10 - 01006E1004404000 01006E1004404000 nvdec;status-playable playable 2021-02-26 14:08:35 8
50 Lanota status-playable playable 2019-09-04 1:58:14 5
@cosimo
cosimo / migrate-templates.py
Created May 8, 2024 15:52
Migrate Sendgrid templates between different accounts
"""
Migrates SendGrid templates from one account to another.
Requires a `.env` file with the following variables:
- SOURCE_SENDGRID_API_KEY
- DESTINATION_SENDGRID_API_KEY
There is not much error handling here. This is not a place of honor.
It turned out to run quite smoothly still.
"""