Skip to content

Instantly share code, notes, and snippets.

docker run --rm -it python:3.9-slim bash
pip install pandas pyarrow
python
import pandas as pd
import numpy as np
import json
sudo yum install -y fuse
sudo mkdir -p /var/lib/docker-plugins/rclone/config
sudo mkdir -p /var/lib/docker-plugins/rclone/cache
nano /var/lib/docker-plugins/rclone/config/rclone.conf
[my-service]
type = s3
provider = AWS
## Install Kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
echo "$(cat kubectl.sha256) kubectl" | sha256sum --check
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
# Proxy Gateway
# ftp://delegate.hpcc.jp/pub/DeleGate/download.html
delegated -v -P8080 SERVER=http ADMIN=you@your.domain MOUNT="/* https://backend/*" PROXY="poxy:port" MYAUTH="appli_user:pass:http:*:*"
@btheu
btheu / shared_folder_centos_virtualbox.txt
Created December 14, 2018 14:49 — forked from larsar/shared_folder_centos_virtualbox.txt
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required
yum update
yum install gcc kernel-devel make
reboot
@btheu
btheu / udp multicast
Last active September 18, 2018 21:00
## http://www.dest-unreach.org/socat/doc/socat-multicast.html
## SIMPLE
# receive
socat - udp4-listen:5000,reuseaddr,fork
# send
echo "hello" | socat - udp-sendto:127.0.0.1:5000
# raspi-config for config
apt-get update
apt-get upgrade
apt-get install git
curl -sSL get.docker.com | sh
# Docker compose
git clone https://github.com/docker/compose.git
cd compose
"C:\Program Files\Java\jdk1.7.0_79\bin\keytool" -import -keystore "C:\Program Files\Java\jdk1.7.0_79\jre\lib\security\cacerts" -file "C:\CGI\14 - RATP\fr-001slli082.groupinfra.com.crt"
#!/bin/bash
# Images sur:
# -http://virtualboxes.org/images/centos/
# -https://app.vagrantup.com/centos/boxes/7
# vnstat : pour volume traffic reseau
# nmtui : pour gestion du reseau
# iftop : pour top reseau
# htop : pour top processus
# ntp : pour date sync