Skip to content

Instantly share code, notes, and snippets.

View nothingface0's full-sized avatar
🦝

Dimitris Papagiannis nothingface0

🦝
View GitHub Profile
@mpusz
mpusz / alternatives.sh
Last active May 27, 2024 09:26
Ubuntu scripts
#/bin/bash
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo update-alternatives --remove-all clang
sudo update-alternatives --remove-all clang++
sudo update-alternatives --remove-all cc
sudo update-alternatives --remove-all c++
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7
@mathieucaroff
mathieucaroff / download-buidl-and-install-ghdl.sh
Created September 28, 2018 09:50
Download build and install GHDL on Ubuntu 18.04 (tested 2018-09-28)
#!/bin/sh
#
# download-buidl-and-install-ghdl.sh
#
# It took about 5 minutes on my laptop (2018-09-28).
sudo apt update
sudo apt install -y git make gnat zlib1g-dev
git clone https://github.com/ghdl/ghdl
cd ghdl
@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;

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

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

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

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.

@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