Skip to content

Instantly share code, notes, and snippets.

@XVilka
XVilka / sync.py
Created April 9, 2020 10:17
Dotfiles Syncronization Script
#!/usr/bin/env python3
# pylint: disable=missing-docstring
# pylint: disable=invalid-name
# pylint: disable=wrong-import-position
# pylint: disable=import-outside-toplevel
# pylint: disable=logging-format-interpolation
"""Dotfiles Syncronization Script
This script allows to syncronize your dotfiles among different computers with
echo "Installing xcode-stuff"
xcode-select --install
# Check for Homebrew,
# Install if we don't have it
echo "Installing Homebrew"
if test ! $(which brew); then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew update
@MatthewPierson
MatthewPierson / fix.sh
Created February 29, 2020 21:45
Fix for irecovery errors with PyBoot
#!/bin/bash
echo "Downloading and building libimobiledevice" # Just want to make sure theres no libimobiledevice related issues when installing libirecovery
brew install --HEAD libimobiledevice # This is just getting the latest libimobiledevice and building it instead of the older version that brew usually gets
brew link --overwrite libimobiledevice
echo "Downloading and building libirecovery"
mkdir -p build && cd build
@MalteKiefer
MalteKiefer / HowTo
Last active January 13, 2025 13:37
UFW Block IPs from abuseipdb Blacklist
# API Key
First of all create a free account here and create an API key to use the blacklist: https://www.abuseipdb.com
# UFW
You should have installed and started UFW, test it with
```bash
ufw status
```
# Cronjob
@bmckenna1982
bmckenna1982 / HockeyManagementApp
Created January 21, 2020 23:17
Tracking the wireframes and user flows for team management app
App name: Bench Boss
Screens:
Landing page: https://bmckenna1982.github.io/team-manager-wireframe/landingpage
User Flow:
User clicks on login --> User is taken to the log-in page
Login page: https://bmckenna1982.github.io/team-manager-wireframe/login
User Flow:
User submits email and incorrect password --> Error message displayed: incorrect password
User submits non existing email and password --> Error message displayed: no user account found
@Rdp3389
Rdp3389 / pwgen-bios-with-i.py
Created January 19, 2020 10:50
generate result for HP serial with "i" error code
print("============================ Insyde H2O BIOS 'i'/'I' error-code ============================")
print("= Insyde H2O BIOS (Acer, HP) System Disabled 'i'/'I' error-code response generator.")
print("= this script meant to solve https://github.com/bacher09/pwgen-for-bios/issues/52 in Python 3")
print("= ")
print("= HP official response to BIOS Password reset: https://support.hp.com/us-en/document/c06368824")
print("============ Start Quote ============")
print("= A forgotten BIOS password cannot be reset by HP. HP is committed to the security and privacy of")
print("= our customers. To resolve a forgotten BIOS password issue, a system board replacement is required,")
print("= and additional customer costs apply. For more information, go to HP Worldwide Limited Warranty and Technical Support.")
print("= https://www8.hp.com/us/en/privacy/limited_warranty.html")
@minhoryang
minhoryang / git-pr.sh
Last active September 15, 2021 18:56
Fetching Github PR # Only (for CI)
git init
git remote add origin <REMOTE_URL>
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
git fetch --no-tags --depth=1 --recurse-submodules=yes --multiple -j origin pull/<PR_NO>/head:refs/remotes/origin/pr/<PR_NO>
git checkout origin/pr/<PR_NO>
git log # one commit!
git describe —all # remotes/origin/pr/259
{
"data": {
"id": "2fcab792-05a2-4e4c-a2eb-f3701181d291",
"type": "token",
"relationships": {
"customer": {
"data": {
"id": 9063,
"type": "customer",
"attributes": {
@XVilka
XVilka / FontShapingSupport.md
Created October 26, 2019 03:09
Font shaping e.g. ligatures support in terminal emulators and applications

This gist will show the support of font shaping support in the terminal emulators and console programs.

Supporting font shaping

@scmx
scmx / git-commit-title-first-word.md
Last active June 11, 2025 04:49
Example list of verbs / first word to use in git commit title #git #commit #title

Example list of first words to use in a git commit title

I like writing well-formed git commits that explain the intention behind why a code change was made.

Check out Chris Beams excellent How to Write a Git Commit Message if you haven't read it.

Anyway, for a project I've been working on I've gathered up 900+ commits that hold up a pretty high quality (except for one 😁). Let's look at some trends about these commits!

Most common first words in commit titles of a project