Skip to content

Instantly share code, notes, and snippets.

View wixaw's full-sized avatar

William VINCENT wixaw

View GitHub Profile
@wixaw
wixaw / disable_youtube_shorts.js
Created October 19, 2022 13:33
disable youtube shorts in browser in javascript js jquery
// Disable youtube shorts in chrome chromium brave firefox edge browser etc ....
// Use with "Custom Javascript for websites 2" addon ( https://chrome.google.com/webstore/detail/custom-javascript-for-web/ddbjnfjiigjmcpcpkmhogomapikjbjdk )
// Jquery 3
//console.log("every 10 secondes");
setInterval(function(){
//console.log("time to delete");
$('ytd-grid-video-renderer').each(function(){
$(this).find('ytd-thumbnail-overlay-time-status-renderer[overlay-style="SHORTS"]').each(function(){
//console.log("find and remove");
@wixaw
wixaw / Ansible.md
Last active January 23, 2020 09:41

Ansible CheatSheet

ansible.cfg

Detail msg expanded

stdout_callback = yaml

@wixaw
wixaw / delete_user_and_project.sh
Last active December 20, 2019 07:41
Management users and projects - sharelatex or overleaf
#!/bin/sh
mongo sharelatex --eval "var param1='$1'" delete_user_and_project.js

VSCODE

Autoinstall

curl -sSL https://gist.github.com/wixaw/c40e4e9d5c1f9bf638b418835746013b/raw/67793a2e7ae681e1710f2b4974f261e875f874b0/vscode_install.sh  | bash

Repos + install Centos 7

cat /etc/yum.repos.d/vscode.repo
[code]
@wixaw
wixaw / centos_8_custom_kickstart_usb_key.md
Last active December 15, 2019 13:50
custom USB key Centos 7 Kickstart

Creer un iso custom de centos 8 avec kickstart

( commandes valable avec fedora,rhel )

# Télécharger l'iso
cd /export/ISOs/Centos8/
wget http://fr2.rpmfind.net/linux/centos/8.0.1905/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso


# Créer espace de travail
@wixaw
wixaw / Git.md
Last active November 21, 2019 09:03
GIT Cheat Sheet

GIT Cheat Sheet

Config

vim /root/.gitconfig
[user]
	email = @.fr
	name = William VINCENT
@wixaw
wixaw / cas_logout.php
Created October 14, 2019 12:18
Cleaning remove delete SSO CAS session apereo/mod_auth_cas PHP
<?php
// Cleaning CAS session apereo/mod_auth_cas (https://github.com/apereo/mod_auth_cas)
// Sarting session
session_start();
if ((!isset($_SERVER["PHP_AUTH_USER"])) || (!empty($_SERVER["PHP_AUTH_USER"]))) {
// Get username
$login = $_SERVER["PHP_AUTH_USER"];
// Select your Folder ( set by CASCookiePath /var/cache/apache2/mod_auth_cas/ )

Keybase proof

I hereby claim:

  • I am willouuu on github.
  • I am lawix (https://keybase.io/lawix) on keybase.
  • I have a public key ASADzWZsjL5LuMPoW8CtzTjeEexsGu9J99fDbPGC8IactAo

To claim this, I am signing this object: