Skip to content

Instantly share code, notes, and snippets.

View danvisx's full-sized avatar
🔬
^_^

danvisx

🔬
^_^
View GitHub Profile
@craimasjien
craimasjien / bleeding-edge-mesa-fedora.md
Last active February 17, 2026 12:11
Installing bleeding-edge mesa on Fedora

Building Bleeding-Edge Mesa RPMs on Fedora

This guide walks you through building and installing the latest development version of Mesa on Fedora using mock to generate proper RPM packages. I've been using this method since December 2025 and have perfected it along the way. I'm very satisfied with the results. Make sure to put the script itself and the .spec file in a folder and run the script.

MAKE SURE YOU READ AND UNDERSTAND THE SCRIPT, NEVER RUN SOMETHING OFF THE INTERNET WITHOUT UNDERSTANDING THE CONTENT. I AM NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR SYSTEM

Who is this guide for? This guide is written for all experience levels, including beginners. Each step includes explanations of what and why, so you can learn as you go.


@javiertc
javiertc / onchain.js
Last active July 30, 2025 05:37
onchain.js
const axios = require('axios').default;
const HOST = 'cardano-testnet.tangocrypto.com';
const APP_ID = 'XXXXX';
const API_KEY = 'XXXXX';
axios.defaults.baseURL = `https://${HOST}/${APP_ID}/v1`;
axios.defaults.headers.common['x-api-key'] = API_KEY;
axios.defaults.headers.post['Content-Type'] = 'application/json';
@Raniz85
Raniz85 / zwift-launcher
Last active December 23, 2024 10:35
Script for launching Zwift installed with Lutris. Put your password in ~/.zwiftpassword and it will be placed in the clipboard once the game has been started
#!/bin/bash
cd ~/Games/zwift
# Where you installed Zwift
zwiftLocation="$HOME/Games/zwift"
# The ID in Lutris of Zwift
lutrisGameId=1
startLauncher() {
@ricardopadua
ricardopadua / install_asdf.sh
Last active February 20, 2025 15:21
Installing Elixir and Erlang With ASDF ( Fedora )
#!/bin/bash
## Ricardo Pádua
## install asdf in fedora
## install curl and git
dnf install curl git
## install asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.9.0
@jaskiratr
jaskiratr / chmod-400.cmd
Created June 29, 2018 01:03
Set permission of file equivalent to chmod 400 on Windows.
# Source: https://stackoverflow.com/a/43317244
$path = ".\aws-ec2-key.pem"
# Reset to remove explict permissions
icacls.exe $path /reset
# Give current user explicit read-permission
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
# Disable inheritance and remove inherited permissions
icacls.exe $path /inheritance:r
@suberb
suberb / elementaryos.md
Last active September 6, 2025 14:29
elementaryOS | Things To Do After Installing Elementary OS Loki [Best OS For Switching From Windows & Mac]

FIRST THING FIRST


  • Update OS
sudo apt-get update && sudo apt-get upgrade

@ylluminate
ylluminate / perfectelementary.bash
Created June 17, 2017 00:16
HowTo Install the perfect Elementary-OS
#Download Elementary OS from here:
#http://sourceforge.net/projects/elementaryos/files/stable/
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@paveleremin
paveleremin / Cisco.vbs
Created February 24, 2017 06:45
Cisco AnyConnect: save password
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """%PROGRAMFILES(x86)%\Cisco\Cisco AnyConnect Secure Mobility Client\vpnui.exe"""
WScript.Sleep 1500
WshShell.AppActivate "Cisco AnyConnect Secure Mobility Client"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
@manfromanotherland
manfromanotherland / formspree.html
Last active July 3, 2024 14:24
JS: Ajax send forms using the most excellent Formspree » http://formspree.io #snippet
<form id="contact-form" action="//formspree.io/your@email.com" method="post">
<input type="text" name="Name" placeholder="Name" required>
<input type="email" name="Email" placeholder="Email" required>
<textarea name="Message" cols="30" rows="6" placeholder="Message" required></textarea>
<!-- CONFIG -->
<input class="is-hidden" type="text" name="_gotcha">
<input type="hidden" name="_subject" value="Subject">
<input type="hidden" name="_cc" value="email@cc.com">
<!-- /CONFIG -->
<input class="submit" type="submit" value="Send">
@bradwestfall
bradwestfall / gist:f5a010e96fb0c4d18556
Last active November 20, 2022 14:40
Pull Instagram Images via JavaScript