raynix 筆記

raynix 筆記

  • Home
  • WordPress Hosting
  • Side Quests
Illustration of a bird flying.
  • Use FZF to Speed Up KUBECTL

    FZF is general purpose option selector for Linux command line. By default fzf is an super-upgrade for the ctrl-r command history finder, but it is helpful for almost any scenario where you need to pick 1 item from a list. Here’s a tiny use case where I use fzf to select a kubernetes namespace and…

    August 7, 2019
    Opensource, Systems Admin
    bash, fzf, kubernetes
  • AWS Lambda with Single CloudFormation Template

    This is just a quick snippet of CloudFormation template to deploy a Python 3.7 Lambda function embedded in the template. The source code inside ZipFile can contain up to 4KB. # CloudFormation templateAWSTemplateFormatVersion: 2010-09-09Resources: LambdaCode: Type: AWS::Lambda::Function DependsOn: – LambdaRole – LambdaPolicy Properties: Code: ZipFile: | import boto3 def handler(event, context): … Role: !GetAtt LambdaRole.Arn…

    June 23, 2019
    Systems Admin
    Lambda, Python
  • Golang and Docker Multi-Stage Build

    I have noticed a common pattern amonst some new utilities such as kubectl, kops and terraform: There’s only 1 single executable file to install, and by ‘install’ it can be put anywhere as long as it’s in $PATH. This was before I learned some Golang but it’s easy to find out that the reason behind…

    May 28, 2019
    Free software, Opensource, Systems Admin
    docker, Golang
  • Install Nvidia 396 Driver for Ubuntu 18.04

    Just some quick notes to upgrade Nvidia driver from 390 to 396 on Ubuntu 18.04. By default Ubuntu 18.04 only has Nvidia driver 390. # add ubuntu official ppa for nvidia# all commands below run as rootadd-apt-repository ppa:graphics-drivers/ppaapt update# install 396 filesapt install nvidia-dkms-396 nvidia-driver-396 nvidia-compute-utils-396 libnvidia-compute-396# reboot at the end. After reboot, the new…

    May 3, 2019
    Games!
    nvidia, Ubuntu
  • Home VPN with OpenVPN

    Here are step to run a simple OpenVPN service at home, so that I can access home network easily while not at home. First, clone the git repo for OpenVPN docker container: git clone https://github.com/kylemanna/docker-openvpn.git I can use the pre-built docker image from docker hub but it has just been breached so I’d rather build…

    April 30, 2019
    Networking, Opensource, Systems Admin
    docker, OpenVPN
  • Ansible, CloudFormation and Jinja2

    CloudFormation is the corner stone to provision infrastructure in AWS with code, however it’s not very DRY, ie. poor modularization, almost static variables and templates. So here comes Ansible. However at the moment Ansible’s CloudFormation module doesn’t support Jinja2 in templates, like other modules do. Luckily there’s a work-around to get the Ansible-CloudFormation-Jinja2 trio working…

    March 29, 2019
    Systems Admin
    ansible, cloudformation, jinja2
  • Working with a Big Corporation

    So it’s been a while since I started this job in a big corporation. I always enjoy new challenges, now my wish got granted. Not in a very good way. The things work in a quite different manner here. There are big silos and layers between teams and departments, so the challenges here are not…

    March 25, 2019
    Emerald Dreams, Free software, Opensource, Systems Admin
    AWS, jq, ssh
  • Run Fedora 29 on Dell XPS 15 9570

    Here’s a list of things to do to get Fedora 29 running optimally on Dell XPS 15 9570: First, disable Secure Boot with the stock Windows 10 and in BIOS otherwise Fedora installer on a USB stick won’t boot. I still don’t really see the necessity to have this Secure Boot, except to buy more…

    January 25, 2019
    Free software, Hardwares, Opensource
    Fedora, XPS
←Previous Page
1 … 20 21 22 23 24 … 111
Next Page→
  • Eric Lin’s Blog
  • Eddie Wang’s Blog at WP
  • GoalKeeper’s Blog

raynix 筆記

Just another WordPress blog

  • Facebook
  • Twitter
  • Instagram

Proudly powered by WordPress