Skip to content

Instantly share code, notes, and snippets.

@akyoto
akyoto / pack-time.txt
Created June 23, 2017 18:55
Full rebuild in 28 milliseconds
λ time pack
❀ layout/layout.pixy
❀ mixins/AnimeGrid.pixy
❀ mixins/ForumTags.pixy
❀ mixins/Icon.pixy
❀ mixins/Input.pixy
❀ mixins/Postable.pixy
❀ mixins/Rating.pixy
❀ mixins/Navigation.pixy
@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.
@akyoto
akyoto / jade-to-pug-file-extension.sh
Created October 29, 2016 13:22
Jade to Pug (rename file extensions)
find . -name "*.jade" -exec rename 's/\.jade$/.pug/' '{}' \;

Criticism

  • No color balance / clear vision of colors used. Seems to be random, using purple, blue, white, gray and black.
  • White on gray background is a horrible color choice because of the bad readability (see the dates on the blog).
  • Hashtags or other symbols should never be included in the title (e.g. #Shopping, ★Advice♪). It doesn't look clean. Instead, use font icons or standard icons.
  • Irregular font sizes. Why is the header of a paragraph smaller than the text itself in the sidebar? In general, normalize all the font sizes, using a clearly defined size for each type of heading.
  • The font used seems to be 'Trebuchet MS'. There are much better looking fonts out there, suitable for writing/blogs, should use those.
  • The header coming from blogspot at the top is very ugly. It should at least have a different background color if it's separated by a line with the main content. Or even better, just remove it completely.
  • The post footer has a lot of text and links that aren't really needed on the fir
@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 / 144
Last active May 29, 2018 22:38
Ubuntu + Nvidia + 144 Hz monitor
# Put this in your startup scripts
xrandr --output DVI-D-0 --mode 1920x1080 --rate 144
# In order to find the correct parameters for the above command run:
xrandr -q
@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
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]
// GetKeysAndValues
IEnumerator GetKeysAndValues(Bucket bucket) {
var getKeysReq = bucket.GetKeys();
yield return getKeysReq.WaitUntilDone();
if(!getKeysReq.isSuccessful) {
Debug.LogError("Error querying keys for " + bucket.name);
yield break;
}