Skip to content

Instantly share code, notes, and snippets.

View asakura42's full-sized avatar
🌲
scripting scripting bashing bashing loving leaving pulling pushing

asakura42

🌲
scripting scripting bashing bashing loving leaving pulling pushing
  • Japan
View GitHub Profile
2021-04-20T11:47:53+00:00 kek @asakura
@asakura42
asakura42 / catt.sh
Last active September 2, 2021 13:24
catt
#!/bin/sh
case "$1" in
*.pdf)
exec pdftotext -layout "$1" -
;;
*.xl[ast][xmt])
exec unzip -qc "$1" *.xml | sed -e 's/<\/[vft]>/\n/g; s/<[^>]\{1,\}>//g; s/[^[:print:]\n]\{1,\}//g'
;;
*.xlsb)
@asakura42
asakura42 / _dark.scss
Created March 30, 2021 11:56
element alternative css
// unified palette
// try to use these colors when possible
$bg-color: #212121;
$base-color: $bg-color;
$base-text-color: #ffffff;
$header-panel-bg-color: #303030;
$header-panel-border-color: #000000;
$header-panel-text-primary-color: #b3b3b3;
$header-panel-text-secondary-color: #cccccc;
$text-primary-color: #ffffff;
@asakura42
asakura42 / Correct_GnuPG_Permission.sh
Last active November 27, 2020 01:32 — forked from oseme-techguy/Correct_GnuPG_Permission.sh
This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg .
#!/bin/bash
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) "${GNUPGHOME:-$HOME/.gnupg}/"
# Also correct the permissions and access rights on the directory
chmod 600 "${GNUPGHOME:-$HOME/.gnupg}/*"
chmod 700 "${GNUPGHOME:-$HOME/.gnupg}"