Skip to content

Instantly share code, notes, and snippets.

Avatar

supr

  • C|^_^|Ɔ
  • GU HQ, 21 Faro System.
View GitHub Profile
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>
@supr
supr / reinstall.sh
Last active Sep 29, 2019
reinstall
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
@supr
supr / atomics.cc
Created Apr 13, 2019
atomics_test.cc
View atomics.cc
#include <atomic>
#include <iostream>
#include <thread>
#include <vector>
#include <string>
usign namespace std;
atomic<int> lock(0);
@supr
supr / list.cc
Last active Dec 7, 2018
Simple Linked List, that merges to sorted lists.
View list.cc
#include <iostream>
#include <memory>
#include <optional>
template<typename T>
class mylist;
template<typename T>
class mynode {
private:
@supr
supr / README
Created Jun 29, 2018 — forked from xbb/README
IDRAC6 Virtual Console Launcher
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 {
@supr
supr / break.py
Created Jul 27, 2017 — forked from obfusk/break.py
python equivalent of ruby's binding.pry
View break.py
import code; code.interact(local=dict(globals(), **locals()))
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"