Skip to content

Instantly share code, notes, and snippets.

@steven2358
steven2358 / ffmpeg.md
Last active November 11, 2024 04:45
FFmpeg cheat sheet
@CMCDragonkai
CMCDragonkai / keyboard_enter_return_and_backspace_delete.md
Last active January 8, 2024 16:43
CLI: Keyboard Enter/Return and Backspace/Delete

Keyboard Enter/Return and Backspace/Delete

In older keyboards, enter and return are 2 different keys. Old Macintosh keyboards set it up so that the Return sends a carriage return \r, while the Enter key sends a linefeed \n. However many computers nowadays do not have separate Return and Enter keys. So what do these keyboards send? While it actually depends on your operating system, its keyboard settings, and the application you're interacting with. Windows applications will generally interpret \r\n as a newline, while Mac OS 9 and earlier interpreted \r as a newline, and finally Unix with Mac OS X and later will interpret \n as a newline. People involved in the technology space will generally use the convention of \n as the newline, with \r as an artifact of computing history.

A similar situation occurs with the Backspace and Del keys. Modern convention has settled on the behaviour wher

@atcuno
atcuno / gist:3425484ac5cce5298932
Last active November 8, 2024 00:20
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

/* http://stackoverflow.com/questions/17432502/how-can-i-measure-cpu-time-and-wall-clock-time-on-both-linux-windows */
#include <stdio.h>
/* Windows */
#ifdef _WIN32
#include <Windows.h>
static inline double get_wall_time()
{