Skip to content

Instantly share code, notes, and snippets.

View avalonv's full-sized avatar
🪐
HALLOWEEN

gwyn avalonv

🪐
HALLOWEEN
View GitHub Profile
@jonfk
jonfk / hollow_knight_fix_dualsense.txt
Last active May 4, 2024 20:59
Fix to use dualsense controller in hollow knight on linux
# This fixes the issue of swapped buttons and Triggers in the dualsense controller opening the pause menu
# The issue is caused by the SDL version used by hollow knight not recognizing the dualsense controller and
# mapping buttons properly. It is also not helped by steam input not disabling the native controller support
# when used in hollow knight. The issue cannot be fixed by simple mapping in steam input.
# Disable Steam Input
# Set the following as launch option
SDL_GAMECONTROLLERCONFIG="050000004c050000e60c000000810000,Sony DualSense ,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,platform:Linux," %command%
@Illutax
Illutax / git-pushing-multiple.rst
Created October 24, 2021 22:14 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@Goddard
Goddard / name-cheap-dynamic-dns.sh
Last active January 29, 2024 14:03
auto update ip script for dynamic dns
curl -i -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET https://dynamicdns.park-your-domain.com/update?host=@&domain=[domain]&password=[update-password]&ip=[local-ip]
diff --git a/Action.c b/Action.c
index 9a7c3c5..72229a1 100644
--- a/Action.c
+++ b/Action.c
@@ -406,7 +406,7 @@ static Htop_Reaction actionRedraw() {
}
static const struct { const char* key; const char* info; } helpLeft[] = {
- { .key = " Arrows: ", .info = "scroll process list" },
+ { .key = " hjkl: ", .info = "scroll process list" },
@benspaulding
benspaulding / ReadMe.rst
Created October 17, 2011 01:24
Scripts for using BBEdit, TextWrangler, or MacVim as default command line EDITOR.

EDITOR Helpers

Author: Ben Spaulding

This is a collection of helper scripts for using popular Mac text editors as your terminal EDITOR.

These are certainly not essential, as all of the editors helped here ship with a powerful command-line utility. However, to properly use them for something like

@jagregory
jagregory / gist:710671
Created November 22, 2010 21:01
How to move to a fork after cloning
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear!
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
* Off the top of my head *
1. Fork their repo on Github
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it
git remote add my-fork git@github...my-fork.git