Skip to content

Instantly share code, notes, and snippets.

View cedced19's full-sized avatar

Cédric JUNG cedced19

View GitHub Profile
@cedced19
cedced19 / utserver.conf
Last active August 31, 2022 16:24
utserver
###########################################
### ###
### Utorrent Server v3.0 Config File ###
### ###
### By Khizer Naeem ###
### khizernaeem@gmail.com ###
### Date: 29/12/2011 ###
### ###
###########################################
###########################################
@cedced19
cedced19 / smallpdf.sh
Created February 27, 2022 10:25
Convert PDF to JPEG PDF.
#!/bin/bash
echo "File $1."
convert $1 -format JPG -quality 5 small-$1
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=simple
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l cjung -c "/usr/bin/vncserver %i -geometry 1280x1024"
@cedced19
cedced19 / keybinding_pc_keyboard_mac.md
Last active October 30, 2020 21:18
Keybinding for a pc keyboard on MacOS.

Keybinding for a pc keyboard on MacOS

cd ~/Library/KeyBindings
nano DefaultKeyBinding.dict
{
@cedced19
cedced19 / webserver.ino
Created July 13, 2019 17:42
WebServer with KEYESTUDIO W5100 shield on Arduino (DCHP)
/*
Web Server
A simple web server that shows the value of the analog input pins.
using an Arduino Wiznet Ethernet shield.
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
* Analog inputs attached to pins A0 through A5 (optional)
@cedced19
cedced19 / decouverto.md
Created April 16, 2019 10:59
From 'v52' to 'v59' for Découverto App

Check this to change files: https://pvinis.github.io/purge-web/

Current JSON

"dependencies": {
    "async": "^2.6.1",
    "distance-between-points": "0.0.0",
    "get-extremums": "0.0.0",
 "mobx": "^4.2.1",
@cedced19
cedced19 / regexp-txt-to-coords.js
Created December 22, 2017 18:41
Get coordinates received from Warn Family app.
var txt = 'Je suis actuellement aux coordonnées GPS suivante: 48.6597597 7.21657276 https://www.google.fr/maps/place/48.6597597+7.21657276'
function getCoords (txt) {
var arr = txt.split(':')[1].replace('https', '').split(' ');
arr.forEach(function (i, k) {
if (i=='') arr.splice(k, 1);;
});
return {lat: arr[0], long: arr[1]};
}
@cedced19
cedced19 / distance-between-points.js
Last active May 25, 2017 17:51
Get the distance between points
var points = [
{x: 4, y: 3},
{x: 5, y: 2},
{x: 6, y: 1},
{x: 7, y: 0},
{x: 8, y: -1},
{x: 8, y: 9},
{x: 1, y: 1},
{x: 9, y: -4}
];

Clocks

Define the date on linux with sync:

  1. Add pool server
sudo nano /etc/ntp.conf

And write:

server ntp.ubuntu.com prefer
@cedced19
cedced19 / config
Last active February 25, 2024 23:09
Install i3 after install Fedora Gnome
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!