As configured in my dotfiles.
start new:
tmux
start new with session name:
TP 3: Working with netfilter and libnetfilter-queue | |
The objective of this TP is to work with netfilter kernel module creation and user-space processing of queued packets using libnetfilter-queue. | |
Important: The result of this TP should be sent to: [email protected] or [email protected] with TP3-yourname as a subject. | |
If you don't finish on time, consider it as a homework and send it before Friday April 15 at 8:00PM. | |
Context: | |
-------- | |
Whenever the host receives an incomming ssh connection (on port 22), the module drops the packet. |
As configured in my dotfiles.
start new:
tmux
start new with session name:
""" This is a simple gist to show how to mock | |
private methods. I've got lots of questions | |
regarding this topic. Most people seems confused. | |
Hope it helps. | |
""" | |
import unittest | |
import mock |
// ==UserScript== | |
// @name Titech Portal Auto Login | |
// @namespace http://www.titech.ac.jp/ | |
// @id [email protected] | |
// @description 東工大ポータルに自動的にログインします | |
// @author NAKASHIMA, Makoto <[email protected]> | |
// @include https://portal1.nap.gsic.titech.ac.jp/* | |
// @include https://portal.nap.gsic.titech.ac.jp/* | |
// @include http://portal.titech.ac.jp/* | |
// @jsversion 1.8 |
xv6を学ぶ上での準備
起動処理を読む(main.c の main() が呼ばれるまで)
main() からmpmain()が呼ばれるまで
#!perl | |
use 5.10.0; | |
use strict; | |
use warnings; | |
my $localhost = join '|', map { quotemeta } 'localhost', '127.0.0.1'; | |
my $s = "http://localhost/foo http://127.0.0.1/bar http://127_0_0_1/foo/bar/baz"; | |
my @matched = $s =~ m{ http:// (?:$localhost) / \S+ }xg; |
/** | |
* Hindley-Milner type inference | |
* Ported to Groovy from Scala by Example Chapter 16 code. | |
* (http://www.scala-lang.org/docu/files/ScalaByExample.pdf) | |
* refered also | |
* https://github.com/namin/spots/blob/master/hindleyMilner/typeInference.scala | |
* Japanese page of 'Scala by Example': | |
* http://www29.atwiki.jp/tmiya/pages/78.html | |
*/ | |
import groovy.transform.* |