Skip to content

Instantly share code, notes, and snippets.

@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

@paulirish
paulirish / what-forces-layout.md
Last active May 6, 2024 07:54
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent

Docker Container Name

A one paragraph description about the container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

@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
@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
@denji
denji / golang-tls.md
Last active April 29, 2024 03:39 — forked from spikebike/client.go
Simple Golang HTTPS/TLS Examples

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
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]
@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.
@XVilka
XVilka / TrueColour.md
Last active April 8, 2024 14:02
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@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!!!