Skip to content

Instantly share code, notes, and snippets.

View M3DZIK's full-sized avatar

Oskar Karpiński M3DZIK

View GitHub Profile
@M3DZIK
M3DZIK / Install HIP and OpenCL on Fedora with amdgpu.md
Last active March 28, 2023 18:10
Install HIP and OpenCL on Fedora 37 and latest with amdgpu (open source) drivers

Install HIP and OpenCL on Fedora 37 and latest with amdgpu (open source) drivers

Download and install amdgpu-install

(download latest version from https://www.amd.com/en/support)

$ wget https://repo.radeon.com/amdgpu-install/22.40.3/rhel/9.1/amdgpu-install-5.4.50403-1.el9.noarch.rpm
$ sudo dnf install ./amdgpu-install-*.noarch.rpm
@amishshah
amishshah / discordjs.md
Created October 22, 2021 22:36
tl;dr i'm stepping down as owner of discord.js!

Hello! I'm Amish (also known as hydrabolt), and I am the creator of discord.js.

I created discord.js as a hobby/learning project for myself in August 2015 while I was still a teenager in school.

More than 6 years later, discord.js has become more popular than I could ever imagine, and I cannot express how grateful I am to the other contributors and the community for this amazing experience.

A few of my favourite highlights include:

  • The countless voice rewrites (I think we're done with that now 😉)
  • The April Fools' traditions
@koron
koron / delete-all-artifacts.sh
Created August 21, 2020 02:05
Shell script to delete all artifacts from GitHub Actions
#!/bin/bash
#
# Delete all artifacts
#
# USAGE: ./delete-all-artifacts.sh {YOUR_PERSONAL_ACCESS_TOKEN} {OWNER_REPO}
#
# Where `{YOUR_PERSONAL_ACCESS_TOKEN}` should have `workflow` and `repo` scopes
# to work this script. `public_repo` can be used instead of `repo`, when you
# want delete artifacts from public repositories only.
#
@fnky
fnky / ANSI.md
Last active May 29, 2024 15:58
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@dikiaap
dikiaap / git-io-custom-url.md
Last active May 7, 2024 17:34
git.io custom URL

Update: As of 11 January 2022, git.io no longer accepts new URLs.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
@asukakenji
asukakenji / 0-go-os-arch.md
Last active May 28, 2024 07:05
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 29, 2024 14:12
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@lukechilds
lukechilds / get_latest_release.sh
Created August 9, 2016 19:43
Shell - Get latest release from GitHub
get_latest_release() {
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
}
# Usage
# $ get_latest_release "creationix/nvm"
# v0.31.4