Kiyor | | Created: 03-16-22 13:37:58, Last Update: 03-16-22 13:39:29
add /usr/local/etc/unbound.opnsense.d/2ns.io.conf
server:
private-domain: 2ns.io
Kiyor | | Created: 06-29-21 12:44:35, Last Update: 04-10-23 19:20:52
Kiyor | | Created: 10-26-17 18:03:37, Last Update: 10-26-17 18:04:04
发现centos7出现
Failed to execute operation: Too many levels of symbolic links
Kiyor | | Created: 01-20-17 18:39:36, Last Update: 01-24-17 10:48:12
# set value
child_ctx = context.WithValue(parent_ctx, key, value)
# get value
Kiyor | | Created: 08-23-16 08:46:59, Last Update: 08-23-16 11:07:26
most of code copy from official go/src/net/http/transport_test.go
package main
Kiyor | | Created: 06-07-16 03:07:13, Last Update: 06-07-16 03:07:31
sudo -u opscode-pgsql /opt/opscode/embedded/bin/psql opscode_chef
select username,hashed_password,salt,email from users;
#copy your known username's password and salt
Kiyor | | Created: 10-28-15 10:15:24, Last Update: 11-03-15 08:07:22
Did some analysis on ocsp project, this is the knowledge that you might want to know.
Kiyor | | Created: 09-07-15 12:12:25, Last Update: 09-07-15 12:51:52
最近朋友要把一个静态网站转成动态, 但是由于网站并非经营性质, 所以朋友不希望花太多精神, 那就只能转成需求的半动态.
就这种需求, 第一想到的是使用nginx的try功能, 动态归动态, 静态归静态. 不过以前没深入用过这个功能, 加上最近在玩docker, 就记录下成果吧.
Kiyor | | Created: 09-06-15 06:04:56, Last Update: 07-13-18 12:48:27
wget -N https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
tar xf ffmpeg-release-64bit-static.tar.xz
Kiyor | | Created: 08-25-15 07:24:48, Last Update: 08-28-15 11:18:50
golang 1.5 在常用的net/http
包里新增了Request.Cancel, 导致原来可以直接把request给json化的方式出现了json: unsupported type: <-chan struct {}
. 在debug的时候看不到请求了.
解决方式也十分坑…
type Req struct {
Kiyor | | Created: 08-24-15 05:38:53, Last Update: 08-28-15 10:46:14
docker run --rm -ti centos:5 /bin/bash
Kiyor | | Created: 03-17-14 11:23:58
Kiyor | | Created: 03-17-14 05:39:18
puppet:puppet puppet_config_dir/rack
Kiyor | | Created: 01-19-13 04:27:38
Setup local squid.conf with http_port 45678 transparent
ssh to your DD-WRT router and run
Kiyor | | Created: 08-19-12 09:58:43
Recently I wanted to upgrade my Minecraft player. I plan to use different server for different player. I’ve tried to check how does my home’s DD-WRT works on port forwarding. And I got the result. I could use port forwarding in iptables control player source ip connect different server.
So this is my iptables rule
Kiyor | | Created: 08-07-12 09:01:15
You can simply use command to create a ramdisk.
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://512000`
Kiyor | | Created: 08-07-12 08:54:11
Last year I bought 2011 Mac Air for learning Objective-C. Now I’m using OSX for my main environment.
Most of the people who never use OSX thought “Mac is over prices, only the hardware is good and not support a lot of apps”.
But most of Mac users love Mac is because the OS.