Skip to content

Instantly share code, notes, and snippets.

View unya's full-sized avatar

Paweł Lasek unya

View GitHub Profile
@unya
unya / cirrus_ssdt_patch.dsl
Last active September 17, 2024 11:04
Enabling proper sound on ROG Zephyrus G14 GA402XY without driver quirks
DefinitionBlock ("", "SSDT", 1, "RURI", "CSC3551", 0x00000001)
{
External (_SB.I2CD, DeviceObj)
External (_SB.I2CD.SPKR, DeviceObj)
External (_SB.PCI0, DeviceObj)
Scope (_SB.PCI0) // Useful if you use different size SO-DIMM than 16GB, marks PCI-E devices as part of NUMA node 0
{
Name (_PXM, 0x00)
}
Scope (_SB.I2CD.SPKR) // Sound fix - to get proper values for your system, check quirks in latest kernel https://github.com/torvalds/linux/blob/a940d9a43e623d1ba1e5c499aa843516656c0ae4/sound/pci/hda/cs35l41_hda_property.c
@unya
unya / gist:a1415cbd7594d9a62fbff868a9b89df5
Created January 8, 2019 15:16
nix-shell not working
let
pkgs = import <nixpkgs> {};
fhs = pkgs.buildFHSUserEnv {
name = "versionkeeper";
targetPkgs = pkgs: with pkgs; [
alsaLib atk cairo cups dbus expat
file fontconfig freetype gdb git
glib gtk3-x11 gtk2-x11 libnotify libxml2
libxslt netcat nspr nss
strace udev watch wget which xorg.libX11
@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))
@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 / 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 / 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 / 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 / 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 / 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)

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: