Skip to content

Instantly share code, notes, and snippets.

View Bios-Marcel's full-sized avatar
:shipit:
I am busy abandoning projects

Marcel Schramm Bios-Marcel

:shipit:
I am busy abandoning projects
View GitHub Profile
@ryleu
ryleu / linuxoverwatch.md
Last active May 31, 2023 07:44
OW 2 on Linux

This guide is completely irrelevant! You no longer need to follow anything here—doing so may actually harm performance rather than helping it. Please tell whoever linked you here that they need to maintain their own guide, if they want to help people set up newer versions of DXVK / etc.

@fl4ke
fl4ke / never-delete.js
Last active October 25, 2019 21:20
Cordless script to log deleted messages into the console.
var MAX_CACHE_SIZE = 50;
var messages = [];
function onMessageReceive(message) {
if (messages.length >= MAX_CACHE_SIZE) messages.shift();
messages.push(message);
}
function onMessageDelete(message){
var msg = getMessageById(message.ID);
@fl4ke
fl4ke / autismo.js
Last active October 18, 2019 12:18 — forked from n4n0GH/autismo.js
Memescript for Cordless
function onMessageSend(message){
return message.replace(/%%([^%]*)%%/g, function(autismo){
autismo = autismo.split('')
for(var i=0; i<autismo.length; i++){
autismo[i] = i%2?autismo[i].toLowerCase():autismo[i].toUpperCase()
}
autismo.push(' :spongemock:')
return autismo.join('')
})
.replace(/°°([^°]*)°°/g, function(autismo){
@n4n0GH
n4n0GH / autismo.js
Last active October 17, 2019 20:55 — forked from fl4ke/autismo.js
Memescript for Cordless
function onMessageSend(message){
return message.replace(/%%([^%]*)%%/g, function(autismo){
autismo = autismo.split('')
for(var i=0; i<autismo.length; i++){
autismo[i] = i%2?autismo[i].toLowerCase():autismo[i].toUpperCase()
}
autismo.unshift(':npc: ')
return autismo.join('')
})
.replace(/°°([^°]*)°°/g, function(autismo){
@Bios-Marcel
Bios-Marcel / cdb.sh
Last active July 23, 2018 06:31
function that adds the capability to go back to any directory named X using cd. Just put it into ~/.bashrc
function cdb() {
#suppress all output and run the original cd with all given arguments
command cd $@ &>/dev/null
#If the original ran successfully, do an early exit
if [ $? -eq 0 ]; then
return
fi
START_DIR="$PWD"
@0xbb
0xbb / macbook-mute.sh
Last active April 6, 2024 08:26
Turn off Macbook startup sound - Linux
#!/bin/bash
printf "\x07\x00\x00\x00\x00" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
@subfuzion
subfuzion / global-gitignore.md
Last active May 5, 2024 19:34
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.

@trey
trey / happy_git_on_osx.md
Last active February 18, 2024 10:46
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@epicserve
epicserve / svn_to_git.rst
Created September 15, 2011 17:17
Convert SVN Repositories to Git Repositories

Convert SVN Repositories to Git Repositories

This guide on how to convert an SVN repository to a git repository was mostly taken from John Albin Wilkins post on Converting a Subversion repository to Git.

1. Retrieve a list of all Subversion committers

: