Skip to content

Instantly share code, notes, and snippets.

View MaximShepelev's full-sized avatar

Maxim Shepelev MaximShepelev

  • Bostongene
  • A galaxy far far away
View GitHub Profile

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@githubfoam
githubfoam / kind cheat sheet
Last active October 1, 2024 16:43
kind cheat sheet
------------------------------------------------------------------------------------------------
$ kind create cluster --config baeldungConfig.yaml #create the cluster using the configuration file
kind create cluster --image kindest/node:v1.20.7 #provide a specific version of the Kubernetes image
$ kubectl cluster-info --context kind-baeldung-kind
kubectl cluster-info dump --context kind-baeldung-kind
$ kind get clusters
$ docker ps
$ kubectl get nodes
@furdarius
furdarius / rkn_unblock.md
Last active February 26, 2025 10:03
Настройка обхода РКН на роутере
@kawsark
kawsark / example-vault-admin-policy.hcl
Last active August 1, 2024 10:27
An example Vault admin policy with capability to manage leses
# Allow managing leases
path "sys/leases/*"
{
capabilities = ["create", "read", "update", "delete", "list", "sudo"]
}
# Manage auth methods broadly across Vault
path "auth/*"
{
capabilities = ["create", "read", "update", "delete", "list", "sudo"]
@l13t
l13t / values.yaml
Created January 16, 2019 13:21
alertmanager alerts to slack for prometheus-operator
.......some config.....
alertmanager:
## Deploy alertmanager
##
enabled: true
## Service account for Alertmanager to use.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
##
@bgauduch
bgauduch / multiple-repository-and-identities-git-configuration.md
Last active March 21, 2025 18:02
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@paraita
paraita / squid.ssl.conf
Last active November 10, 2021 16:40
Squid 3.5.0.4 http+https basic auth + ssl bump
# #### pre-requisites ####
# I use the following Dockerfile for Squid:
# https://hub.docker.com/r/jamesyale/squid-sslbump/ to deploy the proxy
# Replace the existing /etc/squid/squid.ssl.conf with this file
# Create the users credentials with htpasswd (yum install httpd-tools)
# htpasswd [-c] /etc/squid/squidusers username
# -с is to create a new file, not to change the existing file
# Use the following command to test the user/pass:
# /usr/lib64/squid3/basic_ncsa_auth /etc/squid/squidusers
# provide <user> <password> at the prompt, for example:
@grimzy
grimzy / git-pull-all
Created September 15, 2017 02:15
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@andyvanee
andyvanee / .ssh_config
Last active November 30, 2023 04:19
Fix unix_listener too long for Unix domain socket
Host *
ControlPath ~/.ssh/control/%C
ControlMaster auto
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 19, 2025 21:03
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