Skip to content

Instantly share code, notes, and snippets.

@ennanco
ennanco / Dotfiles_backup.md
Last active December 25, 2025 02:28
Managing the dotfiles with style (git bare repo) 😎

I have recently come accross with a new solution to one of my biggest headaches in any linux system and it is to manage the nightmareof the dot files. I have previously used stow in order to mantain the symbolic links, but there is a much better solution using git bare repositories.

1. Creating the repository

  1. Create a git bare repository with the following line
    mkdir $HOME/.cfg
    git init --bare $HOME/.cfg
  1. Create an alias for a better managing of the configuration
@ghing
ghing / README.md
Last active December 16, 2025 20:18
User script and bookmarklet for copying current page title and URL as a Markdown link

Link copying bookmarklets and user scripts

I often want to copy the link to a page I'm viewing in the browser to the clipboard to paste it in a note or document that I'm editing. These are bookmarklets and user scripts to help with this task.

What's in here?

  • copy_markdown_link_bookmarklet.js: A bookmarklet that copies the the title and URL of the current page to the clipboard as a Markdown-formatted link. This works in Chrome, but not in Firefox, I think because "Writing to the clipboard is available without permission in secure contexts and browser extensions, but only from user-initiated event callbacks. Browser extensions with the "clipboardWrite" permission can write to the clipboard at any time." (See https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API)
  • copy_markdown_link_userscript.js: A user script that copies the the title and URL of the current page to the clipboard as a Markdown-formatted link. I wrote this because Firefox didn't seem to support providing clipboard access
@Chaphasilor
Chaphasilor / proz-helper.js
Last active June 27, 2023 11:31
A Tampermonkey script for importing csv data into Proz
// ==UserScript==
// @name Proz Helper
// @author Chaphasilor
// @namespace https://github.com/Chaphasilor
// @source https://gist.githubusercontent.com/Chaphasilor/54bb6dd2b12825e8ad5b7c364c1f4479/
// @updateURL https://gist.githubusercontent.com/Chaphasilor/54bb6dd2b12825e8ad5b7c364c1f4479/raw/
// @downloadURL https://gist.githubusercontent.com/Chaphasilor/54bb6dd2b12825e8ad5b7c364c1f4479/raw/
// @version 1.1.5
// @description Lets you import .csv files into proz!
// @match https://proz.gsi.de/index.php*
@adrianbartyczak
adrianbartyczak / aws-signature-creator.sh
Created October 24, 2019 01:54
A signature creator for AWS signature version 4
#!/usr/bin/env bash
#
# File:
# aws-signature-creator.sh
#
# Description:
# A signature creator for AWS signature version 4
#
# References:
# https://czak.pl/2015/09/15/s3-rest-api-with-curl.html
@PARC6502
PARC6502 / OpenSourceBaas.md
Last active March 9, 2026 21:26
List of open source, self hosted BaaS - Backend as a service

Backend as a Service

Note on sizes: a lot of those might be inaccurate as there might be many microservices required aside from the core release/docker image. I haven't tested these recently so I'm not sure

Supabase - ~94.9K stars

  • Designed explicitly as an open source Firebase alternative
  • Typescript based
  • Docker support
  • Full Postgres database with Realtime subscriptions

PocketBase - ~54.5K stars

Laravel alternatives in NodeJS

These are alternative packages/frameworks in NodeJS that cover some of the primary features in Laravel. This is by no means a comprehensive list of Laravel features (or a comprehensive list of NodeJS alternatives).

Depending on your perspective, this list either shows how it's possible to switch from Laravel to NodeJS or shows why you'd want to stay with Laravel 😃


Full stack framework alternatives: Nest, Adonis

@debojyoti
debojyoti / lenovo_ideapad_330_ubuntu.md
Last active December 21, 2024 14:30
Lenovo ideapad 330 (15ARR) ubuntu issues and there solutions

Lenovo ideapad 330 (15ARR) ubuntu issues and their solutions

Issue-1: None of the ubuntu distros are getting installed

Solution: Ubuntu distros lower than 18.10 will not work in this laptop, as minimum kernal version required is 4.18.

So install ubuntu 18.10 / xubuntu 18.10 / lubuntu 18.10 / kubuntu 18.10 in UEFI mode

Issue-2: Wifi is not working

@rmi1974
rmi1974 / how_to_force_a_disk_to_reallocate_bad_sectors.md
Last active March 12, 2026 07:26
How to force a disk to reallocate bad sectors #disk #health #commandlinefu

How to force a disk to reallocate bad sectors

Courtesy of [How to force a disk to reallocate bad sectors][1].

Sometimes a hard disk is hinting on an upcoming failure. Some disks start to make unexpected sounds, others are silent and only cause some noise in your syslog. In most cases the disk will automatically reallocate one or two damaged sectors and you should start planning on buying a new disk while your data is safe. However, sometimes the disk won’t automatically reallocate these sectors and you’ll have to do that manually yourself. Luckily, this doesn’t include any rocket science.

A few days ago, one of my disks reported some problems in my syslog while rebuilding a RAID5-array:

Jan 29 18:19:54 dragon kernel: [66774.973049] end_request: I/O error, dev sdb, sector 1261069669
@eddiewebb
eddiewebb / readme.md
Last active January 12, 2026 06:31
Hugo JS Searching with Fuse.js
@baramon
baramon / freee-exchange-rate.user.js
Last active March 18, 2020 02:51
Freeeの経費精算に為替換算機能を追加(インストール方法はこのページの一番下を参照 / The installation instruction is at the foot of the page)
// ==UserScript==
// @name freee Echange Rate Converter
// @namespace http://takram.com/
// @version 2018.09.14
// @match https://secure.freee.co.jp/expense_applications_v2
// @match https://secure.freee.co.jp/expense_applications_v2/*
// @grant GM_xmlhttpRequest
// @require https://unpkg.com/vue
// ==/UserScript==