This file contains hidden or 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
const getDomainKeys = () => Object.entries(Array.from(document.querySelectorAll('#spam tbody tr[role="row"]'))).flatMap(el => { | |
Object.entries(el[1]).find(v => v[0].startsWith('__reactFiber$'))[1].return.key); | |
}; | |
const deleteDomainsByKeys = async (ids) => { | |
await fetch("https://account.proton.me/api/mail/v4/incomingdefaults/delete", { | |
"credentials": "include", | |
"headers": { | |
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:138.0) Gecko/20100101 Firefox/138.0", | |
"Accept": "application/vnd.protonmail.v1+json", |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am drazulay on github. | |
* I am drazulay (https://keybase.io/drazulay) on keybase. | |
* I have a public key ASBd375erlSqCspFwRb32NVCQxaS5C2eBJ4daNRPunNtAwo | |
To claim this, I am signing this object: |
This file contains hidden or 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
"$schema" = 'https://starship.rs/config-schema.json' | |
add_newline = false | |
scan_timeout = 10 | |
format = '$all$line_break$username$hostname$directory$character' | |
[fill] | |
symbol = '-' | |
style = 'white' | |
[character] |
This file contains hidden or 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
{ | |
"Ansi 7 Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Red Component" : 0.73333334922790527, | |
"Blue Component" : 0.73333334922790527 | |
}, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { |
This file contains hidden or 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
#################### FROM GRML.ORG ZSH CONFIG #################### | |
# zsh profiling | |
# just execute 'ZSH_PROFILE_RC=1 zsh' and run 'zprof' to get the details | |
if [[ $ZSH_PROFILE_RC -gt 0 ]] ; then | |
zmodload zsh/zprof | |
fi | |
typeset -A GRML_STATUS_FEATURES |
This file contains hidden or 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 bash | |
if [ ! -f app/etc/env.php ]; then | |
printf "Installing magento..\n" | |
php bin/magento setup:install \ | |
--db-host 127.0.0.1 \ | |
--db-name magento2 \ | |
--db-user admin \ | |
--db-password admin123 \ | |
--search-engine elasticsearch7 \ |
This file contains hidden or 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
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)", | |
}, |
This file contains hidden or 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
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" |
This file contains hidden or 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
# 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' |
This file contains hidden or 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 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. |
NewerOlder