Skip to content

Instantly share code, notes, and snippets.

View PascalKu's full-sized avatar
👋
Hey whazzup?

Pascal Kutscha PascalKu

👋
Hey whazzup?
  • Aachen, Germany
View GitHub Profile
@iddm
iddm / ssd-write-bench.sh
Last active March 27, 2022 06:28
Universal Linux SSD Write speed test
#!/bin/sh
# This will read 4GB+ data from /dev/zero and write to a test file in current directory.
# If you need to test the speed of your SSD drive, go to any partition with it with a filesystem
# with write support, make sure you have rights to do this and then run the command below (or just this script).
# As a sort of customisation, the block size ideally should be identical to the block size of your device:
# https://unix.stackexchange.com/questions/52215/determine-the-size-of-a-block-device
# However, the `64k` value worked absolutely fine for my setup.
dd if=/dev/zero of=test_$$ bs=64k count=64k conv=fdatasync && rm -f test_$$
@gustavorv86
gustavorv86 / debian-11-bullseye-sources.list
Last active November 8, 2023 07:06
Debian Bullseye/Oldstable official repositories
deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
@thomas15v
thomas15v / docker.compose.yml
Last active June 22, 2022 09:41
traefik.io nginx example
version: '2'
services:
nginx:
image: nginx:alpine
restart: always
labels:
- "traefik.enable=true"
- 'traefik.frontend.rule=Host:www.website.com'
- "traefik.port=80"
volumes:
@KrustyHack
KrustyHack / doc.adoc
Last active April 6, 2024 00:19
proxmox-ubuntu-cloud-howto

Cloud-Init Support

Cloud-Init is the defacto multi-distribution package that handles early initialization of a virtual machine instance. Using Cloud-Init, one can configure network

@alexshevch
alexshevch / prepare-commit-msg.sh
Created February 14, 2018 16:36
Automatically prepend git commit message with a branch name
#!/bin/sh
#
# Hook script to prepend the commit log message with a branch name
# Prepend the name of the branch only if:
# - branch name starts with one of the options in $BRANCH_STARTSWITH
# - branch name has not been manually prepended in the commit message
BRANCH_STARTSWITH=(dev- WIP XYZ-)
BRANCH_NAME=$(git symbolic-ref --short HEAD)
COMMIT_MESSAGE=$(cat $1)
@agrcrobles
agrcrobles / android_instructions_29.md
Last active October 22, 2023 12:09 — forked from patrickhammond/android_instructions.md
Setup Android SDK on OSX with and without the android studio

Hi, I am a fork from https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03.

A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.

Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.

Prerequisites:

https://github.com/shyiko/jabba instead ?

@ricardojlrufino
ricardojlrufino / sso.php
Created September 1, 2017 04:48
phpMyAdmin SSO Login Example
<?php
$sso_server = "http://chat.local:8080/api/clients/validateDb";
/* Need to have cookie visible from parent directory */
session_set_cookie_params(0, '/', '', true, true);
/* Create signon session */
$session_name = 'SignonSession';
session_name($session_name);
@jujhars13
jujhars13 / sftp.yaml
Last active March 7, 2024 00:16
kubernetes pod example for atmoz/sftp
apiVersion: v1
kind: Namespace
metadata:
name: sftp
---
kind: Service
apiVersion: v1
metadata:
@andyshinn
andyshinn / composer.json
Last active February 18, 2024 12:05
Docker Compose PHP Composer Example
{
"require": {
"mfacenet/hello-world": "v1.*"
}
}
@mobleyc
mobleyc / http_get.go
Created October 5, 2015 01:06
Creating a custom HTTP Transport and Client with Go
package main
import (
"fmt"
"io/ioutil"
"net"
"net/http"
"os"
"time"
)