Skip to content

Instantly share code, notes, and snippets.

View shinokada's full-sized avatar

Shinichi Okada shinokada

View GitHub Profile
@shinokada
shinokada / sed_snippets.sh
Created November 13, 2022 20:49 — forked from r2k0/sed_snippets.sh
sed examples
##FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
# triple space a file

Vivliostyle build command examples

Use any html from this sample dir.

Build from HTML/XHTML to a PDF

vivliostyle build https://vivliostyle.github.io/vivliostyle_doc/samples/adaptive-layout/adaptive/main.xhtml -o adaptive.pdf
vivliostyle build https://vivliostyle.github.io/vivliostyle_doc/samples/adaptive-layout/apollo8/index.xhtml -o apollo8.pdf
vivliostyle build https://vivliostyle.github.io/vivliostyle_doc/samples/adaptive-layout/candle/index.xhtml -o candle.pdf
<script>
import { MetaTags } from 'svelte-meta-tags';
let description =
'20+ Icon sets from Font Awesome, Bootstrap, Flag, Cryptocurrency, Heroicons, File icons, Weather, Twitter emoji, Tabler icons and more.';
</script>
<MetaTags
facebook={{

How to install Flowbite-Svelte to Astro

  1. Create astro app
$ pnpm create astro@latest
../Library/pnpm/store/v3/tmp/dlx-39674   |  +55 ++++++
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /Users/shinichiokada/Library/pnpm/store/v3
  Virtual store is at:             ../Library/pnpm/store/v3/tmp/dlx-39674/node_modules/.pnpm
#!/bin/bash
# Source: https://raintrees.net/projects/a-painter-and-a-black-cat/wiki/OwnTweetSearch
# this script search your own tweets from tweet.js
MY_NAME="shinokada" #change to your twitter id
HIT_LIST=$(cat tweets.js |sed -e 's/window.YTD.tweets.part0 = //'|jq -r -c '.[]'|grep "$1")
HIT_COUNT=$(echo "${HIT_LIST}"|wc -l)
COUNT="1"
# https://github.com/vuejs/vue/blob/main/.github/workflows/ci.yml
name: 'ci'
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
# https://github.com/vuejs/vue/blob/main/.github/workflows/release-tag.yml
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Create Release
jobs:
build:
name: Publish NPM
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3