This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#+OPTIONS: toc:nil | |
#+LATEX_HEADER: \usepackage[a4paper]{geometry} | |
#+LATEX_HEADER: \setlength{\parindent}{0em} | |
#+LATEX_HEADER: \setlength{\parskip}{0.8em} | |
#+LATEX_HEADER: \renewcommand{\baselinestretch}{1.35} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ouistipix is a photo printing service that allows users to chose photos from multiple source s including Instagram. | |
We use the API to download users' public photos and send it to the printing service. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
var rp = require('request-promise'); | |
var cheerio = require('cheerio'); | |
var _ = require('lodash'); | |
var fs = require('fs'); | |
var Promise = require('bluebird'); | |
var JSZip = require('JSZip'); | |
var imdbID = 'tt1355644'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require('http'); | |
const exec = require('child_process').exec; | |
const hostname = '0.0.0.0'; | |
const port = 3000; | |
const server = http.createServer((req, res) => { | |
exec('ls /home/scamark | sed s"/-2017.*//" | sort | uniq', (error, stdout, stderr) => { | |
if (error) { | |
console.error(`exec error: ${error}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var prevajax = jQuery.ajax; | |
jQuery.ajax = function () { debugger; return prevajax.apply(jQuery, arguments); }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf app.log | |
touch app.log | |
lxterminal -e 'tail -f app.log' 2>> app.log 1>> app.log & | |
lxterminal -e 'tail -f /var/log/mysql/error.log' 2>> app.log 1>> app.log & | |
sudo zerotier-cli join e5cd7a9e1cd6187e 2>> app.log 1>> app.log & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'), | |
livereload = require('gulp-livereload'); | |
gulp.task('default', function () { | |
livereload.listen(35000); | |
gulp.watch('starter.html', function () { | |
gulp.src('starter.html').pipe(livereload()) | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var links = document.querySelectorAll('.remove-link'); | |
var actions = [].map.call(links, (link) => () => removeLink(link)); | |
series(actions); | |
function removeLink(link) { | |
return new Promise((resolve, reject) => { | |
link.click() | |
setTimeout(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat > "$HOME/main.html" <<'EOF' | |
<style> | |
.magasin-lot-info { | |
font-family: monospace; | |
font-size: 8px; | |
color: white; | |
padding: 8px; | |
} | |
</style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
MAINTAINER [email protected] | |
RUN apt-get update && \ | |
apt-get install -y x11vnc xvfb dwm firefox && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN mkdir ~/.vnc && \ | |
x11vnc -storepasswd 1234 ~/.vnc/passwd && \ | |
bash -c 'echo "#!/bin/bash" > /entrypoint.sh' && \ | |
bash -c 'echo "Xvfb :0 -screen 0 1024x768x16 &" >> /entrypoint.sh' && \ | |
bash -c 'echo "sleep 1" >> /entrypoint.sh' && \ |