Skip to content

Instantly share code, notes, and snippets.

View LaurentTreguier's full-sized avatar
💻
Coding, one keystroke at a time...

Laurent Tréguier LaurentTreguier

💻
Coding, one keystroke at a time...
View GitHub Profile
[Unit]
Description=OneDrive (rclone)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount \
--vfs-cache-mode full \
OneDrive: %h/OneDrive
@LaurentTreguier
LaurentTreguier / night-switch.md
Last active August 10, 2021 11:39
Windows Night Switch

Windows Night Switch

Installing the script

The script can be put anywhere, for this gist it will be under C:\Program Files\Night Switch. Simply create the Night Switch directory, and place switch.ps1 inside it.

Script usage trivia

The script takes 2 arguments.

Keybase proof

I hereby claim:

  • I am LaurentTreguier on github.
  • I am tcg (https://keybase.io/tcg) on keybase.
  • I have a public key ASDTLxGAm7hzqZsqeTGJUFUW0ijAhqWOoUu_ZXtL7ChAewo

To claim this, I am signing this object:

@LaurentTreguier
LaurentTreguier / main.d
Last active February 3, 2016 12:12
Computes the smallest positive integer which digits are the same ones as its double, but shuffled
import std.algorithm;
import std.array;
import std.conv;
import std.stdio;
int main(string[] args)
{
int n;
byte[] number;
byte[] twice;
@LaurentTreguier
LaurentTreguier / Main.hx
Created June 20, 2015 09:25
OpenFL stage3D with GLSL example
// based on this example from Adobe : https://www.adobe.com/devnet/flashplayer/articles/hello-triangle.html
// OpenFL reference : http://docs.openfl.org/
// some GLSL documentation can be found here : http://wiki.lwjgl.org/wiki/Main_Page
import sys.io.*;
import openfl.*;
import openfl.gl.*;
import openfl.display.*;
import openfl.display3D.*;
import openfl.events.*;