Skip to content

Instantly share code, notes, and snippets.

View Nicofisi's full-sized avatar
👀
Living a life

Mikołaj Lomiak Nicofisi

👀
Living a life
View GitHub Profile
@erikw
erikw / ..git-commit-status - Generate git commit message from git-status.md
Last active March 13, 2024 07:44
Generate git commit message from git-status. Will generate a commit message like "Added: file1.py file2.py file3.py Modified: file4.py file5.py Deleted: README.md Renamed: test.txt-> test2.txt". Put this in your .gitconfig.

git commit-status alias

An alias that will generate a git commit message staged changes as shown in git-status. Put this alias (section below) in your .gitconfig.

The message generated will be in the format of:

$ git status --porcelain
A file1.py
A file2.py
A file3.py
@x-yuri
x-yuri / docker: mongo.md
Last active February 20, 2023 12:28
docker: mongo

Without either MONGO_INITDB_ROOT_USERNAME, or MONGO_INITDB_ROOT_PASSWORD the access is unrestricted.

docker-compose.yml:

version: '3'

services:
  mongo:
    image: mongo:4
@Godimas
Godimas / yt2d.md
Created January 7, 2017 15:26
Another webhook tutorial (YouTube to Discord via IFTTT)

Navigate to: Twitter via IFTTT, Twitter via Zapier, Reddit or GitHub.

YouTube to Discord via IFTTT and webhook

You just posted a video. You want everyone in your server to know this, eh?

I'll just start from Step 3. You know where Step 1 and Step 2 is, eh?

Step 1 - Register on IFTTT

  1. Go to https://ifttt.com/ and create an account (if you don't already have one).

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: