Skip to content

Instantly share code, notes, and snippets.

Avatar

Kento KAWAKAMi kimitoboku

View GitHub Profile
View amazon.txt
> go run main.go www.amazon.co.jp
202.12.27.33=>
jp. -> f.dns.jp.
150.100.6.8=>
amazon.co.jp. -> ns2.p31.dynect.net.
202.12.27.33=>
net. -> f.gtld-servers.net.
192.35.51.30=>
dynect.net. -> ns3.dynamicnetworkservices.net.
202.12.27.33=>
View 何かのダウンロード
cut -d, -f9 SearchResults.csv | sed "s/book/content\/pdf/" | grep http | sed 's/"//g' | awk '{print $0 ".pdf"}' | xargs wget
View .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
View timelinelog.go
ackage main
import (
"encoding/json"
"fmt"
"github.com/ChimeraCoder/anaconda"
"io/ioutil"
"net/url"
"os"
"strconv"
View hoge
$ cat techack*
# Nmap 7.00 scan initiated Sun Dec 20 14:14:18 2015 as: nmap -A -oA techac
# Nmap done at Sun Dec 20 14:14:19 2015 -- 0 IP addresses (0 hosts up) scanned in 1.05 seconds
# Nmap 7.00 scan initiated Sun Dec 20 14:14:18 2015 as: nmap -A -oA techac
WARNING: No targets were specified, so 0 hosts scanned.
# Nmap done at Sun Dec 20 14:14:19 2015 -- 0 IP addresses (0 hosts up) scanned in 1.05 seconds
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE nmaprun>
<?xml-stylesheet href="file:///usr/bin/../share/nmap/nmap.xsl" type="text/xsl"?>
View testnmap
$ sudo nmap -A techack.net -oA techach
Starting Nmap 7.00 ( https://nmap.org ) at 2015-12-20 14:14 JST
Nmap scan report for techack.net (49.212.146.45)
Host is up (0.047s latency).
Not shown: 997 filtered ports
PORT STATE SERVICE VERSION
80/tcp open http nginx 1.2.1
| http-robots.txt: 1 disallowed entry
|_/memo/
View test.test
$ ruby main.rb
2015/12/24(木)2熱統計力学中村 雄一B3電気・電子情 2/23(火)4限
2015/12/24(木)2通信工学Ⅰ上原 秀幸B3電気・電子情 11/26(木)2限
2015/12/24(木)2通信工学上原 秀幸B3情報・知能 11/26(木)2限
2015/12/24(木)5基礎無機化学Ⅰ角田 範義B1環境・生命 12/21(月)2限
2016/01/08(金)2プログラミング演習Ⅳ小林 暁雄B2情報・知能 1/12(火)3限
2016/01/08(金)2RoboticsN.UchiyamaM2機械 11/17(火)1限 A-312
2016/01/08(金)3電気回路論(電気回路論-b)長尾 雅行B3電気・電子情 1/12(火)4限
2016/01/08(金)3ロボット工学特論内山 直樹M1, M2機械 11/20(金)1限
2016/01/08(金)4〜5ソフトウェア演習Ⅳ(ソフトウェア演習Ⅳ−a)井佐原 均B3情報・知能 2/26(金)4-5限
View test.rb
require 'open-uri'
require 'pp'
require 'nokogiri'
require 'kconv'
URL = "https://www.ead.tut.ac.jp/board/main.aspx"
doc = Nokogiri::HTML.parse(open(URL).read.toutf8)
lectureCancellation = doc.xpath(%Q[//table[@id="grvCancel"]])
lectureCancellation.text.split(/(\s\s\s+)/).each do |i|
if(i =~ /\(.\)/)then
@kimitoboku
kimitoboku / main.rs
Created Dec 8, 2015
rust spawn test
View main.rs
extern crate rand;
use std::time::Duration;
use std::thread;
use std::sync::mpsc::channel;
use rand::Rng;
fn main() {
let (tx,rx) = channel();
View 2015-11-30-090511.lisp
(defun my-print (x)
(print x)
'nil)
(defun my-try-catch (flag)
(my-print 1)
(catch 'tag
(progn (my-try-throw flag)
(my-print 2)
'finish))
You can’t perform that action at this time.