Top HN posts
Tutorial: https://www.youtube.com/watch?v=hIqMrPTeGTc
Paste the below code in your browser console (F12 > Console):
(()=>{
markAllVideosAsNotBeingInteresting({
iterations: 1
});
})();
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This file contains hidden or 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
POWER PHRASES TO BUILD YOUR RESUME | |
ACCURACY | |
Recognize the importance of accuracy | |
Perform with a high degree of accuracy | |
Perform with consistent accuracy | |
Achieve results with accuracy and precision | |
Maintain high statistical accuracy | |
Expect perfection | |
Strive for perfection | |
Excel in achieving perfection |
This file contains hidden or 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
<?php | |
/* | |
Plugin Name: Add Tracking Provider | |
Plugin URI: https://www.damiencarbery.com/ | |
Description: Add new An Post (Irish postal service) as a tracking provider. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.1.20240414 | |
*/ |
This exemplary initial setup uses two devices /dev/sdb
and /dev/sdc
but can be applied to any amount of devices by following the steps with additional devices.
Create keyfile:
dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey
This file contains hidden or 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
extern crate actix_web; | |
use actix_web::{fs, server, App}; | |
fn main() { | |
server::new(|| { | |
App::new() | |
.handler( | |
"/", | |
fs::StaticFiles::new("./public") | |
.unwrap() |
This file contains hidden or 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
/** File: rpn-calculator.cpp | |
* Author: Caio Rodrigues - caiorss <DOT> rodrigues <AT> gmail <DOT> com | |
* Brief: Reverse Polish Notation Calculator | |
* Description: A simple reverse polish notation command line calculator | |
* implemented in modern C++. | |
* Site: https://caiorss.github.io/C-Cpp-Notes/sample-modern-cpp-programs.htm | |
***************************************************************************/ | |
#include <iostream> | |
#include <cmath> | |
#include <map> |
NewerOlder