Skip to content

Instantly share code, notes, and snippets.

.org $8000
.org $ff00
XAML = $24 ; Last "opened" location Low
XAMH = $25 ; Last "opened" location High
STL = $26 ; Store address Low
STH = $27 ; Store address High
L = $28 ; Hex value parsing Low
H = $29 ; Hex value parsing High
YSAV = $2A ; Used to see if hex value is given
sfdisk -d /dev/sda | sfdisk --force /dev/sdb
btrfs device add /dev/sdb1 /
btrfs balance start -dconvert=raid1 -mconvert=raid1 /
@wybczu
wybczu / ANSI.md
Created August 14, 2021 21:26 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@wybczu
wybczu / gmail-github-filters.md
Created March 3, 2020 11:42 — forked from ldez/gmail-github-filters.md
Gmail and GitHub - Filters

Gmail and GitHub

Create new filters and create new labels.

Pull Request

from:(notifications@github.com) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed 1 commit." "pushed 2 commits." "pushed 3 commits."}

label: gh-pull-request

@wybczu
wybczu / README.md
Last active September 18, 2018 16:29
Ansible Vault Single Encrypted Variable

Encrypting a variable

$ ansible-vault encrypt_string --stdin-name 'secret_variable'

Note: Somtimes you need to press Ctrl+d two times - do not press enter cause it will add a new line to you secret :)

You can also use a wrapper script:

### Keybase proof
I hereby claim:
* I am wybczu on github.
* I am wybczu (https://keybase.io/wybczu) on keybase.
* I have a public key whose fingerprint is 5BEA 0D72 A27F ABB6 2F23 FF2A 2EB8 C2A2 48AD 1541
To claim this, I am signing this object:
@wybczu
wybczu / README.md
Last active August 29, 2015 14:04
DevOps Warsaw #1

Quick start

$ vagrant init wybczu/devops-warsaw-1
$ vagrant up
$ vagrant ssh
$ git clone ssh://user2@localhost:29418/devops-demo
$ cd devops-demo
$ # ...make some changes...
#!/usr/bin/python
# -*- coding: utf8 -*-
# http://mathworld.wolfram.com/PrimeSpiral.html
import math
import gmpy
import numpy
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
#!/bin/bash
ARTIFACTORY_URL="https://artifactory.example.com/artifactory"
ARTIFACTORY_REPO="ext-release-local"
MVN_USERNAME="maven"
MVN_PASSWORD="password"
[[ -z $DEBUG ]] || set -x
#!/bin/bash
[[ -z $DEBUG ]] || set -x
HOST="gerrit.example.com"
PORT="29418"
function usage
{
echo "usage: $(basename $0) [-eg] project-name"