Skip to content

Instantly share code, notes, and snippets.

View unya's full-sized avatar

Paweł Lasek unya

View GitHub Profile
Bazowy system - SamdroidMod 1.2 z różnymi bajerami z "kuchni" (Android 2.1 "Eclair")
Zawiera:
- Apps2SD
- OpenVPN
- Wifi tether
- ES File Explorer
- Facebook
- Samdroid Tools + Superuser.apk
- TunnelDroid
- Tryb "zegara" (wygląda jak zegar LCD taki do postawienia na biurku/półce/przy łóżku)
@unya
unya / dkms.command.sh
Last active August 29, 2015 13:56
How to use DKMS, according to https://github.com/ryao
dkms status | awk -F', ' '!z[$1]++{ a[$1]="dkms remove -m "$1" -v "$2; } END {{for (i in a) print a[i]}}' | grep -E '(zfs|spl)' | sort -r | sed -e "s/$/ $(ls /usr/src/kernels/* -d | sed -e 's/.*kernels\///' | sort -V | xargs -n1 printf -- '-k %s\n' | tr '\n' ' ');/" | bash

Keybase proof

I hereby claim:

  • I am unya on github.
  • I am pawel_lasek (https://keybase.io/pawel_lasek) on keybase.
  • I have a public key whose fingerprint is A97D 1D5A 0497 2D7A B298 E854 D3BC 5E61 3677 9710

To claim this, I am signing this object:

@unya
unya / Ingredients
Last active August 29, 2015 14:20
The Disappearance of EFI vars
Ingredients
- Plain Ubuntu 14.04.2 install, UEFI mode
- HW involved - low power Atom and NUC Haswell boxen
- ipxe.efi
- Firmware configured to first boot from UEFI netboot, then from grub.efi
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0003,0004,0000,0002
Boot0000* ubuntu HD(1,800,100000,a22ec259-773f-4a2c-9dd2-b7c5d980993e)File(\EFI\ubuntu\shimx64.efi)
Boot0002 ubuntu HD(1,800,100000,a22ec259-773f-4a2c-9dd2-b7c5d980993e)File(\EFI\Ubuntu\grubx64.efi)
@unya
unya / nodebug.conf
Created May 10, 2015 15:55
Portage environment override
# File in /etc/portage/env/
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
@unya
unya / example-deployment_main.yml
Created November 4, 2016 18:03
Example web application composed of multiple services, pods, and containers
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: example
spec:
replicas: 2
selector:
matchLabels:
app: example
@unya
unya / example-app.yml
Created July 27, 2017 10:21
Example Ingress + Let's encrypt setup to use with nginx-ingress-controller on GKE
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: example
spec:
replicas: 2
selector:
matchLabels:
app: example
@unya
unya / image-pull.yml
Created August 7, 2017 16:55
pre-pull images on kubernetes
apiVersion: batch/v1
kind: Job
metadata:
name: image-pull
spec:
template:
metadata:
name: image-pull
spec:
volumes:
@unya
unya / deployment.yml
Created October 1, 2017 13:55
NFS + PV + PVC on GKE
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: volume-test
spec:
replicas: 2
selector:
matchLabels:
app: volume-test
template:
@unya
unya / fix.el
Last active May 30, 2018 05:29
Fix for blank displays in Emacs 26.1 with Xming or VcXsrv
;; Add this to dotspacemacs/user-init to make emacs 26.1 work with Xming/VcXsrv
(defun pl/fix-buffering (&rest frame)
(modify-frame-parameters nil '((inhibit-double-buffering . t))))
(add-hook 'after-make-frame-functions 'pl/fix-buffering)
(add-to-list 'default-frame-alist '(inhibit-double-buffering . t))