Skip to content

Instantly share code, notes, and snippets.

@argrath
argrath / Vagrantfile
Created January 8, 2018 19:03
Run Mastodon with Vagrant on Windows host
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV["PORT"] ||= "3000"
$provision = <<SCRIPT
# Add the yarn repo + yarn repo keys
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sudo apt-add-repository 'deb https://dl.yarnpkg.com/debian/ stable main'
@argrath
argrath / Vagrantfile
Last active September 26, 2017 18:58
Windowsホストのvagrantでmastodonを動かす https://argrath.ub32.org/annex/2017/04/24-01.html (1.6.1対応)
# -*- mode: ruby -*-
# vi: set ft=ruby :
ENV["PORT"] ||= "3000"
$provision = <<SCRIPT
# Add the yarn repo + yarn repo keys
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sudo apt-add-repository 'deb https://dl.yarnpkg.com/debian/ stable main'
@argrath
argrath / PubSubHubbub.pm
Created April 21, 2017 11:35
MojoliciousでMastodonの更新通知を受ける
package Mojolicious::Plugin::PubSubHubbub;
use Mojo::Base 'Mojolicious::Plugin';
use Mojo::UserAgent;
use Mojo::DOM;
use Mojo::ByteStream 'b';
use Mojo::Util qw/secure_compare hmac_sha1_sum/;
our $VERSION = '0.17';
# Todo:
@argrath
argrath / app.psgi
Created April 19, 2017 12:46
Mastodonの更新通知を受けるテスト
use strict;
use warnings;
use Plack::Builder;
use Plack::App::PubSubHubbub::Subscriber;
use Plack::App::PubSubHubbub::Subscriber::Config;
use Plack::App::PubSubHubbub::Subscriber::Client;
use Data::Dumper;
#!
use strict;
use warnings;
use Data::Dumper;
my %type = (
PROJECTILE => ')',
WEAPON => ')',
BOW => ')',
#!
use strict;
use warnings;
use Data::Dumper;
my %type = (
PROJECTILE => ')',
WEAPON => ')',
BOW => ')',
@argrath
argrath / package.json
Created September 24, 2015 15:31
package.json for Nocturn v0.1.4 on Windows
{
"name": "nocturn",
"version": "0.1.4",
"main": "app/main.js",
"repository": "k0kubun/nocturn",
"author": "k0kubun",
"license": "MIT",
"scripts": {
"start": "npm run compile && electron .",
"setup": "npm run setup:ghr && npm run setup:bower",
@argrath
argrath / gist:7299717
Created November 4, 2013 08:31
TwitterIRCGateway ID64ビット化パッチのようなもの
diff --git a/ExtraAddIns/RevealOnewayFollowAddIn/RevealOnewayFollow.cs b/ExtraAddIns/RevealOnewayFollowAddIn/RevealOnewayFollow.cs
index 21a33be..5343f66 100644
--- a/ExtraAddIns/RevealOnewayFollowAddIn/RevealOnewayFollow.cs
+++ b/ExtraAddIns/RevealOnewayFollowAddIn/RevealOnewayFollow.cs
@@ -40,8 +40,8 @@ namespace Misuzilla.Applications.TwitterIrcGateway.AddIns
public class RevealOnewayFollow : AddInBase
{
- private List<Int32> _followerIds;
- internal List<Int32> FollowerIds { get { return _followerIds; } }