Skip to content

Instantly share code, notes, and snippets.

View JackDrogon's full-sized avatar
🎯
Focusing

Jack Drogon JackDrogon

🎯
Focusing
View GitHub Profile
@JackDrogon
JackDrogon / pipe_with_atime.c
Last active November 10, 2016 07:23
pipe atime benckmark
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <linux/unistd.h>
@JackDrogon
JackDrogon / office-thinner.rb
Last active November 4, 2023 13:43
Mac OS X Office thinner: All files are link by hard link, so you needn't to worry about apple code signature. All same files are backuped to Trash dir
#!/usr/bin/env ruby
# -*- coding:utf-8 -*-
# TODO: Check same file with soft link
# TODO: Trim same file by apfs clone
require 'set'
require 'find'
require 'digest'
require 'fileutils'