Skip to content

Instantly share code, notes, and snippets.

@nat-418
nat-418 / nix-home-manager-neovim-setup.md
Last active May 8, 2024 07:40
Manage Neovim plugins (and more!) with Nix and Home Manager

Manage Neovim plugins (and more!) with Nix and Home Manager

Highly extensible software like Emacs, Vim, and Neovim tend to grow their own package managers. A software developer, for example, might want to install editor plugins that hook into a particular programming language's linter or language server. The programmer's text editor is therefore extended to support managing additional software to extend the text editor. If this loop continues for too long, the programmer's editor becomes more delicate and complex. The remedy for this problem is to manage software using dedicated tools apart

@vchernetskyi993
vchernetskyi993 / Cargo.toml
Last active May 8, 2024 07:38
Rust - Single testcontainer for multiple test functions
[package]
name = "testcontainers-sample"
version = "0.1.0"
edition = "2021"
[dev-dependencies]
async_once = "0.2.6"
aws-sdk-s3 = "0.28.0"
ctor = "0.2.4"
lazy_static = "1.4.0"
@davidvandenbor
davidvandenbor / hide_html.htaccess
Last active May 8, 2024 07:37
Apache: Hide HTML extension in URLs with htaccess
# This tag loads the rewrite module
<IfModule mod_rewrite.c>
# enable the rewrite engine
RewriteEngine On
# Set your root directory
RewriteBase /
# Remove the .html extension
RewriteCond %{THE_REQUEST} ^GET\ (.*)\.html\ HTTP
RewriteRule (.*)\.html$ $1 [R=301]
@bradtraversy
bradtraversy / terminal-commands.md
Last active May 8, 2024 07:37
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@diegorodrigo90
diegorodrigo90 / garmin-express-wine.md
Last active May 8, 2024 07:32
Installing garmin express in linux with wine

First we start by creating a wineprefix and installing our prerequisites from terminal:

WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks dotnet452 vcrun2010 corefonts
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks win7
/**
* The following code is derived from the original code from: http://schemingdeveloper.com.
* The derived version was developed by Rune Skovbo Johansen - http://runevision.com
*
* Modifications in the derived version:
*
* - Averaged normals are calculated as a weighted average based on face area,
* known as "face weighted normals" or "area weighted normals".
*
* - An ignoreFactor parameter has been added which can cull normals from the average
@j0xFF
j0xFF / atajos-VSCode.md
Created May 8, 2024 07:20 — forked from Heipry/atajos-VSCode.md
Atajos globales y personalizados de VSCode para teclado uk y es

Vscode Atajos

  • Mover linea - Alt + ↑ / ↓
  • Copiar linea - Shift + Alt + ↑ / ↓
  • Seleccionar siguiente aparición - Ctrl + D
  • Seleccionar todas las apariciones - Ctrl + Shift + L
  • Crear múltiples cursores - Ctrl + Alt+ ↑ / ↓
  • Selección multiple - Alt + Click
  • Mover bloque - Seleccionar . Alt + ↑ / ↓
  • Copiar bloque - Seleccionar . Shift + Alt + ↑ / ↓
@triplrrr
triplrrr / Windows Ricing Guide.md
Last active May 8, 2024 07:30
Windows Ricing Kit 2020

Ricing Windows in 2020

Many people like their things to look nice. I am one of those people. I like things to look nice all the time. One of the things I like to look nice is my PC's desktop. I have to look at it constantly, so it might as well be pretty.

What is 'ricing?'

Ricing is the term used to describe the process of making a desktop environment look nice. This usually involves at least several steps, including installing a window manager, a theme, custom icons, and making the terminal look nice. Windows, however isn't meant to have every single part of it tweaked and customized, so we have to make some concessions.

Note that many ricers think that ricing is about making their computer more efficient for their workflow. I disagree. I believe that improved workflow is a sideeffect of good aesthetic, and my personal aesthetic is based in functionality. Also cyberpunk.

What does this guide include?

This guide aims to be a resource for entry level ricers to ricing their Windows 10 environment.

Alpine.directive('typed', (el, { expression, modifiers }, { evaluateLater, effect, cleanup }) => {
const getStrings = evaluateLater(expression);
const modifierValue = (key, fallback) => {
if (-1 === modifiers.indexOf(key)) {
return fallback;
}
const value = modifiers[modifiers.indexOf(key) + 1];
@tanaikech
tanaikech / submit.md
Created May 8, 2024 05:27
Leveraging Gemini 1.5 API for Automated Test Case Generation in Google Apps Script Reverse Engineering

Leveraging Gemini 1.5 API for Automated Test Case Generation in Google Apps Script Reverse Engineering

Abstract

This report examines leveraging Gemini 1.5 API with Google Apps Script to automate sample input creation during script reverse engineering. Traditionally, this process is manual and time-consuming, especially for functions with numerous test cases. Gemini 1.5 API's potential to streamline development by automating input generation is explored through applying reverse engineering techniques to Google Apps Script samples.

Introduction