Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Ensure we have the necessary tools
if ! command -v equery &>/dev/null; then
echo "Error: app-portage/gentoolkit is not installed."
echo "Please run: sudo emerge --ask app-portage/gentoolkit"
exit 1
fi
declare -a source_pkgs
@izaac
izaac / mesa-howto.md
Created July 19, 2025 17:03 — forked from Venemo/mesa-howto.md
How to build and use mesa from source

Building and using mesa for development and testing

This explains how to build mesa from source, and how to use the custom built mesa to run some apps and games, without needing to replace the mesa libraries that your operating system runs on.

Let's assume that you are using an x86_64 system.

Building mesa

Overview

@izaac
izaac / keybindings.json
Created October 10, 2024 03:20 — forked from wojukasz/CHANGELOG.md
VsCode + Vim keybindings and settings - best of both worlds
[
//
// VIM NAVIGATION SHORTCUTS
//
{
// "ctrl+h": Focuses on the left editor group when the text editor is focused, Vim extension is active, and Vim is not in Insert mode.
"key": "ctrl+h",
"command": "workbench.action.focusLeftGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
@izaac
izaac / wsl2-network.ps1
Created June 13, 2021 04:13 — forked from daehahn/wsl2-network.ps1
WSL 2 TCP NETWORK FORWARDING
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}
@izaac
izaac / Update remote repo
Created June 15, 2019 15:20 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
### Keybase proof
I hereby claim:
* I am izaac on github.
* I am izaacz (https://keybase.io/izaacz) on keybase.
* I have a public key ASAQdvc3uKh_77jJIaODMbvsLGKri5wBeWyBX5oj8OzBswo
To claim this, I am signing this object:
require "selenium-webdriver"
saucelabs_username = "zfilipin"
saucelabs_key = "" # secret
name = "firefox"
version = "36.0"
platform = "Linux"
caps = Selenium::WebDriver::Remote::Capabilities.send(name)
@izaac
izaac / stats.js
Last active January 21, 2019 03:14
An example statistics library in Javascript.
#!/usr/bin/env node
/* jshint node: true */
'use strict';
var program = require('commander');
function add(a, b){
return a + b;
}
function numericSort(a,b) {
from selenium.common.exceptions import NoSuchElementException, TimeoutException
class DomHelper(object):
driver = None
waiter = None
def open_page(self, url):
self.driver.get(url)
@izaac
izaac / builders.py
Last active August 29, 2015 14:14 — forked from senny/builders.py
from plone.dexterity.utils import createContentInContainer
from plone.namedfile.file import NamedBlobFile
import transaction
def Builder(name):
if name == "dossier":
return DossierBuilder(BuilderSession.instance())
elif name == "document":
return DocumentBuilder(BuilderSession.instance())
elif name == "task":