(ns reduce-sample.core
(:require
[clojure.core.reducers :as r]
[criterium.core :as crite]))
(crite/bench (do (into [] (r/filter even? (range 100000))) nil))
#include <stdio.h> | |
int main() | |
{ | |
int i; | |
for (i = 0; i < 10; i++) // 10回繰り返す | |
{ | |
printf("Hello, world!\n"); // 文字列を出力する | |
} | |
return 0; // プログラムが問題なく終了したことをOSに知らせる |
(ns reduce-sample.core
(:require
[clojure.core.reducers :as r]
[criterium.core :as crite]))
(crite/bench (do (into [] (r/filter even? (range 100000))) nil))
(ns gh.core | |
(:require [clj-http.client :as client]) | |
(:use [clojure.tools.namespace.repl :only [refresh]] | |
[hickory.core] | |
[clojure.string :only [trim]])) | |
;; download all repo as zip | |
(def target-url "https://github.com/[user-name]/") |
CloverはClojureライクな文法をもつコンパイラ型の言語処理系です。
ClojureはJVM(JavaVirtualMachine)上で動くLispの一種で、JVM上で動くことは既存のライブラリが使えるなど利点もあるのですが、REPLの起動にJVMの起動が必要だったり実行ファイルがjar形式だったりと制約も多く、Clojureの文法を持つコンパイラ型の処理系が欲しいと思ったので作りました。また、ClojureのJVM以外への移植はClojureScript(altJS)やCLR(.NET)などがあります。
Parsecによって抽象構文木を生成し、その構文木をGoに変換して、内部からGoコンパイラを呼んでコンパイルする形になっています。
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# サイバーセキュリティプログラミング 5.4 | |
# Joomla 3.5.1 | |
# HTTPErrorでループが止まるので例外を握りつぶすように変更 | |
import urllib2 | |
import urllib | |
import cookielib |
Harekaze CTF 2018
This problem is based on real world incident.
Most frequent onion service misconfigurtion is opening server's port 80 and IPv4 whole scanner like Censys, shodan always scan all IPv4 addresses. So, search http://jbwocj4f64dkfiwv.onion on Censys. There is a readl IP address of onion services.
Censys also save SSH key fingerprint. If admin is lazy, admin reuse these SSH key. So search fingerprint on Censys.
How I write Go HTTP services after seven years
https://medium.com/@matryer/how-i-write-go-http-services-after-seven-years-37c208122831
GoでとあるAPIサーバを実装し直した話
http://tech.mercari.com/entry/2016/12/19/180000
golangのHTTPサーバを構成しているもの
https://reiki4040.hatenablog.com/entry/2017/03/01/212647
GoでJSON APIを書く
http://sgykfjsm.github.io/blog/2016/03/13/golang-json-api-tutorial/
Go 言語の http パッケージにある Handle とか Handler とか HandleFunc とか HandlerFunc とかよくわからないままとりあえずイディオムとして使ってたのでちゃんと理解したメモ
I hereby claim:
To claim this, I am signing this object:
echo "deb https://deb.torproject.org/torproject.org xenial main" | sudo tee -a /etc/apt/sources.list.d/tor.list | |
echo "deb-src https://deb.torproject.org/torproject.org xenial main" | sudo tee -a /etc/apt/sources.list.d/tor.list | |
gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | |
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add - | |
sudo apt update | |
sudo apt install tor |
OpenSSLのバージョン違い(1.0.2 -> 1.1)のせい libssl-devを消してlibssl1.0-devを入れる