Skip to content

Instantly share code, notes, and snippets.

View Sparking2's full-sized avatar
🎯
Focusing

Alfonso Marquez Sparking2

🎯
Focusing
View GitHub Profile
@anubhavshrimal
anubhavshrimal / CountryCodes.json
Last active November 15, 2024 13:26 — forked from Goles/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
@yukoff
yukoff / GitHub Wiki Subtree Storage.markdown
Created September 3, 2017 13:01 — forked from jfelixetcetera/GitHub Wiki Subtree Storage.markdown
Store and edit GitHub wikis within the main project repository.

Project documentation

The project documentation (stored in the docs directory) is a git subtree of the project wiki. This allows for the documentation to be referenced and edited from within the main project.

Initial local setup

When cloning the main project repository for the first time, the wiki repository must be added as a remote.

git remote add wiki https://github.com//.wiki.git

@ajai8085
ajai8085 / Install NVM.md
Created February 4, 2019 09:41
Install NVM on Fedora

Install NVM on Fedora

1. Install node and NPM:

sudo dnf install -y nodejs npm

2. Install NVM via NPM:

@Jacob-Tate
Jacob-Tate / snippet.cpp
Created December 4, 2019 06:18
Get EXE Location C++
//Returns the absolute path of the executable
std::filesystem::path file_manip::abs_exe_path()
{
#if defined(_MSC_VER)
wchar_t path[FILENAME_MAX] = { 0 };
GetModuleFileNameW(nullptr, path, FILENAME_MAX);
return std::filesystem::path(path);
#else
char path[FILENAME_MAX];
ssize_t count = readlink("/proc/self/exe", path, FILENAME_MAX);
@frozenex
frozenex / bulk-convert.ps1
Last active January 14, 2024 02:04
Bulk convert images to webp format using cwebp library in windows
# Copy this file to any directory containing images & then run this script in powershell
# Get all png images in the current directory & convert it to webp format
$images = Get-ChildItem -Path (Get-Location) -Filter *.png
foreach ($image in $images) {
$fileName = $image.DirectoryName + "\" + $image.BaseName + ".webp"
cwebp.exe -q 80 $image.FullName -o $fileName
}
@FikriRNurhidayat
FikriRNurhidayat / Slow-Steam-Download-Speed-Linux.md
Last active May 15, 2024 19:40
Steam Download Speed Issue on Linux
@peterbartha
peterbartha / README.md
Last active November 7, 2024 14:04
Convert Rust books to EPUB (incl. The Rust Programming Language)

Convert Rust books to EPUB (incl. The Rust Programming Language)

The following steps work for all the HTML learning materials on the Learn Rust page:

  1. Click on the "Print this book" icon in the top right corner.
  2. "Cancel" print popup.
  3. Press F12.
  4. Copy, paste, and run the contents of ebookFormatPreparation.js into your browser's console.
  5. Save the modified HTML file.
@Sparking2
Sparking2 / CountryCodes.json
Created September 12, 2022 18:57 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"