Skip to content

Instantly share code, notes, and snippets.

View kikislater's full-sized avatar
🏄‍♂️

Sylvain POULAIN kikislater

🏄‍♂️
View GitHub Profile
@michalpelka
michalpelka / Dockerfile
Last active May 30, 2024 08:52
Livox2 && Fast Lio
# docker build -t livox -f Dockerfile .
# rocker --x11 --nvidia --network host livox
# set host ip to 192.168.1.5
# assume Livox ip is 192.168.1.177
# inside container:
# ping 192.168.1.177
# vim /ws/src/livox_ros_driver2/config/MID360_config.json
# screen -m bash -c '. /ws/devel/setup.sh && roslaunch /ws/src/livox_ros_driver2/launch_ROS1/msg_MID360.launch'
@MineRobber9000
MineRobber9000 / donotuse3.py
Last active February 8, 2024 12:48
How to NEVER use lambdas - Python 3 edition
###########################################################
# How to NEVER use lambdas. An inneficient and yet educa- #
# tonal [sic] guide to the proper misuse of the lambda #
# construct in Python 3.x. [DO NOT USE ANY OF THIS EVER] #
# original by (and apologies to): e000 (13/6/11) #
# now in Python 3 courtesy of: khuxkm (17/9/20) #
###########################################################
## Part 1. Basic LAMBDA Introduction ##
# If you're reading this, you've probably already read e000's
@kabili207
kabili207 / Rclone systemd service.md
Last active June 24, 2024 11:31
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox
@samtay
samtay / better_surfline.js
Last active October 14, 2020 05:02
Reveal more forecast data
// ==UserScript==
// @name Free Surfline Forecasts
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Unblurr restricted forecast data. They are dumb enough to actually put the real data in the DOM.
// @author samtay
// @match http*://www.surfline.com/*
// @grant none
// ==/UserScript==
@Artistan
Artistan / A Readme for Adding Certs.md
Last active March 11, 2024 21:12
Add new certificate (cert) from local/internal intranet to your mac

Add a cert to you macbook

USAGE

~/add_cert.sh my.intra.net

you will be asked for your password to add thit to keychain

  • downloads pem file
  • adds to trusted root certificates
@cquest
cquest / gdalecw.sh
Last active February 20, 2019 20:29
HOWTO build gdal 2 with ECW 5.3 (tested with gdal 2.2 and 2.3 on ubuntu 16.04)
unzip erdas-ecw-sdk-5.3.0-linux.zip
chmod +x ERDAS_ECWJP2_SDK-5.3.0.bin
./ERDAS_ECWJP2_SDK-5.3.0.bin
sudo cp -r ~/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.3.0/Desktop_Read-Only /usr/local/hexagon
ldconfig /usr/local/hexagon
cd gdal
CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" ./configure --with-ecw=/usr/local/hexagon --without-jpeg12
make clean
@GMMan
GMMan / ubuntu-gl502vs.md
Last active July 22, 2020 15:30
Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

Problems and Solutions for Ubuntu 16.04 LTS on ASUS ROG GL502VS Laptop

NVIDIA Graphics

Nouveau does not appear to support Pascal cards right now, so you should use the proprietary NVIDIA driver, available from the Additional Drivers applet.

Panel Dithering

@bjoern-r
bjoern-r / Huawei_E3372_openwrt.md
Last active June 15, 2024 18:56
How to use a Huawei E3372 on OpenWRT

HOWTO use a Huawei E3372 on OpenWRT

This modem is also sold as a MegaFon M150-2 USB dongle

Needed Software

Install the needed packages via opkg tool

opkg update
@GabLeRoux
GabLeRoux / archlinux-virtualbox.sh
Last active November 27, 2023 12:22
Virtualbox archlinux notes
# sudo /sbin/rcvboxdrv -h
# Unloading modules:
# Loading modules: modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxpci not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.4.3-1-ARCH
# Solution
# from https://forum.antergos.com/topic/818/can-t-run-my-vitualbox/4
@haisum
haisum / script.sh
Created September 1, 2015 06:10
comment and uncomment lines in bash script via sed
sed -i '/<pattern>/s/^/#/g' file #comment
sed -i '/<pattern>/s/^#//g' file #uncomment