Skip to content

Instantly share code, notes, and snippets.

cedric walter cedricwalter

Block or report user

Report or block cedricwalter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cedricwalter
cedricwalter / readme.md
Last active Jul 14, 2019
Sonatype NEXUS 2 has a rest API :-) but NEXUS 3 has none/not ready, the following simulate curl/wget call
View readme.md

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 / mergeGitRepositories.sh
Created Jul 14, 2016
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…
View mergeGitRepositories.sh
#!/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 / gpg_git_signing.md
Last active Oct 16, 2018
using GPG to sign your GIT commit
View gpg_git_signing.md

Windows

run once to create trustdb

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

Common

@cedricwalter
cedricwalter / firewall.sh
Created Jan 27, 2012
Restrictive Iptables Based Firewall for Webserver script
View firewall.sh
#!/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.
@cedricwalter
cedricwalter / gist:6021647
Last active Dec 10, 2017
Optimized Radiator for Teamcity 8 and up All credits to http://saveandexit.com/diy-build-radiator-for-teamcity/
View gist:6021647
<!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 / .gitattributes
Created Jan 30, 2014
GIT recommended settings
View .gitattributes
# 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 / example
Created Jan 18, 2012
Nginx configuration for JIRA, TeamCity, Nexus or any other Tomcat web application
View example
## 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 / {
View keybase.md

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 / build-ars-releases.sh
Last active Mar 10, 2017
Build your own version of Akeeba release, use at your own risk, not endorsed by https://www.akeebabackup.com/
View build-ars-releases.sh
#!/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
@cedricwalter
cedricwalter / notes.txt
Last active Feb 10, 2017
Aeontec, raspberryPi3, openHabian, openHab, FIbaro sensor
View notes.txt
Here are my notes since i am still strugling to make it work, it may help you
Hardware
* rapsberry PI 3 with Linux openHABianPi 4.4.0-1-rpi2 #1 SMP Debian 4.4.6-1+rpi14 (2016-05-05) armv7l GNU/Linux
* openHAB 2.0.0-1 (Release Build) on /dev/ttyACM0
* Latest AEONtec Gen5 USB
* Fibaro FGMS001-001 ZW5 Motion Sensor firmware v3.2
* Vision plus zwave plus siren
Attention: Order a lamp or something not harmful (like a siren that run for 30s) to test your automation rules
You can’t perform that action at this time.