Skip to content

Instantly share code, notes, and snippets.

View QuietMisdreavus's full-sized avatar

QuietMisdreavus QuietMisdreavus

View GitHub Profile
@QuietMisdreavus
QuietMisdreavus / notify-updates
Created June 2, 2020 22:13
script and systemd unit/timer to notify me about arch system updates
#!/usr/bin/bash
# vim: ft=bash
pacupdates=$(/usr/bin/checkupdates | wc -l)
if [ "$pacupdates" -gt 0 ] ; then
/usr/bin/notify-send "${pacupdates//[[:space:]]/} packages can be updated"
fi
#!/usr/bin/env python
# colscheme-convert: takes a colorscheme file as based on my Konsole color scheme
# and converts it to something that can be pasted into a termite config file
# Victoria Mitchell ('QuietMisdreavus'), May 2016
import sys
import os.path
fname = ''
@QuietMisdreavus
QuietMisdreavus / import.py
Created May 13, 2020 17:15
old script to import files into a wallpaper directory
#!/usr/bin/env python3
import os
from os.path import splitext
import hashlib
pictypes = ".png", ".jpg", ".bmp", ".gif"
ls = os.listdir(".")
Item {
source: Span {
filename: Real("src/lib.rs"),
loline: 1,
locol: 0,
hiline: 2,
hicol: 23
},
name: Some(""),
attrs: Attributes {
[package]
name = "cratesfyi"
version = "0.5.0"
authors = ["Onur Aslan <onuraslan@gmail.com>"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/onur/cratesfyi"
build = "build.rs"
[dependencies]
use std::ops::Deref;
pub struct Base;
impl Base {
pub fn asdf(&self) {}
}
pub struct LevelOne {
pub base: Base,
#![allow(dead_code)]
mod a {
fn f() { loop { } }
}
trait Trait {
fn m1(&self);
fn m2(&self) { loop { } }
}
pub struct Bounded<T: Clone>(T);
pub struct SomeStruct;
fn asdf() -> Bounded<SomeStruct> {
impl Clone for SomeStruct {
fn clone(&self) -> SomeStruct {
SomeStruct
}
}
running: /home/misdreavus/git/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo build --manifest-path /home/misdreavus/git/rust/src/bootstrap/Cargo.toml
Finished dev [unoptimized] target(s) in 0.49s
running: /home/misdreavus/git/rust/build/bootstrap/debug/bootstrap doc -i --stage 1 --verbose src/libstd
finding compilers
CC_x86_64-unknown-linux-gnu = "cc"
CFLAGS_x86_64-unknown-linux-gnu = ["-ffunction-sections", "-fdata-sections", "-fPIC", "-m64"]
AR_x86_64-unknown-linux-gnu = "ar"
CXX_x86_64-unknown-linux-gnu = "c++"
running sanity check
learning about cargo
[package]
name = "test-egg-mode"
version = "0.1.0"
authors = ["QuietMisdreavus <grey@quietmisdreavus.net>"]
[dependencies]
egg-mode = "0.12.0"
tokio-core = "0.1.11"