sudo dnf install -y neovim git htop
Desktop apps
{ | |
"data-root": "/mnt/disk1/docker", | |
"storage-driver": "overlay2", | |
"insecure-registries" : [ | |
"192.168.1.200:5000" | |
], | |
"dns": [ | |
"192.168.1.1" | |
], | |
"registry-mirrors" : [ |
# Latex Makefile using latexmk | |
# Modified by Dogukan Cagatay <dcagatay@gmail.com> | |
# Originally from : http://tex.stackexchange.com/a/40759 | |
# | |
# Change only the variable below to the name of the main tex file. | |
PROJNAME=main | |
# You want latexmk to *always* run, because make does not have all the info. | |
# Also, include non-file targets in .PHONY so they are run regardless of any | |
# file of the given name existing. |
#!/usr/bin/env bash | |
# Check whether your mypy version compiled: `mypy --version` | |
# Mypy works a lot faster when using the compiled version | |
## Usage: | |
## curl -fL 'https://gist.githubusercontent.com/dogukancagatay/99df8636b0ca9d5a59f40b50f4a70970/raw/mypy_compiled.sh' | bash | |
MYPY_VERSION="${1:-1.9.0}" | |
curl -fL -o /tmp/${MYPY_VERSION}.tar.gz "https://github.com/python/mypy/archive/refs/tags/${MYPY_VERSION}.tar.gz" |
import socket | |
import struct | |
import subprocess | |
import time | |
REF_TIME_1970 = 2208988800 # Reference time | |
def get_ntp_time(addr="0.de.pool.ntp.org") -> int | None: | |
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
# ===================================================================== # | |
# BASIC CONFIGURATION (FEDORA 37) | |
# ===================================================================== # | |
# Default values in this YAML file are specified by `null` instead of Lima's "builtin default" values, | |
# so they can be overridden by the $LIMA_HOME/_config/default.yaml mechanism documented at the end of this file. | |
# VM type: "qemu" or "vz" (on macOS 13 and later). | |
# The vmType can be specified only on creating the instance. | |
# The vmType of existing instances cannot be changed. |
UNAME_S := $(shell uname -s) | |
# -std=c++11 -Wall -march=native | |
ifeq ($(UNAME_S),Linux) | |
CXX=clang++ | |
CPPFLAGS=-O3 | |
LDFLAGS=-O3 | |
LDLIBS=-lOpenCL | |
endif | |
ifeq ($(UNAME_S),Darwin) |