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
#!/bin/sh | |
comm -23 <(ldd $1 | cut -d' ' -f3 | xargs -n1 pacman -Qoq | sort -u) <(pactree -u base | sort) |
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
#!/bin/bash | |
pacman -Qqn | grep electron | xargs -n 1 pactree -ru | |
for p in $(ls -d /opt/*/); do | |
fd -q 'electron' $p && pacman -Qoq $p | |
done | |
exit 0 |
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
#!/bin/bash | |
cat Makefile | grep .PHONY | cut -d: -f 2- | xargs -n 1 echo |
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
#!/bin/bash | |
tempdir="$(mktemp -d)" | |
pkgname="$@" | |
cleanup() { | |
[[ -d "$tempdir" ]] && rm -rf "$tempdir" | |
} | |
cd "$tempdir" |
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
#!/usr/bin/env python3 | |
import subprocess | |
import datetime | |
import argparse | |
version = "0.1.2" | |
class PackageInfo: |
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
template<typename T, typename... Args> | |
void LOG(T value, Args... args) { | |
std::cout << value; | |
((std::cout << ' ' << args), ...); | |
std::cout << std::endl; | |
} |
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
#!/bin/env python3 | |
import os | |
import subprocess | |
import sys | |
def main(): | |
argv = sys.argv | |
_target = os.getcwd() if len(argv) == 1 else argv[1] |
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
use crossbeam::channel::{unbounded, Receiver, Sender}; | |
use std::{ | |
sync::{Arc, Mutex}, | |
thread, | |
}; | |
#[derive(Clone)] | |
struct Runtime { | |
rx: Receiver<Task>, | |
} |