Skip to content

Instantly share code, notes, and snippets.

View xinity's full-sized avatar

Rachid Zarouali xinity

View GitHub Profile
@tsutsui
tsutsui / expand-image-fssize-rpi.sh
Last active October 29, 2019 19:31
A dumb sh script that will expand NetBSD partition and BSD FFS partition in the RPI image prepared by Jun Ebihara: http://mail-index.netbsd.org/port-arm/2013/06/19/msg001882.html
#! /bin/sh
#
# Copyright (c) 2013 Izumi Tsutsui. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
@judu
judu / Germinal themes
Last active May 12, 2023 22:11
Gnome terminal / Germinal / Sakura color scheme based on solarized.Dark and light colors are the same, but black/darkgrey and lightgrey/white.
## Solarized
['#002B36', '#DC322F', '#859900', '#B58900', '#268BD2', '#D33682', '#2AA198', '#EEE8D5', '#586E75', '#DC322F', '#859900', '#B58900', '#268BD2', '#D33682', '#2AA198', '#FDF6E3']
### Another Solarized version where violet is dark magenta and orange is dark red:
['#002B36','#CB4B16','#859900','#B58900','#6C71C4','#D33682','#2AA198','#EEE8D5','#586E75','#DC322F','#859900','#B58900','#268BD2','#D33682','#2AA198','#FDF6E3']
###Solarized "Official" version (that I actually use since 2020) :
['#073642', '#DC322F', '#859900', '#B58900', '#268BD2', '#D33682', '#2AA198', '#EEE8D5', '#002B36', '#CB4B16', '#586E75', '#657B83', '#839496', '#6C71C4', '#93A1A1', '#FDF6E3']
@fbueno
fbueno / Makefile
Last active March 7, 2016 21:56
Docker Makefile to easily build and push container images
BASEREPO = fbueno
TAG = $(shell date +%Y-%m-%d-%H%M%S)
IMAGE = $(shell baseneme `pwd`)
help:
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
git-pull: ## Pull the latest changes from the remote GIT repository
git-pull:
git pull
@FrankSpierings
FrankSpierings / README.md
Last active January 20, 2024 20:45
Linux Container Escapes and Hardening
@tazjin
tazjin / thoughts.md
Last active February 28, 2024 12:05
Nix builder for Kubernetes
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik-ingress-controller
rules:
- apiGroups:
- ""
resources:
- services
@android10
android10 / oh-my-zsh-powerlevel9k-theme.md
Last active June 26, 2024 00:21
oh-my-zsh with PowerLevel9k on Arch Linux

Attention: This is DEPRECATED in favor of PowerLevel10K, I wrote an article about it:

Install oh-my-zsh with powerlevel9k theme on Arch Linux

This gist aims to facilitate the switching from bash to zsh as our defaut shell. We will be using oh-my-zsh with the powerful theme: Powerlevel9k. You will find all the links below. This process applies mainly for Arch Linux, but can be setup for any other distro (in theory :)). I'm also using Gnome Terminal and pacaur as package manager.

@thaJeztah
thaJeztah / README.md
Last active December 12, 2021 00:05
Docker Changelog CLI plugin

Docker Changelog CLI plugin

Based on a tweet by @Tomwillfixit

Just a quick fun conversion to make it work as a Docker CLI plugin

To use it (assuming you're running a beta of Docker 19.03):

@colorchestra
colorchestra / get-gitlab-user-id-by-name.sh
Created August 2, 2019 16:05
Uses the Gitlab API and jq to get the Gitlab User ID by supplying the username.
#!/bin/bash
# requires curl and jq
# assumes usage of Gitlab API v4
# hella hacky
url="https://git.example.net"
token="abcdefghijklmnop"
username="$1"
# output is always paginated - get total number of pages from http header
@strund3r
strund3r / csgo.ps1
Last active March 23, 2022 22:17
Start CSGO and Aurora
$Principal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
# Add log color command to clipboard
Set-Clipboard -Value "log_color General FFD700FF; cl_showpos 1"
# Start CSGO
(New-Object -Com Shell.Application).Open("steam://rungameid/730")
Start-Sleep 10