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
:root { | |
--nord0: #2e3440; | |
--nord1: #3b4252; | |
--nord2: #434c5e; | |
--nord3: #4c566a; | |
--nord4: #d8dee9; | |
--nord5: #e5e9f0; | |
--nord6: #eceff4; | |
--nord7: #8fbcbb; | |
--nord8: #88c0d0; |
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
version: '3.5' | |
volumes: | |
nextcloud: | |
db: | |
vhost.d: | |
services: | |
proxy: | |
image: jwilder/nginx-proxy:alpine |
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
fay() { | |
packages=$(awk {'print $1'} <<< $(yay -Ss $1 | awk 'NR%2 {printf "\033[1;32m%s \033[0;36m%s\033[0m — ",$1,$2;next;}{ print substr($0, 5, length($0) - 4); }' | fzf -m --ansi)) | |
[ "$packages" ] && yay -S $(echo "$packages" | tr "\n" " ") | |
} | |
fzfman() { | |
packages="$(awk {'print $1'} <<< $(pacman -Ss $1 | awk 'NR%2 {printf "\033[1;32m%s \033[0;36m%s\033[0m — ",$1,$2;next;}{ print substr($0, 5, length($0) - 4); }' | fzf -m --ansi --select-1))" | |
[ "$packages" ] && pacman -S $(echo "$packages" | tr "\n" " ") | |
} |
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
import json, requests, urllib | |
url = 'https://2ch.hk/api/captcha/2chaptcha/id' | |
imageurl = 'https://2ch.hk/api/captcha/2chaptcha/image/' | |
count = 100 | |
dirname = '/home/innermous/Downloads/' # leave this field empty to download into current directory | |
for x in range(0, count): | |
r = requests.get(url) |
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
// common.h | |
#define MEMORY_KEY 13 | |
#define ARRAY_SIZE 8 | |
struct wrapper { | |
sem_t s_read; | |
sem_t s_write; | |
int readcount; | |
int array[ARRAY_SIZE]; |
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
// common.h | |
#define MEMORY_KEY 145 | |
#define SIZE_OF_ARRAY 10 | |
struct wrapper | |
{ | |
int array[SIZE_OF_ARRAY]; | |
sem_t empty; | |
sem_t pmutex; | |
sem_t cmutex; |