Skip to content

Instantly share code, notes, and snippets.

@aspick
aspick / ruby_wasm.md
Last active December 20, 2022 03:27
ruby.wasm を使って Ruby アプリケーションのシングルバイナリを作成する

requirements

steps

# follow `ruby.wasm` tutorial
curl -LO https://github.com/ruby/ruby.wasm/releases/latest/download/ruby-head-wasm32-unknown-wasi-full.tar.gz
@aspick
aspick / Fastfile
Last active August 20, 2018 13:23
fast lane crashlytics beta minimal setting
default_platform(:ios)
platform :ios do
desc "Push a new beta build to Crashlytics"
lane :beta do
cert
sigh(adhoc: true)
cocoapods
build_app(
@aspick
aspick / update_prompt.sh
Last active March 20, 2018 18:30
update fish prompt
#!/bin/bash
curl -L https://gist.github.com/aspick/1bb85f388a45ce4d17a18d7792bb48d1/raw -o ~/.config/fish/functions/fish_prompt.fish
export LSCOLORS=Exfxcxdxbxegedabagacad
function fish_prompt
if not set -q __fish_prompt_hostname
set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
end
set_color normal
set -g fish_prompt_pwd_dir_length 0
echo -s -n "$USER" @ "$__fish_prompt_hostname" " "

star installed packages

$ apm star --installed

install stared packages

$ apm stars --install
@aspick
aspick / circle.yml
Created September 20, 2016 17:30
compile mono c# solution on circle ci
dependencies:
cache_directories:
- packages
- "~/.apt-cache"
pre:
# https://discuss.circleci.com/t/add-ability-to-cache-apt-get-programs/598/4
- sudo rm -rf /var/cache/apt/archives && sudo ln -s ~/.apt-cache /var/cache/apt/archives && mkdir -p ~/.apt-cache/partial
- mkdir -p packages
override:
Gem::Specification.new do |spec|
spec.name = "ruboty-doma"
spec.version = "0.0.1"
spec.authors = ["aspick"]
spec.email = ["info@aspick.net"]
spec.summary = "ruboty plugin"
spec.files = ["ruboty-doma.rb"]
spec.require_path = "."
end
@aspick
aspick / app.js
Last active December 26, 2015 09:59
tabetai_bot
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, http = require('http')
, path = require('path')
, ImmortalNTwitter = require('immortal-ntwitter')