Skip to content

Instantly share code, notes, and snippets.

View denizetkar's full-sized avatar
🏢
I may be slow to respond.

Deniz Etkar denizetkar

🏢
I may be slow to respond.
  • TNG Technology Consulting GmbH
  • Munich, Germany
View GitHub Profile
@denizetkar
denizetkar / broadcast_condition.py
Created April 19, 2022 19:21
Implementation of a broadcast condition synchronization primitive using a read-write lock.
import threading
from collections import deque
from typing import List, Optional
class _LightSwitch:
"""An auxiliary "light switch"-like object. The first thread turns on the
"switch", the last one turns it off (see [1, sec. 4.2.2] for details)."""
def __init__(self):
@denizetkar
denizetkar / atlas_install.sh
Last active December 4, 2021 12:33 — forked from kparrish/atlas_install.sh
A bash script to install ATLAS on an Alpine linux machine. To install run the script: sudo bash atlas_install.sh. Note on newer linux machines will have to 1. Edit /etc/default/grub 2. Find line with: GRUB_CMDLINE_LINUX_DEFAULT 3. Append the following to args: intel_pstate=disable 4. Update grub: update-grub 5. Reboot; from http://math-atlas.sou…
#!/bin/bash
### ATLAS Ubuntu install
# Assign user name
if [[ -v SUDO_USER ]]; then
UserName=$SUDO_USER
echo sudo user name found: $SUDO_USER
else
read -p "Enter your user name: " UserName
fi