View fonts.conf
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="pattern"> | |
<test qual="any" name="family"><string>monospace</string></test> | |
<edit name="family" mode="assign" binding="same"><string>Iosevka Term</string></edit> | |
</match> | |
</fontconfig> |
View reinstall.sh
# Set next boot to PXE | |
ipmitool -H 172.31.0.10 -U ADMIN -I lanplus chassis bootdev pxe | |
# Reset power | |
ipmitool -H 172.31.0.10 -U ADMIN -I lanplus chassis power reset |
View atomics.cc
#include <atomic> | |
#include <iostream> | |
#include <thread> | |
#include <vector> | |
#include <string> | |
usign namespace std; | |
atomic<int> lock(0); |
View list.cc
#include <iostream> | |
#include <memory> | |
#include <optional> | |
template<typename T> | |
class mylist; | |
template<typename T> | |
class mynode { | |
private: |
View README
Use this as an example on how to start the virtual console without the need of Java Web Start or accessing it from the web interface. | |
You can use the user and password that you use for the web interface. | |
You need an old JRE... I used 1.7.0_80 from the Server JRE package, also I have tested successfully 1.7.0_79 with MacOS. | |
You don't need to install it, just extract it or copy the files in "jre" folder. | |
Open the viewer.jnlp file that you get by launching the virtual console from the web interface with a text editor. | |
Note the urls to the jar files. Download the main jar file avctKVM.jar and the libs for your operating system and architecture. | |
Extract the dlls (.so Linux, .jnilib MacOS) from the jar libs. |
View prod_cons.cc
#include <atomic> | |
#include <condition_variable> | |
#include <iostream> | |
#include <memory> | |
#include <thread> | |
#include <vector> | |
typedef struct thread_ctx thread_ctx_t; | |
struct thread_ctx { |
View break.py
import code; code.interact(local=dict(globals(), **locals())) |
View gist:9ab57557819396bd665a11b66c5f9838
https://cses.fi/book.html |
View supr.coreos.ign
{ | |
"ignition": { | |
"version": "2.0.0", | |
"config": {} | |
}, | |
"storage": {}, | |
"systemd": { | |
"units": [ | |
{ | |
"name": "etcd2.service", |
View Cargo.toml
[package] | |
name = "ed" | |
version = "0.1.0" | |
authors = ["p"] | |
[dependencies] | |
log = "0.3.6" | |
hyper = "0.10.5" | |
hyper-native-tls = "0.2.2" | |
tendril = "0.2.3" |
NewerOlder