This file contains 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 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 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 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 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 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 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 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 plexinc/pms-docker:latest | |
MAINTAINER linktohack@gmail.com | |
RUN \ | |
# Update and get dependencies | |
apt-get update && \ | |
apt-get install -y smbclient cifs-utils nfs-common && \ | |
curl -s https://install.zerotier.com/ | bash || true && \ | |
# Cleanup | |
apt-get -y autoremove && \ | |
apt-get -y clean && \ |
This file contains 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
// Webpack | |
config.resolve = config.resolve || {}; | |
config.resolve.alias = config.resolve.alias || {}; | |
Object.assign(config.resolve.alias, { | |
jquery: path.join(__dirname, '/client/assets/lib/jquery/jquery.js'), | |
jqueryGritter: path.join(__dirname, '/client/assets/lib/jquery.gritter/js/jquery.gritter.js'), | |
perfectScrollbar: path.join(__dirname, '/client/assets/lib/perfect-scrollbar/js/perfect-scrollbar.jquery.min.js'), |
This file contains 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
declare module 'updeep' { | |
interface Placeholder { | |
} | |
interface Updeep { | |
<U extends {}>(updates: U): <T extends {}>(object: T) => T; //u(updates)(object) | |
<T extends {}>(_: Placeholder, object: T): <U extends {}>(updates: U) => T; // u(u._, object)(updates) | |
<T extends {}, U extends {}>(updates: U, object: T): T; // u(updates, object) | |
update<U extends {}>(updates: U): <T extends {}>(object: T) => T; // u.update(updates)(object) |