Skip to content

Instantly share code, notes, and snippets.

View nothingface0's full-sized avatar
🦝

Dimitris Papagiannis nothingface0

🦝
View GitHub Profile
@r-moeritz
r-moeritz / init.el
Created June 28, 2011 21:28
My init.el
;; -*- mode: Lisp; lexical-binding: t; -*-
;; ----------------------------------------------------------------------
;; HELPER FUNCTIONS
;; ----------------------------------------------------------------------
(defvar electrify-return-match
"[\]}\)\"]"
"If this regexp matches the text after the cursor, do an \"electric\"
return.")
@rmacy
rmacy / latency.txt
Created June 6, 2012 01:21 — forked from ehaughee/latency.txt
Latency numbers every programmer should know
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns
Mutex lock/unlock 25 ns
Main memory reference 100 ns
Compress 1K bytes with Zippy 3,000 ns
Send 2K bytes over 1 Gbps network 20,000 ns
Read 1 MB sequentially from memory 250,000 ns
Round trip within same datacenter 500,000 ns
Disk seek 10,000,000 ns
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active July 2, 2024 00:02
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@fmarcia
fmarcia / radios.m3u
Created March 26, 2015 08:36
Radios playlist
#EXTM3U
#EXTINF:0,FIP
http://mp3.live.tv-radio.com/fip/all/fiphautdebit.mp3
#EXTINF:0,France Culture
http://mp3.live.tv-radio.com/franceculture/all/franceculturehautdebit.mp3
#EXTINF:0,France Inter
http://mp3.live.tv-radio.com/franceinter/all/franceinterhautdebit.mp3

4chan Audio WebM Guide

Download FFmpeg https://www.ffmpeg.org/download.html FFmpeg is a command line tool, which means there is no GUI. You are going to have to input commands via the keyboard instead of clicking the mouse.

Current Limitations for WebM files on 4chan are:

Maximum file size is 4096KB.

Maximum duration is 300 seconds.

@joepie91
joepie91 / vpn.md
Last active July 29, 2024 07:41
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@toolness
toolness / adventures-in-python-core-dumping.md
Last active July 3, 2024 01:45
Adventures in Python Core Dumping

Adventures in Python Core Dumping

After watching Bryan Cantrill's presentation on [Running Aground: Debugging Docker in Production][aground] I got all excited (and strangely nostalgic) about the possibility of core-dumping server-side Python apps whenever they go awry. This would theoretically allow me to fully inspect the state of the program at the point it exploded, rather than relying solely on the information of a stack trace.

@Ezka77
Ezka77 / Radio.m3u
Last active May 14, 2024 19:00
RadioFrance m3u playlist
#EXTM3U
#EXTINF:0,France Culture - direct
http://direct.franceculture.fr/live/franceculture-midfi.mp3
#EXTINF:0,France Inter
http://icecast.radiofrance.fr/franceinter-hifi.aac?id=radiofrance
#EXTINF:0,France Musique
http://direct.francemusique.fr/live/francemusique-midfi.mp3
#EXTINF:0,France Info
https://stream.radiofrance.fr/franceinfo/franceinfo_hifi.m3u8
#EXTINF:0,France Culture - alternative link

Installing and Basic Programs on MPI C

Installing MPI on Ubuntu

Run the following command on terminal

$ sudo apt-get install libcr-dev mpich2 mpich2-doc

Compiling MPI Programs

@bbchui
bbchui / tic-tac-toe.js
Created February 5, 2018 10:51
tic-tac-toe eminem version
const readline = require('readline');
const reader = readline.createInterface({
input: process.stdin,
output: process.stdout
});
class LoseYourself {
constructor(oneShot = [[3,2,1],[],[]]) {
this.oneShot = oneShot;