Skip to content

Instantly share code, notes, and snippets.

Project 5: Container

GOAL: This project will sum up all the knowledge you have learned about operating systems and create a small container runtime that can run a containerized process on Linux.

Introduction to Container

What is a Container?

Throughout the course, we have been using Docker and Dev Container to run our code. But what exactly is a container?

@shumbo
shumbo / story.tsx
Last active April 15, 2024 05:07
A storybook decorator to use React Hooks Form inside stories
export default {
title: "MyComponent",
component: MyComponent,
decorators: [withRHF(false)], // or true to show submit button on story
} as Meta;
@shumbo
shumbo / blog.js
Created July 1, 2018 14:00
Hugo image helper
const v = require('vorpal')();
const sharp = require('sharp');
const child_process = require('child_process');
const fs = require('fs');
const path = require('path');
const max_page_width = 967; // possible maximum page width
const max_width = { // list of sizes
{
"rwk_TZ": "TZS",
"jmc_TZ": "TZS",
"lag_TZ": "TZS",
"sw_TZ": "TZS",
"ksb_TZ": "TZS",
"bez_TZ": "TZS",
"asa_TZ": "TZS",
"sbp_TZ": "TZS",
"vun_TZ": "TZS",
タイプ Multiplier
ズリの実 1.5
金のズリの実 2
カーブボール 1.7
スローボーナス 2-r
モンスターボール 1.0
プレミアボール 1.0
スーパーボール 1.5
ハイパーボール 2.0
@shumbo
shumbo / mastodon.model.ts
Last active April 24, 2017 10:37
TypeScript interfaces for Mastodon APIs
// Based on https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md
export interface Account {
id: number;
username: string;
acct: string;
display_name: string;
locked: string;
created_at: string;
followers_count: number;
<?php while (have_posts()) : the_post(); ?>
<?php $skip_sidebar = get_post_meta( $post->ID, 'skip_sidebar', true ); ?>
<div class="col-md-12">
<article id="post-<?php the_ID(); ?>" <?php post_class( 'row' ); ?> itemscope itemtype="http://schema.org/Article">
<header class="entry-header">
<?php the_title( '<h1 class="entry-title" itemprop="headline">', '</h1>' ); ?>

Keybase proof

I hereby claim:

  • I am shumbo on github.
  • I am shun_kashiwa (https://keybase.io/shun_kashiwa) on keybase.
  • I have a public key whose fingerprint is 66AF A51F 5661 F165 0126 22F6 DAAC C16A D9D1 3389

To claim this, I am signing this object:

@shumbo
shumbo / time.csv
Created December 31, 2016 06:41
select * from videoshistory order by time desc limit 10
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
id,vid,author_id,title,description,time
928,/watch?v=6q36pnzcw70,/user/sibchtv,【LIVE CAMERA】渋谷スクランブル交差点 ライブ映像 Shibuya scramble crossing,You can watch live camera at Shibuya scramble crossing!!Check out the latest trends from Shibuya Tokyo Japan. http://www.sibch.tvsibch.tv brings you the information you can not get from travel ...,29155334
5501,/watch?v=QKaDDQsbLcM,/user/JoNaThAn115100,Pegboard Nerds - Hero (feat. Elizaveta) [Monstercat Release] 10 hour version,Thanks for watching! You guys did it get the other one to 50 likes so as promised here is the 10 hour one,36235
12493,/watch?v=XLXS7BeSYlw,/user/SuperCompiter5,Minecraft Theme Remix 10 Hour,no need to replayAs promised this is the special video all you guys been waiting for. My 100th video SPECIAL. Please Like it for it took 3 days to upload this !Purchase Minecraft Here :http:/...,36079
1510,/watch?v=_YFnfYJaqlA,/user/ChromeDevelopers,Polymer Developer Summit 2016 - Live Stream Day 1,"Check out the live stream on Day 1 of the Polymer Developer Summit
#!/bin/bash
cd ./Youtube-Watch-History-Scraper-master
pip install scrapy lxml sqlalchemy
scrapy crawl yth_spider