Skip to content

Instantly share code, notes, and snippets.

💸
0x90

kyb kybernetyk

💸
0x90
Block or report user

Report or block kybernetyk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ddnomad
ddnomad / luks_on_lvm_arch_linux_guide.sh
Last active Aug 14, 2019
Arch Linux installation with a full-disk encryption (LUKS on LVM)
View luks_on_lvm_arch_linux_guide.sh
###############################################################################
# Author: ddnomad
# Version: 1.0.3
#
# External contributors:
# - u/momasf (https://www.reddit.com/user/momasf) - an excellent
# tip to use 'reflector' to speed up downloads during the base
# installation
#
# DISCLAIMER/WARNING: Some people on r/archlinux were not quite happy
@SimonPe
SimonPe / mm-connect.sh
Created Feb 22, 2016
connect (and reconnect) to an lte(mbim) connection and set the network using systemd-networkd
View mm-connect.sh
#!/bin/sh
MODEM="$(mmcli -L | grep -o '/org/freedesktop/ModemManager1/Modem/[0-9]*' | head -1)"
BEARER="$(mmcli -m $MODEM --list-bearers | grep -o '/org/freedesktop/ModemManager1/Bearer/[0-9]*' | head -1)"
connect() {
MODEM="$(mmcli -L | grep -o '/org/freedesktop/ModemManager1/Modem/[0-9]*' | head -1)"
mmcli -m $MODEM --simple-connect=apn=web.be,user=web,password=web
BEARER="$(mmcli -m $MODEM --list-bearers | grep -o '/org/freedesktop/ModemManager1/Bearer/[0-9]*' | head -1)"
@gdamjan
gdamjan / arch-mirror.service
Last active Aug 17, 2019
script to rsync from an arch mirror
View arch-mirror.service
[Unit]
Description=Mirror arch linux
[Service]
Type=oneshot
ExecStart=/usr/local/bin/sync_arch_mirror.sh
User=arch
IPAccounting=yes
NoNewPrivileges=yes
PrivateTmp=yes
@zmwangx
zmwangx / thumbnails.sh
Last active Aug 17, 2019
Script to generate thumbnails of a video and combine into one tile image. Uses FFmpeg and ImageMagick.
View thumbnails.sh
#!/bin/zsh
# Script to generate thumbnails of a video and combine into one tile image.
#
# CAUTION:
# FFprobe might fail to extract duration info from a MKV container. Use
# ffmpeg -i video.mkv -c:v copy -c:a copy video.mp4
# to swap to an MP4 container.
#
# Dependencies:
# 1. ffmpeg
anonymous
anonymous / config
Created Jun 4, 2013
i3 config
View config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@johanmeiring
johanmeiring / gist:3002458
Created Jun 27, 2012
"git lg" alias for pretty git log
View gist:3002458
# From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
You can’t perform that action at this time.