Skip to content

Instantly share code, notes, and snippets.

@MildlyInterested
MildlyInterested / arma_useful.md
Last active November 20, 2024 22:46
Arma useful things

Arma Preset Creator by ColinM

create HTML presets from steam collections (with a second, optional, mods collection)

https://armapresetcreator.co.uk/

PAA Converter in your Browser by Gruppe Adler

converts jpg, png to PAA and vise versa

@robkovacs
robkovacs / figma-copy.md
Last active November 20, 2024 22:46
Copy Figma objects via JS
  1. Copy the object in Figma
  2. Open Clipboard Inspector or a tool like it that can read the raw data off your clipboard.
  3. When you paste the Figma object into this tool, you should see something that's type text/html, and possibly something of type text/plain. The text/plain one will be the text content of your object, which you can ignore.

In the text/html, you're looking for:

  1. An HTML comment starting with figmeta:
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active November 20, 2024 22:46
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@fedragon
fedragon / sdkman_with_fish
Last active November 20, 2024 22:46
How to use SDKMan! with Fish shell
# Install bass (https://github.com/edc/bass) to be able to use bash utilities in Fish
fisher add edc/bass
touch ~/.config/fish/functions/sdk.fish
# paste content in ~/.config/fish/functions/sdk.fish, then save
function sdk
bass source ~/.sdkman/bin/sdkman-init.sh ';' sdk $argv
end
@fnky
fnky / ANSI.md
Last active November 20, 2024 22:44
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27

Mounting VirtualBox shared folders on an Ubuntu guest

This guide will walk you through the steps on how to setup a VirtualBox shared folder inside an Ubuntu VM that has been exported from an AWS EC2 instance.

Prerequisites

This guide assumes that you are using the following setup:

Initial Steps

Since version 2.23, git-blame has a feature to ignore certain commits. This feature is useful to ignore large formatting or apparently unimportant changes.

How to use

  1. Create a revisions list file. The file name is usually .git-blame-ignore-revs
  2. Set the file as a default ignore file for blame by git config blame.ignoreRevsFile .git-blame-ignore-revs

The file format is described in git-fsck's man: https://git-scm.com/docs/git-fsck#Documentation/git-fsck.txt-fsckskipList

@sol-prog
sol-prog / commands.sh
Last active November 20, 2024 22:37
Install GCC 9 on Raspberry Pi and build C++17 programs
# Commands used in the video https://youtu.be/-bCG87jBDqA :
sudo apt update && sudo apt upgrade -y
git clone https://bitbucket.org/sol_prog/raspberry-pi-gcc-binary.git
cd raspberry-pi-gcc-binary
tar -xjvf gcc-9.1.0-armhf-raspbian.tar.bz2
sudo mv gcc-9.1.0 /opt
cd ..
rm -rf raspberry-pi-gcc-binary
@yelocode
yelocode / datatable.html
Created August 28, 2023 02:31
Tailwind css Data table
<div>
<section class="mt-10">
<div class="mx-auto max-w-screen-xl px-4 lg:px-12">
<!-- Start coding here -->
<div class="bg-white dark:bg-gray-800 relative shadow-md sm:rounded-lg overflow-hidden">
<div class="flex items-center justify-between d p-4">
<div class="flex">
<div class="relative w-full">
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
<svg aria-hidden="true" class="w-5 h-5 text-gray-500 dark:text-gray-400"
@gerarldlee
gerarldlee / Experimenting with ChromeOS on VirtualBox.md
Last active November 20, 2024 22:33
Installing ChromeOS on VirtualBox using the NeverWare build

Installing ChromeOS on VirtualBox

  1. Download the NeverWare's ChromeOS build from http://www.neverware.com/freedownload

  2. Extract the *.bin.zip

  3. Convert it to VDI. vboxmanage convertdd chromiumos_image.bin chromiumos_image.vdi

  4. mv chromiumis_image.vdi C:\t\v\chromeos\