Skip to content

Instantly share code, notes, and snippets.

View JaniM's full-sized avatar

Jani Mustonen JaniM

  • Taito United
  • Finland
View GitHub Profile
@JaniM
JaniM / commits_on_day.sh
Last active January 30, 2024 15:49
Scan commits by date range
#!/usr/bin/env bash
# Finds all commits in all repositories under PWD
# across the given time range
# Ex. ./commits_on_day.sh 2024-01-01 2024-01-30
set -e
DATE="$1"
END_DATE="${2:-$1}"
@JaniM
JaniM / i3.config
Last active February 4, 2019 15:39
# i3 config file (v4)
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# vim: foldmethod=indent foldignore= tabstop=2 expandtab shiftwidth=2
## -- Variables --
set $mod Mod4
set $speed 40
set $open_next_workspace exec ~/.config/i3/find_next.py
{ pkgs ? import <nixpkgs> {},
stdenv ? pkgs.stdenv,
cc ? stdenv.cc,
qt ? pkgs.qt59,
qtbase ? qt.qtbase,
qttranslations ? qt.qttranslations,
mkDerivation ? qt.mkDerivation,
cmake ? pkgs.cmake }:
mkDerivation rec {
version = "0.1.0";
@JaniM
JaniM / riot.nix
Created July 24, 2017 09:26
Nix expression for riot-desktop 0.11.4. Installs a public `riot` command.
{ pkgs ? import <nixpkgs> {},
nodejs ? pkgs.nodejs-6_x, git ? pkgs.git,
bash ? pkgs.bash }:
let
stdenv = pkgs.stdenv;
lib = stdenv.lib;
in stdenv.mkDerivation rec {
version = "0.11.4";
name = "riot-${version}";
src = pkgs.fetchgit {

Keybase proof

I hereby claim:

  • I am janim on github.
  • I am seequ (https://keybase.io/seequ) on keybase.
  • I have a public key ASB0HkYI73idgI-rC3_pywcIiOJyssilEMRklAPMlvdS7Ao

To claim this, I am signing this object:

#!/usr/bin/env bash
set -e
SYNAPSE=~/.synapse
DLPATH=${1-https://github.com/matrix-org/synapse/tarball/master}
echo "Updating from ${DLPATH}"
function start_synapse {
RET=0
@JaniM
JaniM / createusers-csv.sh
Last active October 11, 2016 07:35
Creates multiple users easily
#!/bin/bash
function help {
echo "createusers-csv.sh [-p password] [-h]"
echo " Reads lines from stdin and creates users as defined."
echo " Each line should have the user's username and real name,"
echo " separated by a colon."
echo " e.g. test:Test Account"
echo ""
echo " Arguments:"
@JaniM
JaniM / example
Last active August 29, 2015 14:17
1+2
2
1+1 2 3
2 3 4
1 2 3+4 5 6
5 7 9