Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am noellabo on github.
  • I am noellabo (https://keybase.io/noellabo) on keybase.
  • I have a public key ASBhNK0PVT95wqwym-KNQTqL0-H2VJNaNdG4avxocJ6fBQo

To claim this, I am signing this object:

@noellabo
noellabo / .env.production
Last active July 15, 2018 02:56
pub-relayのenvひな形
# default: localhost
# DOMAIN=
# default: 3000
# PORT=
# defalut: false
# HTTPS=
# default: redis://localhost:6379/1
@noellabo
noellabo / NumberingArtboards.jsx
Created August 7, 2018 02:34
Illustratorのアートボード名を連番にリネームする(普通に数値があればそれを加算、#付けた数値があればそれを利用)
#target "illustrator"
/*
NumberingArtboards.jsx
Copyright (c) 2018 Takeshi Umeda (noellabo)
Released under the MIT license
http://opensource.org/licenses/mit-license.php
http://noellabo.jp/
ver. 0.1.0
*/
@noellabo
noellabo / file0.txt
Last active October 28, 2018 15:43
pub-relayを立ててみたい方へ ref: https://qiita.com/noellabo/items/5510f85648b5fa6506bb
apt install dirmngr
apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
echo "deb http://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list
apt update
apt install crystal libgmp-dev libz-dev libssl1.0-dev
apt install redis-server
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.2.7/raphael.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-sequence-diagrams/1.0.6/sequence-diagram-min.js"></script>
</head>
<body>
<div id="diagram"></div>
@noellabo
noellabo / hongeipii_count.sh
Last active January 31, 2021 14:54
Decentralized hongeipii counter
#!/bin/bash
if [ ! -e hongeipii.txt ]
then
page=1
next=`curl -H "Accept: application/activity+json" https://mstdn.beer/users/hongeipii/followers|jq -r '.first'`
while [ $next != 'null' ]
do
json=`curl -X GET -H "Accept: application/activity+json" -d "page=${page}" https://mstdn.beer/users/hongeipii/followers`
echo ${json}|jq -r '.orderedItems[]' >> hongeipii.txt
@noellabo
noellabo / install.log
Created June 12, 2019 13:25
Pleroma install log (2019/6/12)
noel@pl:~$ sudo apt install git build-essential postgresql postgresql-contrib
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
build-essential set to manually installed.
The following additional packages will be installed:
git-man liberror-perl libpq5 postgresql-10 postgresql-client-10 postgresql-client-common postgresql-common sysstat
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn postgresql-doc
proxy_cache_path /var/cache/media levels=2:2 keys_zone=MEDIA_CACHE:100m inactive=7d max_size=30g;
server {
listen 80;
server_name files.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
@noellabo
noellabo / pom.xml-7.9.2-2.0.3.patch
Created September 26, 2020 12:35
elasticsearch 7.9.2用 analysis-sudachi 2.0.3 patch
diff --git a/pom.xml b/pom.xml
index ef9523a..e6ad492 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
<groupId>com.worksap.nlp</groupId>
<artifactId>analysis-sudachi</artifactId>
- <version>7.8.1-2.0.3</version>
+ <version>7.9.2-2.0.3</version>