Skip to content

Instantly share code, notes, and snippets.

@uBaze
uBaze / arch_linux_install_guide.md
Last active July 10, 2022 15:13 — forked from myyc/arch_linux_install_guide.md
Arch Linux setup with all the good stuff (Plymouth, encryption, systemd-boot etc.)

Hope this will stay relevant for longer than just 2021. This guide will focus mostly on things you shouldn't overlook and will harshly prioritise assuming that you're running on recent hardware. EFI and all that.

Always refer to the official guide in case of doubt.

First things first

One important thing first: the environment you will encounter on the live image is very different from what you'll end up installing, some things are significantly easier there: e.g. wifi tools come pre-installed, the default shell is a pimped zsh with nice completions, and so on. We'll keep this

@uBaze
uBaze / Dealing with Apple voip certs
Created March 20, 2019 22:00
apple voip certificates apns
1. Create Certificate .pem from Certificate .p12
openssl pkcs12 -clcerts -nokeys -out cert.pem -in voip_cert.p12
2: Create Key .pem from Key .p12
openssl pkcs12 -nocerts -out key.pem -in voip_cert.p12
3: Merge certs
cat cert.pem key.pem > voip_apn.pem
Bonus : check certs
@uBaze
uBaze / gist:74621fb18eb809cbe051
Created November 28, 2014 20:46
Sublime Text user preferences
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/User/predawn (SL).tmTheme",
"findreplace_small": true,
"font_options":
[
"no_round"
],
"font_size": 10,
#include <stdlib.h>
#include "list.h"
/* Naive linked list implementation */
list *
list_create()
{
list *l = (list *) malloc(sizeof(list));
l->count = 0;
@uBaze
uBaze / gist:6962655
Created October 13, 2013 13:57
Chart.js
//Define the global Chart Variable as a class.
var Chart = function(context, tooltipOptions){
var chart = this;
//Easing functions adapted from Robert Penner's easing equations
//http://www.robertpenner.com/easing/
var animationOptions = {