Skip to content

Instantly share code, notes, and snippets.

@show0k
show0k / lbca.py
Last active January 7, 2024 23:19 — forked from fclairamb/lbca.py
Parseur de leboncoin : permet de s'envoyer des emails lors de nouvelles annonces sur une recherche précise
#!/usr/bin/python
import urllib
import requests
import re
import sqlite3
import os
import argparse
import gettext
import logging
import logging.handlers
@show0k
show0k / install_circuit_maker_osx.sh
Created July 5, 2017 13:25
Run CircuitMaker on OSX thanks to wine and winetricks
# If Homebrew is not installed uncomment the next line
# /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Wine and WineTricks
brew install wine && brew install winetricks
# Download CircuitMaker
curl https://s3.amazonaws.com/altium-install/CircuitMaker/CircuitMakerSetup.exe -o ~/Downloads/CircuitMakerSetup.exe
@show0k
show0k / reveal.html
Created July 2, 2015 14:50
include a video in reveal.js
<center>
<video autoplay="true" loop="true" muted="true" width="640">
<source src="https://s3.amazonaws.com/orm-atlas-media/atlas-jupyter/edit-with-atlas.mp4" type="video/mp4"> Your browser does not support the video tag.
</video>
</center>
@show0k
show0k / mesh_decimation.bash
Created December 9, 2015 06:48
Clean STL for 3D simulator
#!/bin/bash
# Delete 80% of meshes
# you need to install meshlab before :
# -> sudo apt-get install meshlab on Debian
# -> brew install meshlab on OSX
for f in `ls *.STL`; do
echo $f
meshlabserver -i "$f" -s script.mlx -o "$f"
done
@show0k
show0k / git_cheat_sheet.md
Last active May 29, 2019 15:57
Git self cheat sheey

Delete a submodule

git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit-m "Removed submodule "
rm -rf .git/modules/<path_to_submodule>

Make a branch concurent to master being the new master branch without loosing datas

@show0k
show0k / install_git_lfs.sh
Last active March 5, 2019 18:35
Compile and Install git-lfs on Raspberry Pi (with golang compilation)
install_git_lfs()
{
set -e
# Get out if git-lfs is already installed
if $(git-lfs &> /dev/null); then
echo "git-lfs is already installed"
return
fi
GIT_LFS_BUILD=$HOME/.bin
from __future__ import division
import time
import json
import cv2
from pypot.primitive import LoopPrimitive
import numpy as np
class ColorDetection(LoopPrimitive):
def __init__(self, robot, freq=5.):
@show0k
show0k / malmo_install_linux.sh
Last active March 16, 2018 15:10
Standalone malmo install on Linux thanks to Ananconda.
# Download and install Miniconda
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
rm miniconda.sh
echo "export PATH=$HOME/miniconda/bin:$PATH" >> "$HOME/.bashrc"
export PATH="$HOME/miniconda/bin:$PATH"
conda config --add channels conda-forge
@show0k
show0k / delete_github_repositories.bash
Last active October 25, 2017 13:24
Delete Old GitHub repositories
#!/bin/bash
# Create a file repo_list.twt with repositories you want to delete separated by a new line like
# usename/repo1
# username/repo2
FILE=repo_list.txt
# Replace xxx by your token with delete right on https://github.com/settings/tokens
while read r; do
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.