Skip to content

Instantly share code, notes, and snippets.

..........EE..E.EEE..E....F.
Failures:
1) CrystalLib::Parser types parses complete array
Failure/Error: var.type.should eq(IncompleteArrayType.new(PrimitiveType.int))
expected: #<CrystalLib::IncompleteArrayType:0x21f7100 @type=#<CrystalLib::PrimitiveType:0x2158fc0 @kind=Int>>
got: #<CrystalLib::ConstantArrayType:0x21f7140 @type=#<CrystalLib::PrimitiveType:0x2158fe0 @kind=Int>, @size=1>
# youtube-dl
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
chmod a+rx /usr/local/bin/youtube-dl
# rclone
curl -O http://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64
cp rclone /usr/sbin/
chown root:root /usr/sbin/rclone
From 4bb4f986c696fa4ca267481a55de461980760b75 Mon Sep 17 00:00:00 2001
From: Jiale Zhi
Date: Wed, 14 Oct 2015 17:51:06 -0700
Subject: [PATCH] Add SPDY support back to Nginx with HTTP/2
---
auto/modules | 28 +
auto/options | 3 +
src/core/ngx_connection.h | 1 +
src/http/modules/ngx_http_ssl_module.c | 52 +-
@danny8376
danny8376 / resolver_ptr_cname.patch
Last active December 9, 2015 18:06
nginx resolve ptr cname patch
--- src/core/ngx_resolver.c.orig 2015-04-21 22:11:59.000000000 +0800
+++ src/core/ngx_resolver.c 2015-12-10 01:13:54.230523751 +0800
@@ -2012,7 +2012,7 @@
int32_t ttl;
ngx_int_t octet;
ngx_str_t name;
- ngx_uint_t i, mask, qident, class;
+ ngx_uint_t i, mask, qident, type, class;
ngx_queue_t *expire_queue;
ngx_rbtree_t *tree;
-- SQLFiddle : http://sqlfiddle.com/#!2/f0e3bd/4
-- SQLを書こう!
SELECT d.division_name, count(*)
FROM division AS d LEFT JOIN member AS m
ON d.division_id = m.division_id
GROUP BY d.division_id;
# 自分の得意な言語で
# Let's チャレンジ!!
# Rubyは怖いです
# too slow QQ
=begin
block, total = gets.split(" ").map{|i| i.to_i}
pieces = total.times.map{gets.to_i}
# 自分の得意な言語で
# Let's チャレンジ!!
# Normal way
=begin
sum = 0
# first input is the count of lines
gets.to_i.times do
required, now, price = gets.split(" ").map{|i| i.to_i}
#1
https://paiza.jp/poh/enkoi-second/35d694ad
#2
https://paiza.jp/poh/enkoi-third/a895194b
#3
https://paiza.jp/poh/enkoi-ending/207ef35a?o=41a525e3
#3-2nd
https://paiza.jp/poh/enkoi-ending/1fe8d021?o=41a525e3
# 自分の得意な言語で
# Let's チャレンジ!!
# Normal way
=begin
sum = 0
# first input is the count of lines
gets.to_i.times do
sum += gets.to_i
@danny8376
danny8376 / .screenrc
Last active December 3, 2023 18:09
my .screenrc
# Start message
startup_message off
# Set hardstatus always on
caption always "%{=u .R} %-w%{=ub .m}%n %t%{=u .R}%+w "
hardstatus alwayslastline "%{= .Y} [%l] %<%=%{= .g}@%H (%n %t) %=%{G}%e %{= .c}%Y/%m/%d%{= .M} %C %A"
# Set default encoding using utf8
defutf8 on