Skip to content

Instantly share code, notes, and snippets.

View ramonjoaquim's full-sized avatar

Ramon Limas ramonjoaquim

  • Betha Sistemas
  • Brasil
  • 13:38 (UTC -03:00)
View GitHub Profile
@ramonjoaquim
ramonjoaquim / settings.xml
Last active January 7, 2021 11:32
Maven settings default - anupam
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<mirrors>
<mirror>
<id>anupam.com</id>
<name>anupam</name>
<url>https://repo.maven.apache.org/maven2/</url>
@ramonjoaquim
ramonjoaquim / zabbix-notification-rocketchat.sh
Last active July 28, 2020 17:44
Send notification of zabbix to Rocket.Chat - script generic
#!/bin/bash
URL_TOKEN="url webhook from Rocket.Chat"
# Params get by request - add params on zabbix on type of media configuration settings to match a script params
USER="$1"
SUBJECT="$2"
MESSAGE="$3"
# Change color emoji depending on the MESSAGE contains property - Green (RECOVERY), Red (PROBLEM), Yellow (UPDATE)
@ramonjoaquim
ramonjoaquim / Setup.cs
Last active July 21, 2020 16:00
invoke private method to mock
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Microsoft.EntityFrameworkCore;
using Moq;
namespace TestExamples01.Setup
{
public class Setup
{
@ramonjoaquim
ramonjoaquim / DeleteAllCamundaProcessInstances.ps1
Created May 19, 2020 13:23 — forked from ChrisMagnuson/DeleteAllCamundaProcessInstances.ps1
Delete all process instances in Camunda BPMN with powershell
$Uri = "http://localhost:8080/engine-rest/process-instance/"
$ProcessInstances = Invoke-WebRequest -Uri $Uri | select -ExpandProperty content | ConvertFrom-Json
foreach ($ProcessInstance in $ProcessInstances) {
Invoke-WebRequest -Method Delete -Uri $($Uri + $ProcessInstance.id)
}
@ramonjoaquim
ramonjoaquim / media-query.css
Created May 9, 2020 05:02 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@ramonjoaquim
ramonjoaquim / Prodis.ExitPageConfirmer.js
Created August 6, 2018 15:03 — forked from prodis/Prodis.ExitPageConfirmer.js
JavaScript exit page confirmer object
function ExitPageConfirmer(message) {
this.message = message;
this.needToConfirm = false;
var myself = this;
window.onbeforeunload = function() {
if (myself.needToConfirm) {
return myself.message;
}