Skip to content

Instantly share code, notes, and snippets.

View atlasloewenherz's full-sized avatar

Yassine Elassad atlasloewenherz

  • Bonn
  • 02:17 (UTC +02:00)
View GitHub Profile
deletefeaturebranch()¬
{
log $0
log $1
while read -u3 line;
do
#if [[ $line =~ ^\*\ ]]
if [[ "$line" == *"$1"* ]]; then
log "$line";
#!/bin/bash
#
# Tomcat 7 start/stop/status script
# Forked from: https://gist.github.com/valotas/1000094
# @author: Miglen Evlogiev <bash@miglen.com>
#
# Forked again from https://gist.github.com/miglen/5590986
# Release updates:
# -JAVA_HOME resolution is done dynamically
export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:jre/bin/java::")
#Create a new file in your home directory called .gtkrc-eclipse
# call eclipse with this command:
# env GTK2_RC_FILES=/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:/home/USER/.gtkrc-eclipse '/path_to_eclipse/eclipse'
# In your Eclipse directory find the file 'plugins/org.eclipse.platform_4.2.*/css/e4_default_gtk.css'
# (there's an * in there, because I guess that the version may change in the future or may be different already).
# In this file there's a CSS class:
#.MPartStack {
# Since we need a syncdb on all the databases, before the tests can be
# runned successfully we need to execute
#
# $ python manage.py syncdb
# $ python manage.py syncdb --database=test
#
# otherwise will be errors like
#
# 'django.db.utils.DatabaseError: no such table: django_site'
@atlasloewenherz
atlasloewenherz / BootStrap.groovy
Last active August 29, 2015 13:55
java.io.File on Steroid, enables you to new File(zipFilePath).unzip(destination) || new File(dirPath).zip(destination) || new File(FilePath).replace()
package utils
import java.util.Map
import java.util.zip.ZipOutputStream
import java.util.zip.ZipInputStream
import java.util.zip.ZipEntry
import groovy.text.SimpleTemplateEngine
class BootStrap {
void boot() {
jail:
[tomcat-manager]
enabled = true
port = 8080,8443
bantime = 3601
filter = tomcat-manager
maxretry = 4
logpath = /var/log/tomcat7/localhost_access_log.*.txt
Building native extensions with: '--with-pgsql-include=/Applications/Postgres93.app/Contents/MacOS/include --with-pg-config=/Applications/Postgres93.app/Contents/MacOS/bin/pg_config --with-pgsql-lib=/Applications/ions/Postgres93.app/Contents/MacOS/lib'
This could take a while...
ERROR: Error installing ruby-postgres:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --with-pgsql-include=/Applications/Postgres93.app/Contents/MacOS/include --with-pg-config=/Applications/Postgres93.app/Contents/MacOS/bin/pg_config --with-pgsql-lib=/Applications/ions/Postgres93.app/Contents/MacOS/lib
checking for main() in -lpq... yes
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for PQsetClientEncoding()... yes

Setting up XEN on a Hetzner Dedicated Server (EX-series)

Author: Michael van Rooijen (@meskyanichi)

DISCLAIMER: I am a programmer, not a sysadmin in my day-to-day life. I provide this guide simply as a self-reference, and as a way to contribute to the community of developers. The main motivation for writing this guide is because of the lack of properly written guides/tutorials. They were either out-dated, inaccurate, in a non-English language or simply too vague to understand (at least for me, as a programmer and not a sysadmin).

I hope this guide helps getting you up and running with your own collection of VPS's on your own Dedicated Server over at Hetzner.de.

Requirements:

Setting up XEN on a Hetzner Dedicated Server (EX-series)

Author: Michael van Rooijen (@meskyanichi)

DISCLAIMER: I am a programmer, not a sysadmin in my day-to-day life. I provide this guide simply as a self-reference, and as a way to contribute to the community of developers. The main motivation for writing this guide is because of the lack of properly written guides/tutorials. They were either out-dated, inaccurate, in a non-English language or simply too vague to understand (at least for me, as a programmer and not a sysadmin).

I hope this guide helps getting you up and running with your own collection of VPS's on your own Dedicated Server over at Hetzner.de.

Requirements:

  UPDATE `NEXUS 5` 
     SET `VERSION`='5.0.1', `BUILD`='LRX22C', `RECOVERY`='CUSTOM', `ROOTED`=1 
   WHERE `VERSION`='5.0' && `BUILD`='LRX21O' && `RECOVERY`='CUSTOM' && `ROOTED`=1 
         && `WANNA_KEEP_USERDATA`=1;

A manual OTA for rooted hammerheads, quasi.