Skip to content

Instantly share code, notes, and snippets.

View RinMinase's full-sized avatar
❄️
Relaxing in Niflheim

Kristian Alunan RinMinase

❄️
Relaxing in Niflheim
View GitHub Profile
@RinMinase
RinMinase / addresses.ts
Created November 20, 2025 17:02
React Window V2
export const ComplexAddresses = [
{
city: "City name 1",
state: "State name 1",
zip: "0001",
capital: "capital",
price: "high",
cost: "very high cost",
stuff: "some stuff long value",
},
@RinMinase
RinMinase / index.js
Created June 11, 2025 11:01
Google App Script for Fetching Google Sheets data to insert to Firebase
function fetchDataFromGoogleSheets(sheetId, sheetName) {
try {
console.info ("Currently fetching spreadsheet")
var sheet = SpreadsheetApp.openById(sheetId).getSheetByName(sheetName);
if (!sheet) return {};
console.info ("Currently fetching spreadsheet data")
var sheetData = sheet.getDataRange().getValues();
@RinMinase
RinMinase / hosts
Created September 9, 2022 16:56
NPM or Yarn IPv6 Issues
2606:4700::6810:1723 registry.yarnpkg.com
2606:4700::6810:1723 registry.npmjs.org
2606:4700::6810:ab63 yarnpkg.com
@RinMinase
RinMinase / encode.bat
Created August 26, 2022 07:56
Drag and Drop encoding with UUID
@echo off
REM echo %1
for /f %%i in ('uuid') do set NEWFILENAME=%%i
REM echo "%NEWFILENAME%"
ffmpeg -i %1 "%NEWFILENAME%.mp4"
REM ffmpeg -i %1 -crf 25 "%NEWFILENAME%.mp4"
@RinMinase
RinMinase / encode.sh
Created June 15, 2022 00:06
Drag n Drop ffmpeg encode
#!/bin/bash
cd "$( dirname "${BASH_SOURCE[0]}" )"
echo "$1"
sleep 3s
ffmpeg -i "$1" "$(uuid).mp4"
sleep 5s
@RinMinase
RinMinase / Stackblitz Link.txt
Last active May 4, 2022 06:44
Synchronous setting of state in React
@RinMinase
RinMinase / merge-generator.sh
Last active August 1, 2021 09:19
Generate an mkvtoolnix script that aids merges of common named video, audio and subtitles
#!/bin/bash
# an array for the arguments
declare -a args
declare -a audio
declare -a subs
rm -f merge.bat
# color codes
sh_b="\e[1;34m" # blue, welcome text
function _composer_scripts() {
local cmd commands cur ref subcmd;
_get_comp_words_by_ref -n : cur
COMPREPLY=()
cmd="${COMP_WORDS[0]/#\~/$HOME}"
subcmd="${COMP_WORDS[0]}"
commands=$("$cmd" --no-ansi 2> /dev/null | sed '/script as defined in composer.json./d' | awk '/^ +[a-z]+/ { printf "%s ",$1 }')
ref=" ${commands[@]} "
@RinMinase
RinMinase / checkout-pull-request.md
Last active April 12, 2020 22:40
Git Checkout a Pull Request, possibly for Code Review

How do I git checkout a pull request?

You can checkout a single pull request reference by doing,

# replace $pull_request with the pull request number
git fetch origin +refs/pull/$pull_request/merge
git checkout FETCH_HEAD
@RinMinase
RinMinase / docker-compose.yml
Last active June 24, 2019 03:33
Lara, PHP, NGINX, MySQL, MongoDB bare LaraDock setup
version: '3'
networks:
frontend:
driver: ${NETWORKS_DRIVER}
backend:
driver: ${NETWORKS_DRIVER}
volumes:
mysql: