I hereby claim:
- I am drazulay on github.
- I am drazulay (https://keybase.io/drazulay) on keybase.
- I have a public key ASB-BEDWcWetK2gSV7pWOd91P41dIqpZRZGgnRUV4C5-wAo
To claim this, I am signing this object:
import React, { useEffect, useState } from "react"; | |
import { useMediaQuery } from "react-responsive"; | |
export const DarkModeToggle = () => { | |
const [isDark, setIsDark] = useState(true); | |
useMediaQuery( | |
{ | |
query: "(prefers-color-scheme: dark)", | |
}, |
killphp () { | |
printf "This will kill all PHP-FPM instances running. Continue (y/N)? " | |
read -q | |
if [[ $? -eq 0 ]] | |
then | |
for pid in $(ps aux | grep php-fpm | grep -v color | tr -s " " | cut -d" " -f2) | |
do | |
sudo kill -9 $pid | |
done | |
echo "\nall instances killed" |
# Usage: wekker 21:04 /path/to/audiofile.mp3. | |
# Add this to your ~/.profile or wherever you store your aliases. | |
# You could run it from crontab. | |
alias wekker='_wekker(){ printf "you will be woken up at %s with audio file %s\n" "$1" "$2"; while [ 1 ]; do; date "+%H:%M" | grep -q "$1"; [[ $? -eq 0 ]] && open -a VLC "$2" && break || sleep 1; done; }; _wekker' |
#! /usr/bin/env bash | |
################################ | |
# Onboarding script for OS X | |
# Installs a bunch of software, | |
# and optionally an extra bunch | |
# of other software - yay, more | |
# bytezz! Also does some config- | |
# foo like a small zsh and os x | |
# polish. |
I hereby claim:
To claim this, I am signing this object: