Apache/PHP cannot connect to Sphinx or other service
# setsebool -P httpd_can_network_connect 1
Apache/PHP cannot connect to remote MySQL server
# setsebool -P httpd_can_network_connect_db 1
Cannot connect to SSH with key
Apache/PHP cannot connect to Sphinx or other service
# setsebool -P httpd_can_network_connect 1
Apache/PHP cannot connect to remote MySQL server
# setsebool -P httpd_can_network_connect_db 1
Cannot connect to SSH with key
Convert files into JPG and rotate for file in *.bmp; do convert -resize 50% -rotate 90 "$file" rot/"$file".jpg; done
Convert images and optimize them as text pages for img in *.bmp; do mogrify -normalize -level 10%,90% -sharpen 0x1 -rotate 90 $img rot/"$img".jpg; done
Convert with better filename handling
for file in *.bmp; do filet=basename $file .bmp
; convert -rotate 90 -resize 50% "$file" rot/"printf %04d $filet
".jpg; done
<!-- | |
This file is for Continuous Integration server | |
Please don't edit this file if you are not sure what you are doing. | |
For any change please consult it with appropriate person. | |
Author: Martin Malek <[email protected]> | |
--> | |
<project name="project" default="" basedir="."> | |
<!-- Define for use with windows --> |
#!/usr/bin/make | |
all: analyze | |
# no more commands | |
mo: | |
find ./app/locale/ -name '*.po' -exec bash -c 'msgfmt -cv -o $${0/\.po/\.mo} $$0' {} \; | |
# Delete last build artifacts | |
cleanbuild: |
Welcome!
For feedback or suggestions, please send a tweet (@dideler). Gist comments don't notify me. Pull requests aren't possible with gists (yet), so I don't recommend forking because then I can't easily get the change.
Starring this gist will give me an idea of how many people consider this list useful.
#!/bin/bash | |
ID=$1 | |
NAME=$2 | |
if [ $# -ne 2 ] | |
then | |
echo "Usage: `basename $0` <id> <name>" | |
exit 65 | |
fi |
#!/bin/bash | |
REPO="My-Job-Name" | |
TOKEN="token from jenkins" | |
JENKINSURL="http://login:[email protected]/" | |
declare -A branches | |
while read oldrev newrew ref; do | |
if [ -z $ref ]; then |
<?php | |
namespace NetteLab\Console; | |
class Exec | |
{ | |
public static function call($cmd, $input='') | |
{ | |
$proc = proc_open($cmd, array(0=>array('pipe', 'r'), 1=>array('pipe', 'w'), 2=>array('pipe', 'w')), $pipes); | |
fwrite($pipes[0], $input); | |
fclose($pipes[0]); |
#!/bin/bash | |
DESC="Selenium Grid Server" | |
RUN_AS="selenium" | |
JAVA_BIN="/usr/bin/java" | |
SELENIUM_DIR="/opt/selenium" | |
PID_FILE="$SELENIUM_DIR/selenium-grid.pid" | |
JAR_FILE="$SELENIUM_DIR/selenium-server.jar" | |
LOG_DIR="/var/log/selenium" |