Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Microsoft Teams Settings Patcher (Webcam + Screenshare) QUITE BROKEN
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://teams.microsoft.com/*
// @grant none
// ==/UserScript==
@demaisj
demaisj / soundcloud-filter.user.js
Created August 18, 2018 17:18
Soundcloud stream filtering done right
// ==UserScript==
// @name Soundcloud filter
// @namespace https://gist.github.com/demaisj/9f8a4bbbe6828fb3c62643b67d75dfea
// @version 1.0.0
// @description Soundcloud stream filtering done right
// @author demaisj
// @match https://soundcloud.com/*
// @grant none
// ==/UserScript==
@demaisj
demaisj / cert.sh
Created July 16, 2018 20:55
Helps managing localhost certificates on Arch Linux with a custom CA
#!/bin/bash
DEST="${XDG_CONFIG_HOME:-~/.config}/ssl"
CA="$DEST/ca"
ORG="Localhost"
function uninstall {
if [ ! -f "$CA.crt" ] || [ ! -f "$CA.key" ]; then
echo "Missing root CA certificate file, aborting..."
exit 1
/* ==UserStyle==
@name Soundcloud Nightmode Reimagined
@namespace gist.github.com/demaisj/548d69f3d84bde70c35e6b7fc86d82c3
@version 1.0.0
@description Updated
@author demaisj
==/UserStyle== */
@-moz-document url-prefix("https://soundcloud.com"), url-prefix("http://soundcloud.com"), domain("soundcloud.com") {
.conversation__actions,
prompt_start() {
echo -n "%{%f%b%k%}"
}
prompt_status() {
if [[ $(jobs -l | wc -l) -gt 0 ]]; then
echo -n "%{$fg[yellow]%}⚙ %{$reset_color%}"
fi
}
@demaisj
demaisj / precision.user.js
Created March 20, 2017 01:11
Precision Salement Unique
// ==UserScript==
// @name Precision Salement Unique
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://intra.epitech.eu/*PSU*
// @grant unsafeWindow
// ==/UserScript==
@demaisj
demaisj / yt-thumb-preview.user.js
Last active January 21, 2018 12:33
Previews a YouTube video when hovering a thumnail on YouTube
// ==UserScript==
// @name Youtube Video Preview
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *.youtube.com/*
// @grant none
// ==/UserScript==
@demaisj
demaisj / zarbouka.user.js
Created March 6, 2017 01:35
GREGOIRE LODI POINT JAVASCRIPT
// ==UserScript==
// @name zarbouka
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://intra.epitech.eu/user/gregoire.lodi@epitech.eu/
// @grant unsafeWindow
// ==/UserScript==
@demaisj
demaisj / install_qcm_ci.sh
Last active March 15, 2017 14:17 — forked from lodi-g/install_qcm_ci.sh
Install script for a private repository
#!/bin/bash
QCM_CI_FOLDER="/mnt/home/exam/QCM-CI/"
function error {
echo
echo "Failed. Exiting."
if [ -z $1 ]; then
echo "Umounting /mnt."
umount /mnt
@demaisj
demaisj / README.md
Last active November 8, 2020 17:38
BLINUX 4.0 EL TIGRE - Virtual Machine How-To

#Steps

  1. Download openSUSE Tumbleweed x86_64 ISO https://en.opensuse.org/openSUSE:Tumbleweed_installation
  2. Download every latest .rpm here, except exam ones https://pkg.blinux.fr/blinux/el_tigre/noarch/
  3. Boot onto the openSUSE ISO && install it
    • do a classic install
    • skip user creation
    • select server/text mode
  4. Once openSUSE installed, get the .rpm fileson the vm disk (use ssh, wget, or curl...)
  5. Add the BLINUX repository to zypper using zypper ar -p 150 https://pkg.blinux.fr/opensuse/update/13.2/openSUSE:13.2:Update.repo