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' | |
let Promise = require('bluebird'); | |
let fs = Promise.promisifyAll(require('fs')); | |
let Cheerio = require('cheerio'); | |
let Request = require('request'); | |
let ToughCookie = require('tough-cookie'); | |
class Session { |
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
<?php | |
namespace API\Controllers; | |
use Respect\Validation\Exceptions\NestedValidationException; | |
class User { | |
protected $userRepository; | |
protected $logger; |
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
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.socket mode 660 level admin | |
stats timeout 30s | |
user haproxy | |
group haproxy | |
daemon | |
maxconn 2048 |
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
// ==UserScript== | |
// @name Facebook Group Scraper | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author James Jeffery <jamesjefferyuk@protonmail.com> | |
// @match https://www.facebook.com/search/str/*/keywords_groups | |
// @grant GM_setClipboard | |
// ==/UserScript== |
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
ffmpeg \ | |
-re -y \ | |
-loop 1 \ | |
-f image2 \ | |
-i img_0.jpg \ | |
-i audio.mp3 \ | |
-acodec libfdk_aac \ | |
-ac 1 \ | |
-ar 44100 \ | |
-b:a 128k \ |
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
sudo -u "${user}" bash -s <<ILOVEBASH | |
export WP_CLI_CACHE_DIR=${webroot} | |
cd ${webroot} | |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
chmod +x ${webroot}/wp-cli.phar | |
./wp-cli.phar core download | |
./wp-cli.phar config create --dbname="${db_name}" --dbuser="${db_username}" --dbpass="${db_password}" --dbhost="${db_host}" |
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
## Example configuration: | |
# upstream fastcgi_backend { | |
# # use tcp connection | |
# # server 127.0.0.1:9000; | |
# # or socket | |
# server unix:/var/run/php/php7.0-fpm.sock; | |
# } | |
# server { | |
# listen 80; | |
# server_name mage.dev; |
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
# TODO: Use calculation to set these sizes | |
sed -r -i 's/^;?pm ?=.*$/pm = dynamic/' /etc/php/7.2/fpm/pool.d/www.conf | |
sed -r -i 's/^;?pm.max_children ?=.*$/pm.max_children = 25/' /etc/php/7.2/fpm/pool.d/www.conf | |
sed -r -i 's/^;?pm.start_servers ?=.*$/pm.start_servers = 10/' /etc/php/7.2/fpm/pool.d/www.conf | |
sed -r -i 's/^;?pm.min_spare_servers ?=.*$/pm.min_spare_servers = 5/' /etc/php/7.2/fpm/pool.d/www.conf | |
sed -r -i 's/^;?pm.max_spare_servers ?=.*$/pm.max_spare_servers = 20/' /etc/php/7.2/fpm/pool.d/www.conf | |
sed -r -i 's/^;?pm.max_requests ?=.*$/pm.max_requests = 500/' /etc/php/7.2/fpm/pool.d/www.conf |
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
call plug#begin('C:\Users\Skrimble\AppData\Local\nvim\plugged') | |
Plug 'C:\ProgramData\chocolatey\bin\fzf.exe' | |
Plug 'junegunn/fzf.vim' | |
Plug 'joshdick/onedark.vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'mattn/emmet-vim' | |
Plug 'takac/vim-hardtime' | |
call plug#end() |
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
#!/usr/bin/env bash | |
# Developer: jamie@jr2.co.uk | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
export DEBIAN_FRONTEND=noninteractive | |
mode="developer" |
NewerOlder