Skip to content

Instantly share code, notes, and snippets.

View supr's full-sized avatar

supr

  • C|^_^|Ɔ
  • GU HQ, 21 Faro System.
View GitHub Profile
<?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 September 29, 2019 20:01
reinstall
# 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 April 13, 2019 22:28
atomics_test.cc
#include <atomic>
#include <iostream>
#include <thread>
#include <vector>
#include <string>
usign namespace std;
atomic<int> lock(0);
@supr
supr / list.cc
Last active December 7, 2018 05:42
Simple Linked List, that merges to sorted lists.
#include <iostream>
#include <memory>
#include <optional>
template<typename T>
class mylist;
template<typename T>
class mynode {
private:
@supr
supr / README
Created June 29, 2018 02:25 — forked from xbb/README
IDRAC6 Virtual Console Launcher
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.
#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 July 27, 2017 18:17 — forked from obfusk/break.py
python equivalent of ruby's binding.pry
import code; code.interact(local=dict(globals(), **locals()))
@supr
supr / gist:9ab57557819396bd665a11b66c5f9838
Created April 16, 2017 16:31
Competitive Programming
https://cses.fi/book.html
{
"ignition": {
"version": "2.0.0",
"config": {}
},
"storage": {},
"systemd": {
"units": [
{
"name": "etcd2.service",
[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"