Skip to content

Instantly share code, notes, and snippets.

@XTalandier
XTalandier / Install-server-gala-prod.sh
Created June 15, 2013 09:51
Description of the GIST
#!/bin/sh
git checkout .
git checkout master
git pull origin master
@XTalandier
XTalandier / getRandomPasswd.js
Created August 24, 2013 13:30
Generate a random password
function getRandomPasswd(size){
var alfa = 'azertyuiopqsdfghjklmWXCVBN1234567890AZERTYUIOPQSDFGHJKLMWXCVBN';
var rnd = function (s) {
return Math.floor((Math.random() * s));
};
var pass = '';
for (var i = 0; i < size; i++) {
pass += alfa[rnd(alfa.length)]
};
return pass;
CREATE TABLE ARCHIVE (
arcId NUMBER,
arcTitre VARCHAR2(250),
arcIndex1 VARCHAR2(50),
arcIndex2 VARCHAR2(50),
arcIndex3 VARCHAR2(50),
arcIndex4 VARCHAR2(50),
arcIndex5 VARCHAR2(50),
arcCategorie NUMBER,
arcNolot NUMBER
@XTalandier
XTalandier / gist:6594554
Last active December 23, 2015 06:29
Cookie Clicker
setInterval(function(){document.getElementById('bigCookie').click()}, 1);
Game.Earn(99999999999);
var intervals = [];
for(var i = 0 ; i < 1000; i++){
intervals.push(setInterval(function(){document.getElementById('bigCookie').click()}, 1));
}
@XTalandier
XTalandier / nodejs-npm-n.sh
Last active December 24, 2015 15:09
nodeJS + NPM + n
mkdir .nodesrc
cd .nodesrc
git clone https://github.com/ry/node.git
cd node
./configure
make
sudo make install
curl https://npmjs.org/install.sh | sh
@XTalandier
XTalandier / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
@XTalandier
XTalandier / Dockerfile
Created January 17, 2020 06:37
Cloudron php 7.3
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
RUN mkdir -p /app/code
WORKDIR /app/code
# PHP 7.3
RUN apt-get update && apt install -y software-properties-common
RUN add-apt-repository ppa:ondrej/php
RUN apt update