Skip to content

Instantly share code, notes, and snippets.

View Wowu's full-sized avatar
🚀

Karol Musur Wowu

🚀
View GitHub Profile
@Wowu
Wowu / prometheus-alert-rocketchat.js
Created July 22, 2021 11:05
Prometheus Alert - Rocket.Chat
class Script {
process_incoming_request({ request }) {
//console.log(request.content);
var alertColor = "warning";
if (request.content.status == "resolved") {
alertColor = "good";
} else if (request.content.status == "firing") {
alertColor = "danger";
}
@Wowu
Wowu / sentry-rocketchat.js
Last active October 26, 2023 14:34
Sentry webhook integration for Rocket.Chat
class Script {
process_incoming_request({ request }) {
// console is a global helper to improve debug
console.log("Sentry error");
console.log(JSON.stringify(request.content));
var fields = [];
fields.push({
title: "Message",
@Wowu
Wowu / karabiner.json
Last active April 9, 2022 13:35
Adjust Retina Scaling With Karabiner and displayplacer
"rules": [
{
"description": "Change retina scaling on ⌘ + control + 1 and ⌘ + control + 2",
"manipulators": [
{
"from": {
"key_code": "1",
"modifiers": {
"mandatory": ["left_command", "left_control"]
}
@Wowu
Wowu / mors.rb
Created May 21, 2018 07:21
Opcodes-to-mors transpiler.
#!/usr/bin/env ruby
## Usage
# $ cat program
# add 1
# sub 2
# prnt
# exit
# $ cat program | ./mors.rb > program.mors
@Wowu
Wowu / gist:0c199733932a1263b4cebdc5418e363a
Created April 8, 2018 19:44
Verifying my Blockstack ID
Verifying my Blockstack ID is secured with the address 13YEPMn5MqnJqjtUaGkEjBz2DXMuszb7uR https://explorer.blockstack.org/address/13YEPMn5MqnJqjtUaGkEjBz2DXMuszb7uR
@Wowu
Wowu / ambush.js
Created March 13, 2016 20:28
Solution to level 10 in Untrusted: http://alex.nisnevich.com/untrusted/
/*************
* ambush.js *
*************
*
* Oh. Oh, I see. This wasn't quite part of the plan.
*
* Looks like they won't let you take the Algorithm
* without a fight. You'll need to carefully weave your
* way through the guard drones.
*

Keybase proof

I hereby claim:

  • I am Wowu on github.
  • I am pankarol (https://keybase.io/pankarol) on keybase.
  • I have a public key whose fingerprint is 30FA BF73 6E87 FED0 2498 3E9F 93B5 7077 45BE BC5B

To claim this, I am signing this object: