This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. install usb stick with arch linux | |
2. boot from usb | |
3. run `fdisk -l` to find partition with linux installation (ie /dev/sda3 Linux Filesystem) | |
4. mount partition: `mount /dev/sda3 /mnt` | |
5. arch chroot into it: `arch-chroot /mnt` | |
6. rebuild initramfs: `mkinitcpio -p linux` (if that doesn't work yes try `pacman -S linux` only) | |
7. shutdown, unplug usb, reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
knowledge dump on container runtimes | |
KataContainers | |
- image coupled with kernel | |
- light vm layer | |
- can run in nested virturalization environments if hardware supports and you can enable it in bios (ex. only bare metal EC2 instances, limits many cloud providers) | |
- slower startup time | |
- OCI compliant | |
- previously known as ClearContainers by Intel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "InputClass" | |
Identifier "touchpad" | |
Driver "libinput" | |
MatchIsTouchpad "on" | |
Option "Tapping" "on" | |
Option "TappingButtonMap" "lmr" | |
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package server | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"net" | |
) | |
// Server ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @credit: http://stackoverflow.com/questions/8609289/convert-a-binary-nodejs-buffer-to-javascript-arraybuffer | |
// From Buffer to ArrayBuffer: | |
function toArrayBuffer(buffer) { | |
var ab = new ArrayBuffer(buffer.length); | |
var view = new Uint8Array(ab); | |
for (var i = 0; i < buffer.length; ++i) { | |
view[i] = buffer[i]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://thedefiant.io/feed/ | |
https://www.coindesk.com/arc/outboundfeeds/rss/?outputType=xml | |
https://cointelegraph.com/rss | |
https://cryptopotato.com/feed/ | |
https://cryptoslate.com/feed/ | |
https://cryptonews.com/news/feed/ | |
https://smartliquidity.info/feed/ | |
https://finance.yahoo.com/news/rssindex | |
https://www.cnbc.com/id/10000664/device/rss/rss.html | |
https://time.com/nextadvisor/feed/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sstream> | |
#include <iostream> | |
#include <iomanip> | |
std::string uint8_to_hex_string(const uint8_t *v, const size_t s) { | |
std::stringstream ss; | |
ss << std::hex << std::setfill('0'); | |
for (int i = 0; i < s; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -rf /Applications/Tuxera\ Disk\ Manager.app | |
sudo rm -rf /Library/Application\ Support/Tuxera\ NTFS | |
sudo rm -rf /Library/Filesystems/fusefs_txantfs.fs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"errors" | |
"log" | |
"net" | |
"net/http" | |
"strings" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UserHomeDir ... | |
func UserHomeDir() string { | |
if runtime.GOOS == "windows" { | |
home := os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH") | |
if home == "" { | |
home = os.Getenv("USERPROFILE") | |
} | |
return home | |
} else if runtime.GOOS == "linux" { | |
home := os.Getenv("XDG_CONFIG_HOME") |