Skip to content

Instantly share code, notes, and snippets.

Avatar

Allan Ralph Hutalla aputs

  • Earth
  • Philippines
View GitHub Profile
@nrjdalal
nrjdalal / QEMU-Silicon-Mac-Virtualization.md
Last active Jul 12, 2022
Create Virtual Machines using QEMU on Silicon based Apple Macs
View QEMU-Silicon-Mac-Virtualization.md

Install QEMU on Silicon based Apple Macs (June 2021)

Option 1 - Automatically

zsh -c "$(curl -fsSL https://raw.githubusercontent.com/nrjdalal/silicon-virtualizer/master/install-qemu.sh)"

Option 2 - Manually

  • Install Xcode command line tools

xcode-select --install
@citruz
citruz / QEMU_ON_M1.md
Last active Aug 7, 2022
Create Ubuntu and Windows VMs with QEMU on Apple Silicon
View QEMU_ON_M1.md

Running Linux and Windows on M1 with QEMU

30.11.2020: Updated with the new patchseries and instructions for Windows

02.12.2020: Added tweaks

08.12.2020: Updated with patchseries v4

31.01.2020: Updated with patchseries v6

View xtensa-rust.md

Adapted from:

https://github.com/MabezDev/xtensa-rust-quickstart

Like this:

# - deps ------------------------------------------------------------------

sudo port install ninja

@slikts
slikts / Linuxifying Windows.md
Last active Feb 10, 2022
Linuxifying Windows
View Linuxifying Windows.md

nelabs.dev

Linuxifying Windows for development

This guide is for 'linuxing-up' Windows as a development environment; it focuses on setting up [WSL], an Ubuntu Hyper-V virtual machine, [wsltty] (a nice terminal emulator) and various tweaks.

Rationale

@aelbore
aelbore / typescript-web-components.md
Last active Apr 25, 2022
Step by Step creating web components in typescript using rollup
View typescript-web-components.md

Getting Started

  • Install Dependencies
    npm init
    npm install --save-dev ts-node typescript tslib express @types/express
    

Create your web server

  • Create server.ts in root folder of your app.
@floringogianu
floringogianu / conda-env-autodetect.plugin.zsh
Last active Jul 18, 2018
zsh plugin for autodetecting conda environments based on a .venv file in your project
View conda-env-autodetect.plugin.zsh
# conda-env-autodetect.plugin.zsh
# Copy this file to ~/.oh-my-zsh/plugins/conda-env-autodetect/
# And make sure you have a .venv file with your env's name in your
# preject's root folder.
_conda_env_auto_activate() {
if [ -f ".venv" ]; then
# check conda is active
@ahmetb
ahmetb / gcrgc.sh
Last active Jul 12, 2022
Script to clean up Google Container Registry images pushed before a particular date
View gcrgc.sh
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@singledigit
singledigit / cognito.yaml
Last active Jul 2, 2022
Create a Cognito Authentication Backend via CloudFormation
View cognito.yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Parameters:
AuthName:
Type: String
Description: Unique Auth Name for Cognito Resources
Resources:
# Creates a role that allows Cognito to send SNS messages
SNSRole:
View nfs-root-zone.md

GZ. "ssd" is my scratch pool, mounted at /nfs/scratch

$ zfs set sharenfs=ro=@192.168.1.0/24 ssd
$ >/nfs/scratch/testfile
$ ls -l /nfs/scratch/testfile
-rw-r--r--   1 root     root           0 Nov  7 14:47 /nfs/scratch/testfile

Create zone and test read-only mount