Skip to content

Instantly share code, notes, and snippets.

View sdwvit's full-sized avatar
🇬🇧
Dulwich, London

Victor Musienko sdwvit

🇬🇧
Dulwich, London
  • London, UK
View GitHub Profile
@sdwvit
sdwvit / 1.5.2.md
Last active August 9, 2025 13:09
Stalker 2 various stats v 1.5.2

Ammo:

SID Type Caliber Fraction Count Ammo Type Crosshair Modifier Damage Source Armor Piercing Modifier Cover Piercing Modifier Armor Damage Modifier Weapon Exhaustion Modifier Damage Modifier Bleeding Modifier Ammo Pack Count Impulse To Objects Modifier Flatness Modifier Recoil Modifier Dispersion Modifier Aim Dispersion Modifier
A918D Ammo A918 1 Default Default Bullet 0 0 1 1 1 1
@sdwvit
sdwvit / Instruction.md
Last active July 8, 2025 20:59
Instruction.md

Step 1

Create a new repository for your project

It's a good idea to create a new repository for each individual project you're working on. If you're writing a software project, grouping all the related files in a new repository makes it easier to maintain and manage the codebase over time.

  • In the upper-right corner of any page, select , then click New repository.
  • In the "Repository name" box, type a name for your project. For example, type "my-first-project."
  • In the "Description" box, type a short description. For example, type "This is my first project on GitHub."
  • Select whether your repository will be Public or Private. Select "Public" if you want others to be able to see your project.
  • Select Add a README file. You will edit this file in a later step.
  • Click Create repository.
@sdwvit
sdwvit / gist:d657bfda2aee63267dbc39b3f074ca5a
Created June 8, 2025 12:53
Fetch grid to chart dependency version map using github api / git history
const https = require('https');
const fetch = require('node-fetch');
// Function to fetch commit SHAs for a specific file URL from GitHub API with pagination support
async function getCommits(fileUrl, owner, repo) {
const apiUrlTemplate = `https://api.github.com/repos/${owner}/${repo}/commits?path=${fileUrl}&per_page=100&page={page}`;
let allCommits = [];
let page = 1;
let hasMorePages = true;
@sdwvit
sdwvit / gist:44594c727ac10f53c2e9fc87f1843f5c
Last active May 29, 2025 10:00
Generate git commit message using bash and openai api
#!/bin/bash
# Generate patch for uncommitted changes
patch=$(git diff)
if [ -z "$patch" ]; then
echo "No uncommitted changes found."
exit 0
fi
# Check for the OpenAI API key

Company Logo

Monday, February 10th, 2020

Object: Employment Letter - YourFirst YourLast

To whom it may concern,

The present letter is to confirm that YourFirst YourLast, living at 1234-56 Queen Street West, Toronto, Province of Ontario, M6J 0E0, was employed by Company since November 6th, 2017 until January 17th, 2020 as a Developer. His position was permanent, full-time (40h/week).

@sdwvit
sdwvit / quizzes.md
Last active July 5, 2024 13:26
Canadian citizenship practice questions

Citizenship test practice questions and quizzes

Quiz 1-1

1. Which of the following statement is true?

  • Canada is a Republic
  • Immigrants between the ages of 21 and 54 must learn about voting laws in order to become Canadian citizens
  • Canadians haven't given up anything to protect their way of life
  • Canada has welcomed immigrants for years in order to create a society that is free, just, and affluent
@sdwvit
sdwvit / 1.js
Created January 13, 2023 22:12
leetcode 3sum
/**
* @param {number[]} nums
* @return {number[][]}
*/
var threeSum = function(nums) {
const map = nums.reduce((mem, n) =>{
if (!mem[n]) {
mem[n] = []
}
mem[n].push(n);

Code of Conduct

(UA) IT/Tech Ukrainians:

Changelog:

  • 18/04/2022 Initial version
  • ~20/06/2022 Added clause about official sources
  • 18/08/2022 Add info about offtopic chat / change name
  • 20/11/2022 Removed link to offtopic / add "Conflict of interest" clause
@sdwvit
sdwvit / generate.sh
Created October 30, 2019 19:40
Generate cacheable key for CI depending on versioned files diff
#!/bin/sh
a="$(git diff master... --numstat | awk 'NF==3 {total+=$1+$2} END {printf("%d\n", total)}')" \
if [ "$a" -gt 100 ]
then
echo "bust $(date +%s)" > gitdiff
else
echo "keep" > gitdiff
fi