Skip to content

Instantly share code, notes, and snippets.

View cedricwalter's full-sized avatar
💭
Hello world

cedric walter cedricwalter

💭
Hello world
View GitHub Profile
@cedricwalter
cedricwalter / build-ars-releases.sh
Last active March 10, 2017 14:58
Build your own version of Akeeba release, use at your own risk, not endorsed by https://www.akeebabackup.com/
#!/bin/bash
# you need some dependencies, run them once
# pear channel-discover pear.phing.info
# pear install [--alldeps] phing/phing
# pear install -f VersionControl_SVN
# the major difficulties is to find a combination of version that work together...these are the latest as of today 19.05.2016
export release_version=3.1.1
export buildfiles_version=master

Keybase proof

I hereby claim:

  • I am cedricwalter on github.
  • I am cedricwalter (https://keybase.io/cedricwalter) on keybase.
  • I have a public key ASCmyW9-Cfg8Ore2_Z7arazMcIXjwgqwhKDhPVrTIB8UVAo

To claim this, I am signing this object:

@cedricwalter
cedricwalter / .gitattributes
Created January 30, 2014 10:48
GIT recommended settings
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto
# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.java text
*.xml text
*.xsl text
*.csv text
*.conf text
@cedricwalter
cedricwalter / gist:6021647
Last active December 10, 2017 15:02
Optimized Radiator for Teamcity 8 and up All credits to http://saveandexit.com/diy-build-radiator-for-teamcity/
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("td.buildConfigurationName IMG[src *= 'success.png']")
.parents("table")
.addClass("buildSuccess");
@cedricwalter
cedricwalter / mergeGitRepositories.sh
Created July 14, 2016 12:33
The script adds remotes for every project and then merges in every branch and tag. These are renamed to have the origin project name as a prefix Usage: mergeGitRepositories.sh <new_project> <my_repo_urls.lst> Where <new_project> is the name of the new project to create <my_repo_urls.lst> is a file contaning the URLs to the respositories which ar…
#!/bin/bash
#
################################################################################
## Script to merge multiple git repositories into a new repository
## - The new repository will contain a folder for every merged repository
## - The script adds remotes for every project and then merges in every branch
## and tag. These are renamed to have the origin project name as a prefix
##
## Usage: mergeGitRepositories.sh <new_project> <my_repo_urls.lst>
## - where <new_project> is the name of the new project to create
@cedricwalter
cedricwalter / example
Created January 18, 2012 21:52
Nginx configuration for JIRA, TeamCity, Nexus or any other Tomcat web application
## Server configuration for nginx to host Atlassian Jira / Jetbrain TeamCity or any other Tomcat web application
#
# author cedric.walter, www.waltercedric.com
# to be saved for ex in /etc/nginx/sites-available/example
server {
listen 80;
server_name jira.example.com;
access_log off;
location / {
@cedricwalter
cedricwalter / gpg_git_signing.md
Last active August 2, 2020 13:12
using GPG to sign your GIT commit

Windows

run once to create trustdb

gpg --list-secret-keys --keyid-format LONG

Common

@cedricwalter
cedricwalter / readme.md
Last active October 29, 2021 08:56
Sonatype NEXUS 2 has a rest API :-) but NEXUS 3 has none/not ready, the following simulate curl/wget call

Fetching artifact programmatically through REST/API fro Nexus2/3

Nexus 2.x had a REST API to download artifacts like below based on some Maven GAV co-ordinates but this no longer works for Nexus 3.x

Nexus 2.x

Nexus 2.x had a REST API to download artifacts based on some Maven GAV co-ordinates

wget "http://local:8081/service/local/artifact/maven/redirect?g=com.mycompany&a=my-app&v=LATEST" --content-disposition

or

@cedricwalter
cedricwalter / firewall.sh
Created January 27, 2012 20:43
Restrictive Iptables Based Firewall for Webserver script
#!/bin/bash
# Restrictive Iptables Based Firewall for Webserver script
# Copyright (C) 2012 Cédric Walter - www.waltercedric.com
# Credits to all various authors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.