Skip to content

Instantly share code, notes, and snippets.

@grgr-dkrk
grgr-dkrk / gist:99d9fb77f592f8a23a8f1cfff0d5afe2
Last active June 17, 2024 00:30
LINUX で動かしながら学ぶ TCP/IP ネットワーク入門(Kindle Unlimited のやつ)

メモ

linuxで動かしながら学ぶtcp/ipネットワーク入門(https://www.amazon.co.jp/dp/B085BG8CH5) のコードを macOS Big Sur(Intel) + Docker で動かすためのメモ

Docker

※ privileged がないとあとで netns の追加ができない

docker run -it -d --privileged --name tcpip ubuntu:20.04
@grgr-dkrk
grgr-dkrk / config.fish
Created July 12, 2020 12:03
[fish]VSCodeをghq + pecoで開くscript
function ghqopen
set repo (ghq list | peco)
if test -n "$repo"
code (ghq root)/(echo $repo)
end
end
{"version":1,"resource":"file:///Users/hana/ghq/github.com/SakanaFarm/sakanafarm/app/src/hooks/company/feed/index.ts","entries":[{"id":"KSVk.ts","timestamp":1649911440009},{"id":"k1WW.ts","timestamp":1649911486690},{"id":"nA9O.ts","timestamp":1649911514180},{"id":"Uv5m.ts","timestamp":1649911564393},{"id":"FPBh.ts","timestamp":1649911583368},{"id":"YaWB.ts","timestamp":1649911604956},{"id":"NU94.ts","timestamp":1649911628187},{"id":"mimr.ts","timestamp":1649911668859},{"id":"xme1.ts","source":"Update import from \"../../../repositories/company/feed\"","timestamp":1649911671319},{"id":"vCio.ts","timestamp":1649911743956},{"id":"EeS6.ts","source":"undoRedo.source","timestamp":1649911771638},{"id":"ZnDB.ts","timestamp":1649911776827},{"id":"hScL.ts","timestamp":1649911797205},{"id":"XQEW.ts","timestamp":1649911839182},{"id":"Haou.ts","timestamp":1649911999367},{"id":"yUoq.ts","timestamp":1649912033999},{"id":"MAsL.ts","timestamp":1649912191660},{"id":"7LLS.ts","timestamp":1650801255488},{"id":"7Nrz.ts","timestam
@grgr-dkrk
grgr-dkrk / webpack.config.dev.js
Created November 30, 2018 12:51
webpack.config for vuera with React
'use strict';
const fs = require('fs');
const path = require('path');
const resolve = require('resolve');
const webpack = require('webpack');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');