Advent Calendarネタが全然無いのでgitを作ることにしました。
gitは言わずと知れたバージョン管理ツールです。 多分エンジニアとして生きていく上で一番お世話になっているツールであり、今後もそうだと思います。ですが、gitの使い方は雰囲気分かっていてもgit自体についてあまり知らなかったのでとりあえずgoで作ってみることにしました。
GW初日に友人と半日くらい参加していた
team:hona 112/441
1 | |
環境セットアップ | |
2 環境セットアップ(Ubuntu 16.04 x64前提) 各種インストール | |
$ apt-get install binutils python2.7 perl socat git build- | |
essential gdb gdbserver | |
※使いそうなものをとりあえず書いただけで,全部使う訳ではありません | |
gdb-peda導入 | |
$ git clone https://github.com/scwuaptx/peda.git ~/peda | |
$ git clone https://github.com/scwuaptx/Pwngdb.git ~/Pwngdb |
$ cat rand.c
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
int main(void)
{
srand((unsigned) time(NULL));
for (int i=0; i<=20; i++) {
printf("%d \n",rand()%10);
0..128.times{|i| print "%#{i.to_s(16).rjust(2,'0')}"} |
######## | |
# # | |
# #### # | |
# # # # | |
# # # # | |
# # ## # | |
# # # | |
# ###### |
#! /usr/bin/ruby | |
require "net/ping" | |
traceroute = `traceroute #{ARGV[0]}` | |
routepath = traceroute.split("\n")[1..-1].map do|s| | |
r = s.split(" ")[2].delete("()*") | |
r if r.length > 0 | |
end | |
routepath.compact! |
前回のつづきです。
今年のも始まったみたいです。
就活生の方は是非チャレンジしてみてはいかがでしょうか
hojo@ubuntu:~/trema/learning_switch$ ./bin/trema run ./lib/multi_learning_switch.rb -c trema.multi.conf
RuntimeError: MultiLearningSwitch is already running (/tmp/MultiLearningSwitch.pid).
/home/hojo/.bundle/ruby/2.3.0/trema-50b5a383bb73/lib/trema/command.rb:161:in `create_pid_file'
/home/hojo/.bundle/ruby/2.3.0/trema-50b5a383bb73/lib/trema/command.rb:25:in `run'
/home/hojo/.bundle/ruby/2.3.0/trema-50b5a383bb73/bin/trema:64:in `block (2 levels) in <module:App>'
/var/lib/gems/2.3.0/gems/gli-2.13.4/lib/gli/command_support.rb:126:in `execute'
/var/lib/gems/2.3.0/gems/gli-2.13.4/lib/gli/app_support.rb:296:in `block in call_command'
/var/lib/gems/2.3.0/gems/gli-2.13.4/lib/gli/app_support.rb:309:in `call_command'
/var/lib/gems/2.3.0/gems/gli-2.13.4/lib/gli/app_support.rb:83:in `run'