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
@asakura42
asakura42 / EndeavourOS to Arch Linux.MD
Created October 10, 2025 12:04 — forked from NoobGajen/EndeavourOS to Arch Linux.MD
Converting EndeavourOS to ArchLinux

First of all, uninstall the eos-hooks package, which keeps changing the data of /etc/os-release from a hook while installing base packages.

sudo pacman -R eos-hooks

Reinstall the base package group:

sudo pacman -Syyu --noconfirm archlinux-keyring bash bzip2 lsb-release coreutils file filesystem findutils gawk gcc-libs gettext glibc grep gzip iproute2 iputils licenses pacman pciutils procps-ng psmisc sed shadow systemd systemd-sysvcompat tar util-linux xz linux
@asakura42
asakura42 / fetch.c
Last active June 23, 2024 22:04 — forked from rfc-2549/fetch.c
Simple URL fetcher in C using libcurl, can be used as a replacement for curl, if you only use it to download files.
// cc `pkg-config --cflags --libs libcurl` fetch.c -std=c99 -Os -DNDEBUG -g0 -s -Wall -o fetch
#include <stdio.h>
#include <getopt.h>
#include <curl/curl.h>
#include <stdbool.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
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}"