Edit file /home/gitlab/gitlab/config/unicorn.rb
Find line listen "#{app_dir}/tmp/sockets/gitlab.socket"
and comment it.
Uncomment line listen "127.0.0.1:8080"
sudo a2enmod proxy
sudo a2enmod proxy_balancer
#!/bin/sh | |
DEBMLOG=/pool/debmirror/debmirror.log | |
MIRRORDIR=/pool/debmirror | |
BANDWIDTH=500 | |
if test -s $DEBMLOG | |
then | |
test -f $DEBMLOG.3.gz && mv $DEBMLOG.3.gz $DEBMLOG.4.gz | |
test -f $DEBMLOG.2.gz && mv $DEBMLOG.2.gz $DEBMLOG.3.gz |
function Select-Unique | |
{ | |
[CmdletBinding()] | |
param | |
( | |
[Parameter(Mandatory=$true, Position=0)] | |
[string[]] $Property, | |
[Parameter(Mandatory=$true, ValueFromPipeline=$true)] | |
$InputObject, |
•_•) | |
( •_•)>⌐■-■ | |
(⌐■_■) |
#!/bin/sh | |
ProgName=$(basename $0) | |
sub_help(){ | |
echo "Usage: $ProgName <subcommand> [options]\n" | |
echo "Subcommands:" | |
echo " bar Do bar" | |
echo " baz Run baz" | |
echo "" |
// ==UserScript== | |
// @name SoundCloud Last.fm Scrobbler | |
// @namespace http://userscripts.org/users/266001 | |
// @description SoundCloud Last.fm Scrobbler is a JS/Greasemonkey-based Last.fm scrobbler for SoundCloud with support for loving tracks. Based on Bandcamp Last.fm Scrobbler 0.9.4 GGS-0.9.3. | |
// @require http://userscripts-mirror.org/scripts/source/85398.user.js | |
// @include http://soundcloud.com/* | |
// @include https://soundcloud.com/* | |
// @version 0.1.6 GGS-0.9.5-Dv6 | |
// @license FreeBSD License (see source code). Portions dual-licensed under the MIT (Expat) License and GPLv2. | |
// @grant GM_log |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost