Skip to content

Instantly share code, notes, and snippets.

View Vicfred's full-sized avatar
:octocat:
I like mathemagic and computering

Vicfred Vicfred

:octocat:
I like mathemagic and computering
View GitHub Profile
@Vicfred
Vicfred / rsync_flatnotes.md
Last active October 30, 2025 01:42
rsync_flatnotes
rsync -avzh --progress --prune-empty-dirs --delete \
  --include "*/" --include="*.md" --include="*.jpg" --include="*.png" --exclude="*" \
  -e 'ssh -p 2222' vicfred@cyberia.moe:flatnotes/data/ ~/src/noto/notes
@Vicfred
Vicfred / coc_vim_nim_gentoo.md
Last active May 8, 2025 07:57
configure autocomplete for nim vim coc on gentoo

Install nim with choosenim

curl https://nim-lang.org/choosenim/init.sh -sSf | sh

Install nimlsp

nimble install nimlsp
@Vicfred
Vicfred / coc_vim_dlang_gentoo.md
Last active June 4, 2025 03:42
configure autocomplete for d dlang vim coc on gentoo

enable dlang overlay

emerge --ask --noreplace app-eselect/eselect-repository dev-vcs/git
eselect repository enable dlang
emerge --sync dlang

Install dmd, dlang-tools, serve-d, dub, dcd

emerge -av dev-lang/dmd dev-util/dlang-tools dev-util/dcd dev-util/dub dev-util/serve-d

An opinionated guide to scheme implementations

Write Preview

Hark, the beloved programing language! But hark, also: for Scheme is a language of many implementations. If Scheme were a countryside, it would have its cosmopolitan cities, its hipster dives, its blue-collar factory towns, quaint villages, western movie sets full of façades and no buildings, shacks in the woods, and single-occupancy rent-by-the-hour slums. It's a confusing and delightful place, but you need a guide.

And so it is that there is a steady rivulet of folks coming into the #scheme IRC channel asking what implementation to use. Mostly the regulars are tired of the question, but when they do answer it's in very guarded terms -- because the topic is a bit touchy, and a bit tribal. There's a subtle tension between partisans of the different implementations, but people are polite enough to avoid controversial, categorical statements. Unfortunately the end result of this is usually silence in the channel.

@Vicfred
Vicfred / types_of_input.md
Created March 17, 2025 08:21
types of input in competitive programming
  • read an integer N
  • read a string N
  • read an integer N in one line then read N spaces separated integers in the following line
  • read 2 or more integers in a line and assign them to individual variables
  • read integers N and M in the first line then read M pairs (graph problem)
  • read integers N and M in the first line and then read a NxM matrix
@Vicfred
Vicfred / read_input_haskell.md
Last active March 18, 2025 05:42
reading input from command line in haskell

print and putStrLn are not interchangeable but are very, with putStrLn you need to convert to string first (with show), print takes any type with a show instance.

Read an integer N

main :: IO ()
main = do
  -- Read an integer from input
  n <- readLn :: IO Int
 -- Print the integer
  • All pokemon main series games in japanese with box from gameboy to switch
  • youkai watch 1
  • fire emblem engage
  • fire emblen three houses
  • fire emblem three hopes
  • dragon quest xi definitive edition
  • biohazard (resident evil) origins collection (includes 0 and 1)
  • nier: automata
  • dragon ball z kakarot
  • persona 4 the ultimax

phpbb

#upstream php {
#	server unix:/var/run/php-fpm/php-fpm.sock;
#}

server {
	server_name cyberia.moe www.cyberia.moe;
	error_log /var/log/nginx/cyberia.moe.error.log;
	access_log /var/log/nginx/cyberia.moe.access.log;
@Vicfred
Vicfred / backups.md
Last active August 26, 2025 13:54
backups

ONLINE BACKUP

resize to 3456x1944 (90% of 4k resolution) and 75% image quality

normal videos: resize to 2/3 (ie. from 1080p to 720p) and compress videos at crf 32 important videos: compress at crf 32 - 28 (lower is better quality)

LOCAL BACKUP

store local RAW files for the camera