Skip to content

Instantly share code, notes, and snippets.

@senyor
senyor / howto_deb_repackage.txt
Created July 12, 2022 01:08 — forked from shamil/howto_deb_repackage.txt
Howto repackage deb packages
Use folowing steps to repackage dep package:
1: Extract deb package
# dpkg-deb -x <package.deb> <dir>
2: Extract control-information from a package
# dpkg-deb -e <package.deb> <dir/DEBIAN>
3. After completed to make changes to the package, repack the deb
# dpkg-deb -b <dir> <new-package.deb>
@senyor
senyor / ApiDocsRoutes.java
Last active March 20, 2019 04:22
SpringBoot Camel Swagger SpringFoxUI configuration
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.model.rest.RestBindingMode;
import org.springframework.stereotype.Component;
@Component
public class ApiDocsRoutes extends RouteBuilder {
@Override
public void configure() {
// @formatter:off
@senyor
senyor / Jenkinsfile
Created February 18, 2018 14:36 — forked from bvis/Jenkinsfile
Jenkin pipeline definition example to be integrated with Docker Swarm cluster in our CI/CD environment
pipeline {
agent { node { label 'swarm-ci' } }
environment {
TEST_PREFIX = "test-IMAGE"
TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}"
TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}"
REGISTRY_ADDRESS = "my.registry.address.com"
SLACK_CHANNEL = "#deployment-notifications"
@senyor
senyor / make-pxe-environment.sh
Created March 13, 2017 02:15 — forked from gdamjan/make-pxe-environment.sh
Make and start a PXE server
#!/bin/sh
mkdir /home/tftproot
# install syslinux from package and symlink it or just download and extract it
ln -s /usr/lib/syslinux /home/tftproot/syslinux
mkdir /home/tftproot/pxelinux.cfg/
cat > /home/tftproot/pxelinux.cfg/default <<EOF
@senyor
senyor / replace-centos6x-iptables
Created March 8, 2017 14:20 — forked from aputs/replace-centos6x-iptables
replace centos 6.x iptables
# compile iptables from source and install to /usr/local
mkdir -p /tmp/iptables
wget "http://www.netfilter.org/projects/iptables/files/iptables-1.4.21.tar.bz2" -qO- | tar --strip-components=1 -C /tmp/iptables -xvj
cd /tmp/iptables
./configure
make
make install
# set alternatives
sudo alternatives --install /sbin/iptables iptables.x86_64 /usr/local/sbin/iptables 100 \
@senyor
senyor / DefaultLayout.jsx
Created February 16, 2017 12:10 — forked from koistya/DefaultLayout.jsx
React.js (ReactJS) Page and Layout components. For a complete sample visit https://github.com/kriasoft/react-starter-kit and http://reactjs.kriasoft.com (demo)
/**
* Page layout, reused across multiple Page components
* @jsx React.DOM
*/
var React = require('react');
var ExecutionEnvironment = require('react/lib/ExecutionEnvironment');
var Navigation = require('../components/Navigation.jsx');
var DefaultLayout = React.createClass({
@senyor
senyor / SSLPoke.java
Created July 21, 2016 19:30 — forked from 4ndrej/SSLPoke.java
Test of java SSL / keystore / cert setup. Check the commet #1 for howto.
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
public static void main(String[] args) {
@senyor
senyor / LICENSE.txt
Created March 9, 2016 20:29 — forked from aemkei/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE