Skip to content

Instantly share code, notes, and snippets.

View lexoyo's full-sized avatar
🥰
working full time on silex.me (foss)

Alex Hoyau lexoyo

🥰
working full time on silex.me (foss)
View GitHub Profile
@lexoyo
lexoyo / install-caprover.sh
Created June 23, 2023 07:23 — forked from hivivo/install-caprover.sh
Install CapRover on a brand new Ubuntu 22.04 standard server
#!/bin/bash
# Ubuntu 22.04
# Please also allow `80, 443, 3000` ports in the VM network rules if apply
# run as sudo
if [ "$EUID" -ne 0 ]
then echo "Please run as root or use sudo"
exit
fi
@lexoyo
lexoyo / mass-invite.js
Last active December 1, 2023 13:39
mass invite to a linkedin page
// open https://www.linkedin.com/company/71787366/admin/?invite=true
// Paste this in the console:
const from = 800
const to = from + 250
const el = document.querySelector('.invitee-picker__results-container')
let done = false
let prevNum = 0
function do_me() {
setTimeout(() => {
el.scrollTo(0, 0)
@lexoyo
lexoyo / rclone-docker.sh
Last active February 24, 2023 22:28
Run rclone in docker in 1 command
docker run --rm -it -p 8080:8080 \
--volume ~/rclone/config:/config/rclone \
--volume ~/rclone/data:/data:shared \
--user $(id -u):$(id -g) \
rclone/rclone \
"$@"
@lexoyo
lexoyo / silex tree component.js
Last active December 31, 2020 18:36
tree component for silex
function buildTree(element, elements = silex.getElements(), _id) {
if(!element) {
console.error('element is undefined', _id)
silex.updateElements(silex.getElements().filter(el => el.id !== _id))
return []
}
const children = (element.children || [])
.map(id => buildTree(silex.getElementById(id), elements, id))
const root = document.createElement('details')
root.setAttribute('data-id', element.id)
@lexoyo
lexoyo / deepspeech-streaming-test.sh
Created February 1, 2020 22:32
setting up mozilla's deepspeech and listen to mic on fedora
sudo dnf install python3-pyaudio portaudio-devel
# Download pre-trained English model and extract
curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.6.1/deepspeech-0.6.1-models.tar.gz
tar xvf deepspeech-0.6.1-models.tar.gz
# Download example audio files
curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.6.1/audio-0.6.1.tar.gz
tar xvf audio-0.6.1.tar.gz
@lexoyo
lexoyo / README.md
Last active March 8, 2019 21:31
Extract all emails from a linkedin search. Opens each profile and look for an email.
@lexoyo
lexoyo / README.md
Last active March 7, 2019 17:32
Sur LinkedIn, quelqu’un a-t-il une astuce pour afficher des résultats de recherche présentant uniquement les personnes que nous n’avons pas encore invitées ? En retirant donc toutes les personnes à qui j’ai déjà envoyé une invitation.

Sur LinkedIn, quelqu’un a-t-il une astuce pour afficher des résultats de recherche présentant uniquement les personnes que nous n’avons pas encore invitées ? En retirant donc toutes les personnes à qui j’ai déjà envoyé une invitation.

Utiliser cette extension:

1- installer cette extension pour Firefox ou Chrome

2- click ici pour installer ce script

3- faire une recherche sur linkein

@lexoyo
lexoyo / README.md
Last active January 27, 2019 02:31
Page rank

Page rank user script

About this user script

It adds a button to google search result, then ask you for a website and browse all result pages to find the position of this website in google.

screenshot from 2019-01-26 20-19-14

TODO:

  • use the URL un get rather than localstorage => enable multiple tabs
@lexoyo
lexoyo / warn-when-down.sh
Created March 18, 2018 22:58
check if silex has reboot after a release to production
while true; do curl -sSf https://preprod.silex.me/ > /dev/null ; sleep 2; done
@lexoyo
lexoyo / roverjeff.js
Last active January 7, 2018 12:09
jeff's attempt to the stars
var rover = {
directions : {"N" , "S" , "E" , "W"};
default : "N";
function turnLeft(rover){
console.log("turnLeft was called");
}
function turnRight(rover){
console.log("turnRight was called")