View mount.sh
#!/bin/bash
if [ -d "/tmp/build_mnt" ]; then
echo "/tmp/build_mnt already mounted - skip"
else
echo "Mount NAS to /tmp/build_mnt"
mkdir /tmp/build_mnt
mount -t smbfs //{{user}}:{{password}}@{{path}}/build {{mount_point}}
fi
View gitlabs_dock.sh
sudo docker run --name='gitlab' -it --rm -p 10022:22 -p 10080:80 -e 'GITLAB_PORT=10080' -e 'GITLAB_SSH_PORT=1022' -e 'GITLAB_HOST=*' -e 'GITLAB_PROJECTS_VISIBILITY=public' -e 'GITLAB_BACKUPS=daily' -v /home/francis/ops/gitlab-data:/home/git/data sameersbn/gitlab:latest
View gist:cf8ac2c4ccc35f2e689c
[ERROR in query 51] Table 'pfe-frontend.dfp_daily_stats' doesn't exist
[ERROR in query 128] Cannot load from mysql.proc. The table is probably corrupted
[ERROR in query 129] Cannot load from mysql.proc. The table is probably corrupted
[ERROR in query 130] Cannot load from mysql.proc. The table is probably corrupted
[ERROR in query 131] Cannot load from mysql.proc. The table is probably corrupted
[ERROR in query 132] Cannot load from mysql.proc. The table is probably corrupted
Import cancelled!
View gist:34855b465751d846750d
2014-05-14 15:50:55.999 WARN com.couchbase.client.vbucket.ConfigurationProviderHTTP: Connection problems with URI http://127.0.0.1:8091/pools ...skipping
java.io.IOException: Server returned HTTP response code: 401 for URL: http://127.0.0.1:8091/pools
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626)
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readToString(ConfigurationProviderHTTP.java:423)
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:209)
at com.couchbase.client.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:146)
at com.couchbase.client.CouchbaseConnectionFactory.getVBucketConfig(CouchbaseConnectionFactory.java:313)
at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:252)
at com.couchbase.client.CouchbaseClient.<init>(CouchbaseClient.java:217)
at adapters.CouchbaseAdapter.<init>(CouchbaseAdapter.java:36)
View LoginController.scala
package controllers.amazon
import play.api.Logger
import base.BaseData
import managers.amazon.LoginManager
import adapters.CouchbaseAdapter
import play.api.mvc.Controller
object LoginController extends Controller {
def oAuthLogin(access_token: Option[String]) = {
View gist:7e26a4bbd279c02a7898
// Generated on 2014-05-02 using generator-angular 0.8.0
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
View ReadMe.md

#Description:

  • svn update
  • restart your solr
  • run the schema-updater
  • worker
  • solr full import

So daily job's...

View my.cnf
# Fine Tuning
max_allowed_packet = 20M
thread_stack = 192K
myisam-recover = BACKUP
max_connections = 2048
open_files_limit = 32768
# Buffers and Caches
table_cache = 8192
tmp_table_size = 256M
View sudokochecker.php
#!/usr/bin/env php -f
<?php
$sudoko [] = [1, 8, 2, 5, 4, 3, 6, 9, 7];
$sudoko [] = [9, 6, 5, 1, 7, 8, 3, 4, 2];
$sudoko [] = [7, 4, 3, 9, 6, 2, 8, 1, 5];
function isValidSudoko($sudoko)
{
View cbbackup.py
#!/usr/bin/env python
__author__ = 'Francis Varga'
import os
import urlopen
import argparse
import time
import sys
import tarfile