Skip to content

Instantly share code, notes, and snippets.

View triskell's full-sized avatar

Thomas Abot triskell

View GitHub Profile
### Keybase proof
I hereby claim:
* I am triskell on github.
* I am triskell (https://keybase.io/triskell) on keybase.
* I have a public key ASAFdVPU8dkqnX_g6Sx6W91ZIcBqJH-dtBqbgdSvE_pvjAo
To claim this, I am signing this object:
@triskell
triskell / cntlm_npm.md
Last active April 13, 2021 10:42
[Windows 7] CNTLM and NPM behind NTLM proxy

CNTLM and NPM behind NTLM proxy on Windows 7

CNTLM

  • Install CNTLM in a folder where you have full rights to run it as administrator.

  • Open cntlm.ini and fill it :

Username    YOUR_USERNAME
Domain YOUR_DOMAIN
@triskell
triskell / Dockerfile
Created April 19, 2014 15:01
[Dockerfile] trysk/arch-enhanced
FROM base/arch
RUN pacman -Sy
RUN pacman -S --noconfirm archlinux-keyring
RUN pacman -Su --noconfirm
RUN pacman -S --noconfirm binutils file tar gcc grep make git openssh vim zsh
RUN curl -O https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz && \
tar zxvf package-query.tar.gz && \
@triskell
triskell / rest_vibe.d
Created February 24, 2014 13:19
vibe.d : REST API
@rootPath("/books")
class Books {
void get() { ... } // GET /books/
void getNew() { ... } // GET /books/new
void get(string id) { ... } // GET /books/:id
void create() { ... } // POST /books/
void set(string id) { ... } // POST /books/:id
void erase(string id) { ... } // DELETE /books/:id
}
@triskell
triskell / gist:8583415
Created January 23, 2014 17:52
my DSFML-C cmake command
cmake \
-D SFML_SYSTEM_LIBRARY_RELEASE=$SRC_DIR/SFML-2.0/lib/libsfml-system-s.a \
-D SFML_AUDIO_LIBRARY_RELEASE=$SRC_DIR/dsfml_make/SFML-2.0/lib/libsfml-audio-s.a \
-D SFML_WINDOW_LIBRARY_RELEASE=$SRC_DIR/dsfml_make/SFML-2.0/lib/libsfml-window-s.a \
-D SFML_NETWORK_LIBRARY_RELEASE=$SRC_DIR/dsfml_make/SFML-2.0/lib/libsfml-network-s.a \
-D SFML_GRAPHICS_LIBRARY_RELEASE=$SRC_DIR/dsfml_make/SFML-2.0/lib/libsfml-graphics-s.a \
.
@triskell
triskell / MainActivity.java
Created November 30, 2013 11:41
Helloworld activity
@Override
protected void onStart(){
super.onStart();
Button b = (Button)findViewById(R.id.buttonHello);
b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String name = ((EditText)findViewById(R.id.etNom)).getText().toString();
Toast.makeText(view.getContext(), "Hello world from " + name + " !", Toast.LENGTH_LONG)
@triskell
triskell / notesperso_voilier_ISEN
Created November 6, 2013 15:23
notesperso_voilier_ISEN
NOTES PERSO : Projet voilier Isen M1
--------
ACHATS
--------
Anémo, 32€ : http://jr-international.fr/anemometer-captor-detector-for-twilight_850ANCP_itm_english.html
Anémo basique en bidouillant pour moins de 3livres : http://www.maplin.co.uk/n25fr-wind-speed-sensor-676620
Girouette basique en bidouillant pour moins de 10 livres : http://www.maplin.co.uk/replacement-wind-direction-sensor-676615
@triskell
triskell / meteo_surf.html
Created September 28, 2013 14:00
Meteo surf
<html>
<head>
<meta charset="utf-8" />
<title>Prévisions Allosurf : Petit minou (29)</title>
</head>
<body>
<!-- (c) allosurf.net START -->
<script type="text/javascript" src="http://www.allosurf.net/extern/mb1js.php?id=342&ventunite=kmh">