Skip to content

Instantly share code, notes, and snippets.

package com.backbase.interview.course.controller;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
set tabstop=2
set expandtab
set shiftwidth=2
@cunla
cunla / coverage badges
Last active May 14, 2025 16:14
coverage badges
coverage badges
test.json - wiwik
django-rq-scheduler-32.json - https://github.com/cunla/django-rqscheduler with django3.2/python3.9
django-rq-scheduler-4.json - https://github.com/cunla/django-rqscheduler with django4/python3.10
@cunla
cunla / slack-crawler.py
Last active April 5, 2022 14:26
Crawl slack channel for threads and and all msgs in thread.
from datetime import datetime
import json
import logging
import os
from collections import namedtuple
from typing import Dict, Union, Tuple, List
from dotenv import load_dotenv, find_dotenv
from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError
@cunla
cunla / keybase-gpg-git.md
Created May 20, 2022 20:17
keybase-gpg-git signing

Set up Keybase.io, GPG & Git to sign commits on GitHub

This is a step-by-step guide on how to create a GPG key on keybase.io, adding it to a local GPG setup and use it with Git and GitHub.

Although this guide was written for macOS, most commands should work in other operating systems as well.

There's a video published by Timothy Miller explaining some parts of this guide. Discussion on Hacker News.

Note: If you don't want to use Keybase.io, follow [this guide][1] instead. For manually transferring keys to different hosts, check out this [answer on Stack Overflow][2].