Skip to content

Instantly share code, notes, and snippets.

View eggplants's full-sized avatar
🏠
Working from home

haruna eggplants

🏠
Working from home
View GitHub Profile
#!/usr/bin/env bash
set -euo pipefail
if ! command -v twurl jq &>/dev/null; then
echo "install twurl, jq"
exit 1
elif ! [ -f ./.twurlrc ]; then
echo "twurl authorize" >&2
exit 1
7
7.8
7.8.4
7.10
7.10.1
7.10.2
7.10.3
8
8-buster
8-stretch
@eggplants
eggplants / log.txt
Last active December 17, 2021 21:10
error log of building egison-tutorial-4.0.1 with egison-4.1.0 on haskell:8 docker container
...
#5 682.3 Failed to build exe:egison-tutorial from egison-tutorial-4.0.1.
#5 682.3 Build log (
#5 682.3 /root/.cabal/logs/ghc-8.10.7/egison-tutorial-4.0.1-e-egison-tutorial-32bbd66ddf7ace983264a8c8fd3aa0a36c7835f7efc41de2c0131eaf79103b5c.log
#5 682.3 ):
#5 682.3 Configuring executable 'egison-tutorial' for egison-tutorial-4.0.1..
#5 682.3 Preprocessing executable 'egison-tutorial' for egison-tutorial-4.0.1..
#5 682.3 Building executable 'egison-tutorial' for egison-tutorial-4.0.1..
#5 682.3 [1 of 2] Compiling Paths_egison_tutorial ( dist/build/egison-tutorial/autogen/Paths_egison_tutorial.hs, dist/build/egison-tutorial/egison-tutorial-tmp/Paths_egison_tutorial.o )
#5 682.3 [2 of 2] Compiling Main ( Main.hs, dist/build/egison-tutorial/egison-tutorial-tmp/Main.o )
@eggplants
eggplants / _.md
Last active January 20, 2025 09:22
All preinstalled commands in Alpine linux

What?

Show all preinstalled commands in Alpine Linux

How?

$ docker run --rm -it alpine
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
#!/usr/bin/env bash
# require: imagemagick
convert -liquid-rescale 320x320 -implode 0.25 in.png out.png
test

Hey!

#Googleアドセンス
#アウトプット
#アドセンス
#アドセンス合格
#グーグルアドセンス
#ブロガーさんと繋がりたい
#ブログ
#ブログ初心者
#ブログ初心者さんと繋がりたい
#ブログ書け
@eggplants
eggplants / setup-tex.sh
Last active April 18, 2022 02:28
texこれだけ in Ubuntu
#!/bin/bash
# compile:
# $ latexmk *.tex
# compile && preview:
# $ latexmk -pv *.tex
# ref:
# https://qiita.com/rainbartown/items/d7718f12d71e688f3573
@eggplants
eggplants / copy_aff_codes.js
Last active November 22, 2021 15:19
https://pub.a8.net/a8v2/media/linkAction.do からtextarea内アフィリエイトバナーコードをJs Object形式で一括コピーするBookmarklet
javascript:var a="";document.querySelectorAll("textarea").forEach(e=>{a+=`\`${e.value}\`,`});window.prompt("ads=[...]とかの中にコピペ",a.replace(/a href/g, 'a target="_blank" href').replace(/border="\d+" width="\d+" height="\d+"/g, `onerror="this.onerror=null;this.src='https://raw.githubusercontent.com/eggplants/ads/master/img/404.png';"`))