Skip to content

Instantly share code, notes, and snippets.

@precurse
precurse / gist:6dc1990cd000551c8f11
Last active May 17, 2019 12:07
Asus Zenbook UX305C Skylake - Arch Linux 4.3.3-2-ARCH Kernel
$ dmesg |grep ASUSTeK
[ 8.627599] Hardware name: ASUSTeK COMPUTER INC. UX305CA/UX305CA, BIOS UX305CA.201 09/11/2015
$ uname -a
Linux laptop 4.3.3-2-ARCH #1 SMP PREEMPT Wed Dec 23 20:09:18 CET 2015 x86_64 GNU/Linux
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0a2a Intel Corp.
Bus 001 Device 003: ID 064e:9700 Suyin Corp. Asus Integrated Webcam
@precurse
precurse / gist:b94e9864f88612a60b8f
Last active January 13, 2016 23:18
Asus UX305CA Review on Microsoft Store
Great laptop, especially for the price. Similar model is $200+ at other places, with worse resolution and older CPU
generation. The only issue I have is where the power button is placed (next to the delete key). I find I go to press
it instead of delete from time to time, but I'm sure I'll get used to it.
This device has TPM 2.0 built in, but Microsoft has purposely crippled Windows by disabling Bitlocker for full disk
encryption. You are required to pay $150 for Windows 10 Pro if you want that feature. This is absurd considering my Asus
Transformer T100 uses a FREE versions of Windows and it comes with Bitlocker. Pretty much ALL OS's nowadays come with
full device encryption (OSX/IOS, Android, Linux, etc.).There is no reason Windows "Home" edition should not have it.
Anyways, I didn't buy this laptop to run Windows on... Once I installed Linux, everything worked out of the box, except the
@precurse
precurse / gist:0c705d6b372fb603f7f6
Created January 29, 2016 23:02
SDN Retreat Notes
Keeps surprising me, to many DevOps is still a novelty.
Not to reinvent the wheel: https://dl.dropboxusercontent.com/u/778575/IMG_0964.jpg
http://www.pmacct.net # NetFlow collector and BGP agent.
http://sdn-internet-router-sir.readthedocs.org/en/latest/ # UI and API to pmacct
Puppet seems to be the choice for network vendors: Juniper, Arista and, lately, Cisco.
Ansible is a preferred tool for startups though.
@precurse
precurse / gist:19c339f5e333c3969e88
Created March 20, 2016 18:25
Deprecated warnings in SmartOS 15.4.1
2016-03-20T18:23:37+00:00 shell sshd[24914]: [ID 800047 auth.info] rexec line 34: Deprecated option LookupClientHostnames
2016-03-20T18:23:37+00:00 shell sshd[24914]: [ID 800047 auth.info] rexec line 35: Deprecated option VerifyReverseMapping
2016-03-20T18:23:37+00:00 shell sshd[24914]: [ID 800047 auth.info] rexec line 107: Deprecated option MaxAuthTriesLog
2016-03-20T18:23:37+00:00 shell sshd[24914]: [ID 800047 auth.info] rexec line 135: Deprecated option RhostsAuthentication
@precurse
precurse / gist:348a7d04a1c1b09ddccf
Created March 20, 2016 19:55
SmartOS Images building OpenSSH with outdated OpenSSL library
[root@shell ~]# cat /etc/motd
__ . .
_| |_ | .-. . . .-. :--. |-
|_ _| ;| || |(.-' | | |
|__| `--' `-' `;-| `-' ' ' `-'
/ ; Instance (base-64-lts 15.4.1)
`-' https://docs.joyent.com/images/smartos/base
[root@shell ~]# openssl version
OpenSSL 1.0.2g 1 Mar 2016
@precurse
precurse / gist:92ac44d945680643ffca458d88c4dce1
Last active June 25, 2016 05:28
Sickgear Ansible Playbook for Centos
- name: Install packags
package: name={{ item }} state=present
with_items:
- patch
- sqlite-devel
- bzip2-devel
- readline-devel
- zlib-devel
- openssl-devel
- git
@precurse
precurse / arch-linux-install
Created July 14, 2016 06:05 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
configs:
- domain: blah.com
other_item: another item
- domain: blah2.com
other_item: yet another item
@precurse
precurse / adfs_SAML.ps1
Created December 9, 2016 18:47
PowerShell script to automate configuration of OpenConext
## Please Update this for your schacHomeOrganization
$homeorg = "school.example.ca"
$metadataurl = "https://engine.openconext.example.com/authentication/sp/metadata"
# Group that includes all users (Used as workaround for schacHomeOrganization)
$group_all = "Domain Users"
Add-AdfsClaimDescription -ClaimType "urn:oid:2.16.840.1.113730.3.1.241" -Name "oid - Display Name"
Add-AdfsClaimDescription -ClaimType "urn:oid:0.9.2342.19200300.100.1.3" -Name "oid - Email"
Add-AdfsClaimDescription -ClaimType "urn:oid:2.5.4.42" -Name "oid - givenName"
Add-AdfsClaimDescription -ClaimType "urn:oid:2.5.4.4" -Name "oid - surName"
- hosts: shell
gather_facts: no
tasks:
- block:
- setup:
rescue:
- raw: "pkgin update && pkgin in python27"