Skip to content

Instantly share code, notes, and snippets.

SSD over SATA (Plextor)
===========================================================
Sequential Read : 495.185 MB/s
Sequential Write : 323.792 MB/s
Random Read 512KB : 384.094 MB/s
Random Write 512KB : 310.445 MB/s
Random Read 4KB (QD=1) : 32.310 MB/s [ 7888.1 IOPS]
Random Write 4KB (QD=1) : 86.575 MB/s [ 21136.6 IOPS]
Random Read 4KB (QD=32) : 366.091 MB/s [ 89377.8 IOPS]
Random Write 4KB (QD=32) : 312.520 MB/s [ 76298.9 IOPS]
@akyoto
akyoto / git pull every subdirectory
Created March 12, 2015 00:19
git pull every subdirectory
for dir in ~/projects/*; do (echo "Updating $dir" && cd "$dir" && git pull); done
@akyoto
akyoto / KCG.md
Last active February 28, 2016 14:04

What is your motivation to study at KCG?

I was interested in computers ever since I started reading books about Computer Science at the age of 11. To create my own tools, websites or games is fascinating. I prefer creating over consuming. When someone sees my work and he is positively surprised about how useful it is I feel like I have accomplished something. Due to this early interest in computers I've been studying them for 13 years to improve my skills as a programmer. I've done all kinds of projects from standard software to game development. I feel like Art & Design is my weakest area of expertise because I see myself as a programmer, mainly. However I want to learn something new and exciting which has benefits for both game development and web design. This is why I believe KCG's Art & Design course is a perfect fit.

What do you plan to do in the future?

I was born in Russia but grew up in Germany because my parents immigrated there when I was 2.5 years old. In all of these 20 years in Germany I f

@akyoto
akyoto / RandomBytes.go
Created June 7, 2017 14:51
RandomBytes with dynamic length (golang)
package aero
import (
"math/rand"
"time"
)
const (
characterPool = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
characterPoolLength = uint64(len(characterPool))
@akyoto
akyoto / Fate - Stay Admin.txt
Created June 1, 2017 05:49
Fate / Stay Admin
I am the bone of my backend
Linux is my body and nginx is my blood
I have created over a thousand GitHub repos
Unknown to Google
Nor known to life
Have withstood pain to create many sites
Yet those hands will never finish anything
So, as I pray, Unlimited Bash Works.
@bemasher
bemasher / Castle.xml
Created September 18, 2011 03:46
Example of parsing xml in golang.
<?xml version="1.0" encoding="UTF-8" ?>
<Data>
<Series>
<id>83462</id>
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors>
<Airs_DayOfWeek>Monday</Airs_DayOfWeek>
<Airs_Time>10:00 PM</Airs_Time>
<ContentRating>TV-PG</ContentRating>
<FirstAired>2009-03-09</FirstAired>
<Genre>|Drama|</Genre>
@Hexodus
Hexodus / count_total_project_code_lines_in_sublime
Created September 8, 2013 17:06
Count total code lines in project using Sublime texteditor
// Go to menue:
// find->find in files
// Switch on reg_ex button
// Find:
^(.*)$
// Where:
c:\your_folder\,*.php,*.phtml,*.js,*.inc,*.html, -*/folder_to_exclude/*
// Then click on the find button
// Be careful to not click on Replace!!!
@ndarville
ndarville / webm.md
Last active September 30, 2023 18:56
4chan’s guide to converting GIF to WebM - https://boards.4chan.org/g/res/41212767

Grab ffmpeg from https://www.ffmpeg.org/download.html

It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.

The most trivial operation would be converting gifs:

ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
  • -crf values can go from 4 to 63. Lower values mean better quality.
  • -b:v is the maximum allowed bitrate. Higher means better quality.
@dmfutcher
dmfutcher / server.asm
Created July 27, 2015 18:37
TCP Echo server in x86_64 assembly, using Linux system calls.
;; Simple TCP echo server in x86_64 assembly, using Linux syscalls
;;
;; nasm -felf64 -o server.o server.asm
;; ld server.o -o server
;; ./server
;;
global _start
;; Data definitions
@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter