Skip to content

Instantly share code, notes, and snippets.

@Boboss74
Boboss74 / ResetAttributesAlwaysAvailable.swift
Created September 25, 2023 19:38
CyberPunk 2077 Mod: Reset Attributes always available (Redscript)
// CyberPunk 2077 Mod: Reset Attributes always available
// https://www.nexusmods.com/cyberpunk2077/mods/9240
// Authors: snogthemo, Boboss74, yakuzadeso
@wrapMethod(NewPerksCategoriesGameController)
private final func ResolveResetAttributesButtonVisibility() -> Void {
if (IsDefined(this.m_questSystem) && this.m_questSystem.GetFact(n"ResetAttributeDisabled") == 1) {
this.m_questSystem.SetFact(n"ResetAttributeDisabled", 0);
}
wrappedMethod();
@Boboss74
Boboss74 / chrome-search-engine.md
Last active April 19, 2020 19:15
Manage Chrome search engine

Manage search engine chrome

chrome://settings/searchEngines

Search engine
Keyword
URL with %s in the place of query

Google FR
@Boboss74
Boboss74 / bookmark-scripts.js
Created February 5, 2020 21:56
Bookmark scripts
// image-rendering:pixelated
javascript: let e=document.createElement('style');e.innerHTML='img{image-rendering:pixelated}';document.head.appendChild(e)
// prevent leave page
javascript: javascript:window.onbeforeunload=()=>true
@Boboss74
Boboss74 / .gitconfig
Last active June 3, 2021 16:53
~/.gitconfig
[color]
ui = auto
[alias]
brancha = branch --all
fetcha = fetch --all --verbose --prune
amendpush = !git commit --amend --no-edit && git push --force-with-lease
lol = log --graph --decorate --oneline
lola = log --graph --decorate --oneline --all
lolaa = log --graph --decorate --all --pretty='%C(auto)%h%Creset%C(auto)%d%Creset %cr %Cblue<%an>%Creset %s' --abbrev-com
@Boboss74
Boboss74 / .bash_aliases
Last active September 24, 2020 09:46
aliases debian/ubuntu (~/.bash_aliases)
alias ll='ls -laF'
# display numerical chmod within ls, https://stackoverflow.com/a/50686667/4711132
alias lschmod="ls -laF --color=always -F --group-directories-first |awk '{k=0;s=0;for(i=0;i<=8;i++){;k+=((substr(\$1,i+2,1)~/[rwxst]/)*2^(8-i));};j=4;for(i=4;i<=10;i+=3){;s+=((substr(\$1,i,1)~/[stST]/)*j);j/=2;};if(k){;printf(\"%0o%0o \",s,k);};print;}'"
# docker
alias dpsa='docker ps --all'
alias drma='docker stop $(docker ps -aq) && docker rm $(docker ps -aq)'
# npm
alias nrb='npm run build'
@Boboss74
Boboss74 / .bashrc
Last active January 7, 2020 13:26
Git colored prompt
# This is a fork of a fork of a fork... of probably https://www.marc-eymard.fr/linux/bash-prompt
# Add the following lines inside your ~/.bashrc
# START : git, coloration
if [ -z "$PS1_ORIG" ]; then
PS1_ORIG=$PS1
OLD_PROMPT_COMMAND=$PROMPT_COMMAND
fi
@Boboss74
Boboss74 / mute-spotify-ads.ps1
Last active February 8, 2019 08:17
Mute spotify advertising: run when ads are starting, then the script will mute during ~50 sec, then unmute
# Mute spotify advertising
# Script powershell Windows 10
#
# Run when ads are starting, then the script will mute during ~50 sec, then unmute
$obj = new-object -com wscript.shell
$obj.SendKeys([char]173)
Start-Sleep -Seconds 50
$obj.SendKeys([char]173)
exit
@Boboss74
Boboss74 / countdown.html
Created March 8, 2017 11:50
fr countdown lestream.fr
<!DOCTYPE html>
<html>
<head>
<title>Event</title>
<style>
body {
background-color: #2a2a33;
}
.content {
padding-top: 120px;