Skip to content

Instantly share code, notes, and snippets.

View krzemienski's full-sized avatar
💭
📼

Nick Krzemienski krzemienski

💭
📼
View GitHub Profile
@duboisf
duboisf / operations.graphql
Last active July 19, 2024 06:39
Add branch protection to a repo using GitHub's Graphql API
fragment branchProtection on BranchProtectionRule {
allowsDeletions
allowsForcePushes
creator {
login
}
id
isAdminEnforced
requiredStatusCheckContexts
requiredApprovingReviewCount
@davidteren
davidteren / nerd_fonts.md
Last active August 9, 2025 22:12
Install Nerd Fonts via Homebrew [updated & fixed]
@thistac
thistac / docker-compose.yml
Created March 7, 2021 02:12
Simple Traefik with cloudflare, letsencrypt dns-chalange using secrets
version: "3.9"
services:
traefik:
image: "traefik:v2.4"
container_name: "traefik"
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
@aperture147
aperture147 / ffmpeg.go
Last active November 13, 2024 16:30
fix make buffer
package main
import (
"bytes"
"io/ioutil"
"log"
"os"
"os/exec"
)
@kevinkub
kevinkub / scriptable-line-chart.js
Last active August 23, 2024 05:31
Simple line chart class for https://scriptable.app 📈
class LineChart {
// LineChart by https://kevinkub.de/
constructor(width, height, values) {
this.ctx = new DrawContext();
this.ctx.size = new Size(width, height);
this.values = values;
}
_calculatePath() {
@Jswizzy
Jswizzy / InstallingSwift.md
Last active July 9, 2025 10:23
Swift Install Instruction 20.04

Installing Swift on Ubuntu 20.04

1. Install Depencies

“clang”[ˈklæŋ] is the compiler based on LLVM for C, C++, Objective-C, and Objective-C++. clang is needed to install in order to Swift. Run the following code in Ubuntu terminal.

Before installing swift “libpython2.7” and “libpython2.7-dev” are needed to get Swift running. Run the following code.

@maxivak
maxivak / _0__ssl_certbot_letsencrypt.md
Last active June 1, 2025 16:28
Let's encrypt SSL certificates using certbot in docker

Directories on host machine:

  • /data/certbot/letsencrypt

  • /data/certbot/www

  • Nginx server in docker container

docker run -d --name nginx \
@krzemienski
krzemienski / backup-github.sh
Created May 15, 2020 12:01 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
@SalomonBrys
SalomonBrys / Stadia-ubuntu.md
Last active February 15, 2023 17:48
Stadia in Ubuntu

Stadia in Ubuntu

1. Install Chromium-vaapi & drivers

  • Add the chromium-vaapi dev repository:
    sudo add-apt-repository ppa:saiarcot895/chromium-beta
    sudo apt-get update
    
  • Install Chromium-vaapi:
@LeandroBarral
LeandroBarral / docker-compose.yml
Created May 1, 2020 15:04
Medium: Traefik 2 - Setup Reverse Proxy with Let's Encrypt and Cloudflare Support
version: '3'
services:
traefik-reverse-proxy:
container_name: traefik
image: traefik:v2.2.1
command:
- --api=true
- --api.dashboard=true
- --entrypoints.web.address=:80