Skip to content

Instantly share code, notes, and snippets.

View VictorieeMan's full-sized avatar

VictorieeMan

View GitHub Profile
@VictorieeMan
VictorieeMan / SDL2_cpp_VisualStudio_setup.txt
Last active February 9, 2022 11:54
Steps to setup using the SDL2 library in a Visual C++ solution/project
1. Download the latest development libraries from https://libsdl.org/download-2.0.php
***Extract the files and store them anywhere, I choose to store them in a library folder clode to my local repositories.
***We will call the path to this folder <sdl2> from now on in this text.
2. Open Visual Studio and create a new empty Visual C++ project.
3. Add "main.cpp" to your project "Source Files" folder
4. Setup the project for the compiler to include the libSDL2 library correclty:
a) Within the Visual Studio Solution Explorer, right click the project and open it's properties.
@VictorieeMan
VictorieeMan / MarkDown_Flowcharts_in_mermaid.md
Created February 15, 2022 09:32
GitHub repositories now support mermaid flowcharts in markdown files
@VictorieeMan
VictorieeMan / import_full_rss.rb
Last active June 26, 2022 18:17 — forked from waynegraham/import_full_rss.rb
Import the full RSS feed in to Jekyll (from WordPress)
#! /usr/bin/env ruby
require 'rss'
require 'rss/2.0'
require 'open-uri'
require 'fileutils'
require 'safe_yaml'
url = 'https://odysee.com/$/rss/@Odysee:8'
@VictorieeMan
VictorieeMan / python_timestamp.py
Last active July 13, 2022 19:55
Python funciton for getting a current timestamp
import datetime
def current_time(format = "%Y-%m-%d_%H-%M-%S"):
"""Calculates current time and returns a timestamp string."""
time = datetime.datetime.now()
timestamp = str(time.strftime(format))
return timestamp
@VictorieeMan
VictorieeMan / ChatGPT_ComposingMusic2022-12-06.txt
Created December 6, 2022 19:11
I got the ChatGPT to compose some music, listen to it by going to the linked website and paste the ABC-scripted music into the site and listen to the midi output.
Can be played by using this webiste: https://abc.rectanglered.com/
X:1
T:Advanced Melody
M:4/4
L:1/4
K:G
"G" B2 | d2 d2 | B2 A2 | G4 | G2 B2 | d2 c2 | B2 G2 | A4 |
B2 | d2 d2 | e2 d2 | c4 | B2 d2 | c2 B2 | A2 G2 | F4 |
E2 | E2 E2 | E2 D2 | C4 | C2 E2 | E2 D2 | C2 A,2 | G,4 |
Thank you for your donation!
//VictorieeMan
@VictorieeMan
VictorieeMan / nostr_alby_astral_intro.md
Last active January 1, 2023 00:53
This gist will help you to try out nostr.

nostr_alby_astral_intro_20230101.md

This short guide will help you to try out nostr. The recommended way below will keep your private keys safe and let you test a twitter like client within the nostr eco-system.

  1. Go to https://getalby.com/, get an account and install the extension. The Alby app will generate your private nostr key and keep it safe.

    • Best prectice is to NEVER copy+paste your private keys, because anyone with these will own your account. This is why it's best to have a key manager like Alby to keep your private key safe.
  2. Try out using nostr over at: https://astral.ninja/

Error message when trying to install: https://pypi.org/project/secp256k1/

pip install secp256k1

into a virtual environment on a windows 10 system, date 2023-01-06. Looking for a solution to this problem, possible solution found below error message.

Error message

pip install secp256k1
Collecting secp256k1
@VictorieeMan
VictorieeMan / disable_Windows10_telemetry.md
Last active January 7, 2023 12:34
How to deactivate Telemetry on Windows 10

How to deactivate Telemetry on Windows 10

Method 1

win + R

gpedit.msc
Computer Configuration > Administrative Templates > Windows Components > Data Collection and Preview Builds