This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Network | |
let myQueue = DispatchQueue(label: "HTTPSimpleServer") | |
let listener = try! NWListener(using: .tcp, on: 9000) | |
listener.newConnectionHandler = { ev in | |
print("=== new connection ===") | |
ev.start(queue: myQueue) | |
ev.receive(minimumIncompleteLength: 0, maximumLength: 8096) { content, contentContext, isComplete, error in | |
print("=== message recieved ===") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Lily58", | |
"vendorProductId": 81324845, | |
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | |
"layers": [ | |
[ | |
"KC_ESC", | |
"KC_1", | |
"KC_2", | |
"KC_3", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VERSION=${VERSION:-2.1692-vsc1.39.2} | |
WORK_DIR=/home/ubuntu/projects | |
USER_ID=1000 | |
GROUP_ID=1000 | |
PORT=8888 | |
TARBALL_URL=https://github.com/cdr/code-server/releases/download/$VERSION/code-server$VERSION-linux-x86_64.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 43.2s user time, 160ms system time, 44.84M rss, 107.73M vsz | |
# Current date: Sun Jul 28 15:06:18 2019 | |
# Hostname: iZ6we6ismi6srrazihvganZ | |
# Files: /var/log/mysql/slow.log | |
# Overall: 341.45k total, 56 unique, 295.89 QPS, 0.06x concurrency _______ | |
# Time range: 2019-07-28T06:46:53 to 2019-07-28T07:06:07 | |
# Attribute total min max avg 95% stddev median | |
# ============ ======= ======= ======= ======= ======= ======= ======= | |
# Exec time 70s 5us 12s 204us 260us 20ms 76us |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"job_id":"","ip_addrs":"47.74.40.64","pass":true,"score":40318,"message":"ok","error":["2019-07-28 13:32:41.746912 +0900 JST m=+15.693106559 リクエストがタイムアウトしました (POST /profile )","2019-07-28 13:32:41.746912 +0900 JST m=+15.693105822 リクエストがタイムアウトしました (POST /profile )","2019-07-28 13:32:43.657539 +0900 JST m=+17.603804339 リクエストがタイムアウトしました (POST /profile )","2019-07-28 13:32:44.429286 +0900 JST m=+18.375579206 リクエストがタイムアウトしました (POST /profile )","2019-07-28 13:32:45.626212 +0900 JST m=+19.572549830 リクエストがタイムアウトしました (POST /profile )","2019-07-28 13:32:45.629356 +0900 JST m=+19.575694071 リクエストがタイムアウトしました (POST /profile )","2019-07-28 13:32:48.137473 +0900 JST m=+22.083903727 リクエストがタイムアウトしました (POST /profile )","2019-07-28 13:32:48.622056 +0900 JST m=+22.568505336 リクエストがタイムアウトしました (POST /profile )","2019-07-28 13:32:54.365751 +0900 JST m=+28.312412481 リクエストがタイムアウトしました (GET /icons/78a9228a393eb2621f346fc6a5e099d5bc373f76.png )","2019-07-28 13:32:54.763758 +0900 JST m=+28.710434257 リクエストがタイムアウトしました (GET /icons/f0a6a8334e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"job_id":"","ip_addrs":"47.74.40.64","pass":true,"score":5262,"message":"ok","error":["2019-07-28 12:14:14.695424 +0900 JST m=+27.605845643 リクエストがタイムアウトしました (POST /profile )","2019-07-28 12:14:15.983897 +0900 JST m=+28.894367123 リクエストがタイムアウトしました (POST /profile )","2019-07-28 12:14:16.651817 +0900 JST m=+29.562311542 リクエストがタイムアウトしました (POST /profile )","2019-07-28 12:14:17.650577 +0900 JST m=+30.561108163 リクエストがタイムアウトしました (POST /message )","2019-07-28 12:14:17.654515 +0900 JST m=+30.565046974 リクエストがタイムアウトしました (POST /message )","2019-07-28 12:14:17.656503 +0900 JST m=+30.567034680 リクエストがタイムアウトしました (POST /message )","2019-07-28 12:14:17.756942 +0900 JST m=+30.667477900 リクエストがタイムアウトしました (POST /message )","2019-07-28 12:14:18.224277 +0900 JST m=+31.134829495 リクエストがタイムアウトしました (POST /profile )","2019-07-28 12:14:18.224322 +0900 JST m=+31.134875104 リクエストがタイムアウトしました (POST /message )","2019-07-28 12:14:18.32861 +0900 JST m=+31.239166377 リクエストがタイムアウトしました (POST /message )","2019-07-28 12:14:19.362682 +0900 JST m=+32.2732 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = 100; | |
var y = 100; | |
function setup() { | |
createCanvas(200,200); | |
} | |
function draw() { | |
background(0); | |
fill(255); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'package' | |
class Rcm < Package | |
description 'management suite for dotfiles' | |
homepage 'https://github.com/thoughtbot/rcm' | |
version '1.3.3' | |
source_url 'https://thoughtbot.github.io/rcm/dist/rcm-1.3.3.tar.gz' | |
source_sha256 '935524456f2291afa36ef815e68f1ab4a37a4ed6f0f144b7de7fb270733e13af' | |
def self.build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bind main <Ctrl-p> !@sh -c "echo $(cd ./%(repo:cdup) && pwd) | sed -e 's/\\/.*\\/\\(.*\\/.*\\)/\\1/g' | xargs -I_ open 'https://github.com/_/issues?q=is:merged %(commit)'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Google Spreadsheet向けBigQuery取り込みスクリプト | |
* http://toreta.blog.jp/archives/20649904.html | |
* License: MIT 2014- Toreta, Inc. | |
* | |
* runAllQueries() をトリガーで毎日実行してください | |
* Queries, Single row queries, Dataの三つのシートを作って下さい | |
* Queries, Single row queriesのシートには実行するクエリを書きます | |
* A列にクエリ名、B列にクエリです。 | |
* conuntなどの集約関数で1行しか返らないクエリは「Single row queries」、それ以外は「Queries」に書いて下さい |
NewerOlder