Skip to content

Instantly share code, notes, and snippets.

View anon5r's full-sized avatar

anon anon5r

View GitHub Profile
@anon5r
anon5r / mastodon-update.sh
Created May 29, 2017 01:45
マストドンのシンプルなアップデート手順。主にさくらのクラウドのスタートアップスクリプトを利用してインストールした場合を想定しています。
#!/bin/sh
# 無難な対応としては、最初にmastodonを一度停止した方が良いので停止する。
# systemctl stop mastodon-{web,sidekiq,stream}
# mastodonユーザー出ない場合は下記のコマンドでmastodonユーザーになる
# 一般ユーザーからの場合
# sudo su - mastodon
@anon5r
anon5r / sdvx6-startup.md
Last active September 11, 2023 00:01
コナステ版 SOUND VOLTEX EXCEED GEAR起動フロー
@anon5r
anon5r / autodiscover.xml
Created January 20, 2016 08:37
Auto email configure for Google App for Business
<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>IMAP</Type>
<Server>imap.gmail.com</Server>
@anon5r
anon5r / LaunchGame.json
Last active January 27, 2022 11:28
Launch KONASTE Game by Power Automate
SET username TO $'''YOUR=ACCOUNT'''
SET Password TO $'''YOUR=PASSWORD'''
SET GameURL TO $'''https://p.eagate.573.jp/game/konasteapp/API/login/login.html?game_id=sdvx'''
WebAutomation.LaunchChrome.LaunchChrome Url: GameURL WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False Timeout: 60 BrowserInstance=> Browser
IF (WebAutomation.IfWebPageContains.WebPageContainsElement BrowserInstance: Browser Control: appmask['Login screen']['KONAMI ID ログイン']) THEN
WebAutomation.PopulateTextField.PopulateTextField BrowserInstance: Browser Control: appmask['Login screen']['Username form'] Text: username EmulateTyping: True UnfocusAfterPopulate: False Mode: WebAutomation.PopulateTextMode.Replace
WebAutomation.PopulateTextField.PopulateTextField BrowserInstance: Browser Control: appmask['Login screen']['Password form'] Text: Password EmulateTyping: True UnfocusAfterPopulate: False Mode: WebAutomation.PopulateTextMode.Replace
WebAutomation.Click.Click BrowserInstance: Browser Con
@anon5r
anon5r / README.md
Last active September 17, 2021 06:14
nyarn : npm run as yarn

Nyarn : NPM run as YARN

What is this ?

This is joking code.

にゃ、にゃあ、にゃあん、にゃーん

Nya, Nyaa, Nyaan, Nyarn

@anon5r
anon5r / notes_for_regex.md
Last active July 20, 2021 02:09
正規表現メモ

正規表現メモ

項目 表記
改行を検索 \n
タブ文字を検索 \t
半角カナを検索 [ア-ンァ-ョッー゚゙・]
全角ひらがなを検索 [あ-んが-ぼぁ-ょゎっー]
全角カタカナを検索 [ア-ンガ-ボァ-ョヮッー]
半角英字を検索 [a-zA-Z]
@anon5r
anon5r / phone_number_with_hash_csv.py
Last active May 26, 2020 07:26
Scripts to export hashed IP/mobile phone numbers in Japan as CSV text files
#!/usr/bin/env python
import hashlib
prefix = ['050','070','080','090'];
x = 1000; # mobile/IP phone number will be starts with 1, not 0
column = ['NUMBER','MD5','SHA1','SHA256','SHA384','SHA512'];
print(format('"%s"' % ('", "'.join(column))))
for p in prefix:
while x <= 9999:
@anon5r
anon5r / osx-screenshot-change-config.sh
Created December 6, 2018 01:09
macOSのスクリーンショット設定の変更
#!/bin/sh
# スクリーンショットの保存先を変更する
defaults write com.apple.screencapture location ~/Downloads/ScreenShots/
# 保存場所を元に戻す
# defaults delete com.apple.screencapture location
# スクリーンショットのファイル名接頭辞を変更する
defaults write com.apple.screencapture name 'ScreenShot'
@anon5r
anon5r / Progressbar.php
Last active May 26, 2020 07:24
Progressbar
<?php
class Progressbar
{
//private $cursor = ['|', '/', '-', '\\'];
private $cursor = ['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];
private $spacer = '░';
private $indicator = "\033[7m \033[0m";
private $total = 0;
@anon5r
anon5r / create_absolute_uri.php
Last active November 15, 2019 12:04
Generate absolute URL by relational path with base URL
<?php
/**
* 相対パスから絶対URLを返却する
*
* @param string $base ベースURL, 絶対URL
* @param string $relational_path 相対パス
* @return string 相対パスの絶対URL
* @link http://logic.stepserver.jp/data/archives/501.html
* @link http://blog.anoncom.net/2010/01/08/295.html
* @link https://blog.anoncom.net/2010/01/phpurluri.html