Skip to content

Instantly share code, notes, and snippets.

View mzdun's full-sized avatar

Marcin Zdun mzdun

View GitHub Profile
@mzdun
mzdun / licenses.md
Last active December 11, 2020 12:07
[personal]
/home
!/home/marcin/snap
!/home/marcin/.cache
!/home/marcin/.vpython-root
!/home/marcin/code/os
!/home/marcin/code/compilers
[root]
/root
from pprint import pprint
import subprocess
import os
import sys
name = 'mbits-args'
versions = ['0.12.2']
compilers = {
'gcc': {'g++-8': '8.4', 'g++-9': '9.3', 'g++-10': '10.1'},
'clang': {'clang++-7': '7.0', 'clang++-8': '8', 'clang++-9': '9', 'clang++-10': '10'},
@mzdun
mzdun / ISP.md
Last active October 12, 2020 11:33

Wyniki downstream

ISP Fast.com Ookla [ISO Ubuntu] ISO time 30s [Loss]
Radio 17Mbps 19.78Mbps 16.59Mbps 27m 58s 366 / 447
Plus LTE 97Mbps 79.83Mbps 68.26Mbps 6m 48s 444 / 447
Skynet 990Mbps 946.55Mbps 260.11Mbps 96s 446 / 447
@mzdun
mzdun / delete_git_submodule.md
Created August 28, 2020 05:33 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
#include <string>
#include <security/pam_appl.h>
namespace PAM {
class Credentials {
public:
Credentials(std::string user, std::string pass)
: user_{ std::move(user) }
, pass_{ std::move(pass) }
{
<head>
<style>
/*
Define the WebVTT default text colors and default background colors
*/
::cue(.white) { color: rgba(255,255,255,1); }
::cue(.lime) { color: rgba(0,255,0,1); }
::cue(.cyan) { color: rgba(0,255,255,1); }
::cue(.red) { color: rgba(255,0,0,1); }
::cue(.yellow) { color: rgba(255,255,0,1); }
@mzdun
mzdun / bootstrap-libc++.sh
Last active August 19, 2019 14:56
Installing libc++ - quick and dirty
#!/bin/sh
MAJOR=8
MINOR=0
# VER=$MAJOR.$MINOR
# Since 7.0:
VER=$MAJOR
NODOT=$MAJOR$MINOR
echo "---- Checkout library source code: ----"