Skip to content

Instantly share code, notes, and snippets.

@Boboss74
Boboss74 / chrome-search-engine.md
Last active Apr 19, 2020
Manage Chrome search engine
View chrome-search-engine.md

Manage search engine chrome

chrome://settings/searchEngines

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

Google FR
View bookmark-scripts.js
// 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
View .gitconfig
[color]
ui = auto
[alias]
brancha = branch --all
fetcha = fetch --all --verbose
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 Feb 5, 2020
aliases debian/ubuntu (~/.bash_aliases)
View .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;}'"
@Boboss74
Boboss74 / .bashrc
Last active Jan 7, 2020
Git colored prompt
View .bashrc
# 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 Feb 8, 2019
Mute spotify advertising: run when ads are starting, then the script will mute during ~50 sec, then unmute
View mute-spotify-ads.ps1
# 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 Mar 8, 2017
fr countdown lestream.fr
View countdown.html
<!DOCTYPE html>
<html>
<head>
<title>Event</title>
<style>
body {
background-color: #2a2a33;
}
.content {
padding-top: 120px;
You can’t perform that action at this time.