Skip to content

Instantly share code, notes, and snippets.

@XTalandier
XTalandier / Dockerfile
Created Jan 17, 2020
Cloudron php 7.3
View Dockerfile
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
View designer.html
<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 / nodejs-npm-n.sh
Last active Dec 24, 2015
nodeJS + NPM + n
View nodejs-npm-n.sh
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 / gist:6594554
Last active Dec 23, 2015
Cookie Clicker
View gist:6594554
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));
}
View tp-oracle
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 / getRandomPasswd.js
Created Aug 24, 2013
Generate a random password
View getRandomPasswd.js
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;
View Install-server-gala-prod.sh
#!/bin/sh
git checkout .
git checkout master
git pull origin master
You can’t perform that action at this time.