This file contains 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
max_vector | |
max_vector.c |
This file contains 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
CC = clang | |
CFLAGS = -std=gnu99 -O3 -Wall | |
all: matrix_gen | |
matrix_gen: matrix_gen.o tpl.o | |
$(CC) $(CFLAGS) matrix_gen.o tpl.o -o matrix_gen | |
matrix_gen.o: matrix_gen.c | |
$(CC) $(CFLAGS) -c matrix_gen.c |
This file contains 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
CC = mpicc | |
CFLAGS = -std=gnu99 -O3 -Wall | |
# OMPI_MPICC = clang | |
all: matrix_mul | |
matrix_mul: matrix_mul.c matrix_mul.h | |
ifdef OMPI_MPICC | |
env OMPI_MPICC=$(OMPI_MPICC) $(CC) $(CFLAGS) -o matrix_mul matrix_mul.c | |
else |
This file contains 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
#include <assert.h> | |
#include <cuda.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stddef.h> | |
/* Example from "Introduction to CUDA C" from NVIDIA website: | |
https://developer.nvidia.com/cuda-education | |
Compile with: |
This file contains 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
CC = mpicc | |
CFLAGS = -std=gnu99 -O3 -Wall | |
# OMPI_MPICC = clang | |
all: matrix_mul | |
matrix_mul: matrix_mul.c matrix_mul.h | |
ifdef OMPI_MPICC | |
env OMPI_MPICC=$(OMPI_MPICC) $(CC) $(CFLAGS) -o matrix_mul matrix_mul.c | |
else |
This file contains 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
Auto-upgrade Arch Linux or get e-mail in case of failure. |
This file contains 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 | |
# | |
# rotate_desktop.sh | |
# | |
# Rotates modern Linux desktop screen and input devices to match. Handy for | |
# convertible notebooks. Call this script from panel launchers, keyboard | |
# shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
# | |
# Using transformation matrix bits taken from: | |
# https://wiki.ubuntu.com/X/InputCoordinateTransformation |
This file contains 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 | |
# i3lock-xkcd.py | |
# Downloads and show random xkcd comic as i3lock background | |
import os | |
import sys | |
from subprocess import run | |
from tempfile import NamedTemporaryFile | |
from textwrap import wrap |
This file contains 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 | |
# Script to update now-dns.com IPv4/v6 address | |
# Based on https://now-dns.com/client/dynupdate.pl | |
# Depends on python3 and python3-requests installed in the system | |
import os | |
import re | |
import requests |
This file contains 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 python | |
from subprocess import check_call, CalledProcessError | |
from tempfile import NamedTemporaryFile | |
from dpms import DPMS | |
from mss import mss | |
from PIL import Image, ImageFilter | |
GAUSSIAN_BLUR_RADIUS = 5 |
OlderNewer