Skip to content

Instantly share code, notes, and snippets.

View r-darwish's full-sized avatar

Roey Darwish Dror r-darwish

View GitHub Profile
@r-darwish
r-darwish / profiles.json
Created November 22, 2019 06:42
Windows Terminal Configuration
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals" :
{
"alwaysShowTabs" : false,
"defaultProfile" : "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"initialCols" : 160,
"initialRows" : 40,
"keybindings" :
[
@r-darwish
r-darwish / metal_band_name_generator.py
Created August 16, 2019 11:11
Metal band name generator
import requests
from bs4 import BeautifulSoup
from itertools import chain
from random import choice
url = requests.get("https://arctangent.co.uk/line-up/")
soup = BeautifulSoup(url.text, features="html.parser")
bands = [x.text for x in soup.find_all("h2", "grid-title")]
words = set(chain(*[w.split(' ') for w in bands]))
words.discard("&")
@r-darwish
r-darwish / theme.yml
Created December 27, 2018 08:25
Alacritty One Dark Theme
colors:
# Default colors
primary:
background: '0x1e2127'
foreground: '0xabb2bf'
# Bright and dim foreground colors
#
# The dimmed foreground color is calculated automatically if it is not present.
@r-darwish
r-darwish / onedark.colorscheme
Created July 15, 2018 18:16
Konsole One Dark
# --- special colors ---
[Background]
Color=30,33,39
[BackgroundIntense]
Color=30,33,39
[Foreground]
Color=171,178,191
@r-darwish
r-darwish / gist:8190e61ec2f8e6a388a3be4db46f858f
Created May 6, 2018 14:13
Visual Studio Code doesn't open links in KDE Plasma on Arch Linux
Do the following:
sudo ln -s /usr/bin/kde-open5 /usr/local/bin/kde-open
@r-darwish
r-darwish / jupyter.service
Created March 6, 2018 15:23
Jupyterlab as a systemd service
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
ExecStart=/home/roeyd/Notebook/.env/bin/jupyter lab --port 9090
WorkingDirectory=/home/roeyd/Notebook
[Install]
WantedBy=default.target
@r-darwish
r-darwish / 99-hebrew.xml
Created February 25, 2018 20:25
Hebrew Fontconfig
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="lang" compare="contains">
<string>he</string>
</test>
<test qual="any" name="family">
<string>sans-serif</string>
</test>
@r-darwish
r-darwish / boot-notification.service
Created February 23, 2018 10:38
Telegram Boot notificaion
[Unit]
Description=Notify via Telegram that the system finished booting
Requires=network-online.target
After=network-online.target
StartLimitInterval=20
StartLimitBurst=4
[Service]
ExecStart=/usr/bin/curl --data chat_id=xxxxxxx --data-urlencode "text=xxxx Booted" "https://api.telegram.org/botxxxx:xxxxxxxxx/sendMessage"
Restart=on-failure
@r-darwish
r-darwish / arch.el
Created February 17, 2018 13:07
Arch Linux Emacs Langtool
'(langtool-default-language "en")
'(langtool-java-classpath "/usr/share/languagetool:/usr/share/java/languagetool/*")
@r-darwish
r-darwish / salary.ipynb
Last active February 15, 2017 08:14
Salary
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.