Skip to content

Instantly share code, notes, and snippets.

View vidakovic's full-sized avatar
🎯
Focusing

Aleksandar Vidakovic vidakovic

🎯
Focusing
View GitHub Profile

To create a BIRT runtime Maven artifact, please download birt-runtime-4.13.0-20230309.zip, unzip it to /tmp folder, then run the command

./src/main/scripts/install_birt_in_maven_repo.sh

This script was tested in macOS. It should work in Linux as well. It will generate this runtime artifact under the com.friss.org.eclipse.birt group ID.

All the dependencies will be installed into the local Maven repository ~/.m2/repository/.

Once it's successfully, this runtime artifact can be referred by the code

@rafaeltuelho
rafaeltuelho / camel-raw-oauth.java
Created January 18, 2017 12:47
camel snippet using oauth to get an auth token and use it to request a secured rest service
from("timer://scheduler?period=30s")
.log("get access token")
.to("direct:authService");
from("direct:authService").tracing()
.setHeader(Exchange.HTTP_PATH)
.simple("<auth service context>/oauth2/token")
.setHeader("CamelHttpMethod")
.simple("POST")
.setHeader("Content-Type")
@alexellis
alexellis / Dockerfile.msbuild
Last active March 14, 2023 16:25
Dockerfile for MSBuild / ASP.NET
# Customize / optimize as necessary.
# This could probably change to plain Windows Server Core as a base-image.
FROM microsoft/iis:10.0.14393.206
SHELL ["powershell"]
RUN Invoke-WebRequest "https://download.microsoft.com/download/9/B/B/9BB1309E-1A8F-4A47-A6C5-ECF76672A3B3/BuildTools_Full.exe" -OutFile "$env:TEMP\net.exe" -UseBasicParsing
RUN & "$env:TEMP\net.exe" /Silent /Full
RUN Install-WindowsFeature NET-Framework-45-ASPNET ; \
@kevin-lee
kevin-lee / JProfiler-with-Docker.md
Created August 10, 2016 15:55
JVM Profiler with Docker

JProfiler with Docker

Docker

DockerFile

DockerFile should have JProfiler installation.

RUN wget <JProfiler file location> -P /tmp/ && \
  tar -xzf /tmp/<JProfiler file> -C /usr/local && \
  rm /tmp/<JProfiler file>
import {Directive, Attribute} from '@angular/core';
import {NgModel} from '@angular/common';
@Directive({
selector: '[mask]',
host: {
'(keyup)': 'onInputChange()'
}
})
export class Mask {
maskPattern: string;
@dibble-james
dibble-james / Startup.cs
Created April 9, 2016 21:12
OWIN Middleware configuration for use with LetsEncrypt
using Microsoft.Owin;
using Microsoft.Owin.FileSystems;
using Owin;
using Umbraco.Web;
public class Startup : UmbracoDefaultOwinStartup
{
public override void Configuration(IAppBuilder app)
{
app.Map("/.well-known", letsEncrypt =>
@arno-di-loreto
arno-di-loreto / openapi_specification_fka_swagger_specification_tutorial.md
Last active May 5, 2022 13:46
OpenAPI Specification (fka Swagger Specification) tutorial files from [API Handyman blog](http://apihandyman.io)
@leommoore
leommoore / letsencrypt_ubuntu_nginx.md
Last active August 8, 2018 10:37
Letsencrypt Ubuntu 14.04 Nginx

#Letsencrypt Ubuntu 14.04 Nginx Letsencrypt (https://letsencrypt.org) is an initative which aims to increase the use of encryption for websites. It basically allows people to apply for free certificates provided that they prove the they control the requested domain.

Note: As of 8th March 2016 letsencrypt is still in public beta.

##Installation To install the client, clone the repostiory from github.

git clone https://github.com/letsencrypt/letsencrypt.git
@guss77
guss77 / mongo_db_recover_delete_record-2.4.py
Last active June 28, 2024 04:32
Try to recover deleted documents from a mongodb 2.4 data file. Based on https://gist.github.com/egguy/2788955 with help from https://yazadk.wordpress.com/2015/07/15/a-forensic-perspective-on-recovering-deleted-data-from-big-data-systems/#MongoDB . Make sure to change `decode_chunk` so it properly detects the objects you are trying to recover - i…
#!/usr/bin/python
"""A little script to recover deleted recording of a mongoDB db file
There's no optimization but it work and has saved me
"""
import struct
import bson
import pymongo
@moxus
moxus / gist:7789b93119df777465ea
Created July 5, 2015 09:34
Decrypt KeePass files
/* global Buffer */
/**
* Decrypt KeePass files
*
* There are some sources where you can find description about the keepass file format
* https://gist.githubusercontent.com/msmuenchen/9318327/raw/f6cbc07c01297f129700b7e14e1013253ab8b44f/gistfile1.txt
* http://blog.sharedmemory.fr/en/2014/04/30/keepass-file-format-explained/
*/