This is a step per step guide on how to install and configure Wal-E on a Ubuntu 16.04 or Ubuntu 14.04 server.
- First install the required packages from apt
#!/usr/bin/env python | |
#coding=utf-8 | |
import apt | |
import apt_pkg | |
from time import strftime | |
import json | |
import os | |
import requests | |
import subprocess |
setInterval(function(){ | |
var divs = document.getElementsByTagName('div') | |
var arr = Array.prototype.slice.call( divs) | |
var hearts = arr.filter(x => x.getAttribute('data-testid') == 'like') | |
hearts.forEach(h => h.click()) | |
window.scrollTo(0, document.body.scrollHeight ||document.documentElement.scrollHeight); | |
},1000); |
import os | |
import shutil | |
import requests | |
GITLAB_URL = 'https://foo.com/api/v4/projects/210/repository/branches' | |
GITLAB_TOKEN = '123456abcdefg' # GitLab user token | |
SERVER_PATH = '/apps/foobar/ios/development' # Where are the build branches | |
def remove_folder(path): | |
# check if folder exists |
source 'https://rubygems.org' | |
git_source(:github) do |repo_name| | |
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") | |
"https://github.com/#{repo_name}.git" | |
end | |
gem 'rails', '~> 5.1.4' | |
gem 'pg', '~> 0.18' | |
gem 'puma', '~> 3.7' |
#!/usr/bin/env bash | |
#################################################################################### | |
# Slack Bash console script for sending messages. | |
#################################################################################### | |
# Installation | |
# $ curl -s https://gist.githubusercontent.com/andkirby/67a774513215d7ba06384186dd441d9e/raw --output /usr/bin/slack | |
# $ chmod +x /usr/bin/slack | |
#################################################################################### | |
# USAGE | |
# Send message to slack channel/user |
# This file actually fires up multiple sidekiq services. | |
# to start: systemctl start sidekiq.target | |
# | |
[Unit] | |
Description=Fire up up to 6 sidekiqs | |
# If you want more than 6 processes, append sidekiq@7.service, sidekiq@8.service, etc. to the ExecStart line below | |
# Note that only as many as have been enabled will actually start. | |
# Note also that the Unit data for each sidekiq process is in /lib/systemd/system/sidekiq@.service | |
[Service] |
[mysqld_safe] | |
nice = -15 | |
[mysqld] | |
max_binlog_size = 256M #max size for binlog before rolling | |
expire_logs_days = 1 #binlog files older than this will be purged | |
## Per-Thread Buffers * (max_connections) = total per-thread mem usage | |
thread_stack = 256K #default: 32bit: 192K, 64bit: 256K | |
sort_buffer_size = 1M #default: 2M, larger may cause perf issues |
execute pathogen#infect() | |
set nocompatible | |
syntax on | |
filetype plugin indent on | |
set nowrap | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set expandtab | |
set laststatus=2 |