Skip to content

Instantly share code, notes, and snippets.

@ikaruga777
ikaruga777 / parse.rb
Last active March 6, 2024 10:57
SPFレコードからIP拾ってくるくん
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'spf-query'
end
domain = ARGV.first
q = SPF::Query::Record.query(domain)
def query(q, lookup_count)
@ikaruga777
ikaruga777 / 0_order_state_machine.rb
Last active June 12, 2022 17:06
statesman2mermaid
class OrderStateMachine
include Statesman::Machine
state :pending, initial: true
state :checking_out
state :purchased
state :shipped
state :cancelled
state :failed
state :refunded
@ikaruga777
ikaruga777 / Gemfile
Created June 7, 2021 21:00
TumblrのhtmlをVuePressでもみたい
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
# gem "rails"
gem 'nokogiri'
gem 'html2md'
@ikaruga777
ikaruga777 / README.md
Created August 16, 2019 06:37
Twitter Airchive README.md

INTRODUCTION

This archive was generated at the request of the following user:

  • @username at the time the archive was generated: UVB_76
  • Account ID: 153775174

This archive consists of machine-readable JSON files containing information associated with your account. We’ve included the information we believe is most relevant and useful to you, including your profile information, your Tweets, your DMs, your Moments, your media (images, videos and GIFs you’ve attached to Tweets, DMs, or Moments), a list of your followers, a list of accounts following you, your address book, Lists that you’ve created, are a member of, or are subscribed to, interest and demographic information that we have inferred about you, information about ads that you’ve seen or engaged with on Twitter, and more.

The information contained in this archive reflects the state of the account at the time when the archive was created. In addition, if we do not have any data associated with your account for a particular category (e.g.,

@ikaruga777
ikaruga777 / README.md
Last active July 20, 2019 05:20
ernest

Ernest

@ikaruga777
ikaruga777 / main.py
Last active March 20, 2019 15:00
M5Stack入門のコード
from m5stack import *
import network
import time
import _thread
class WifiList:
def __init__(self, fontHeight):
self.access_points = []
self.cursor = 0
self.fontHeight = fontHeight
@ikaruga777
ikaruga777 / README.md
Last active March 18, 2019 18:12
m5stack

これが原稿です。

この章ではmicropythonでWifiスキャナーを作ります。周りの2.4GHz帯のWifiリストを出しつつ、電波強度を音の高さで表すことができます。

micropythonのファームウェアを焼く

ampy, screenでデバッグする

wifi.scanの結果を出力する

@ikaruga777
ikaruga777 / keymap.c
Created January 6, 2019 09:30
ergodash_ble
/*
Copyright 2018 Sekigon
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@ikaruga777
ikaruga777 / helixfont.h
Last active September 7, 2018 22:27
helix pepabo oled
// This is the 'classic' fixed-space bitmap font for Adafruit_GFX since 1.0.
// See gfxfont.h for newer custom bitmap font info.
#ifndef FONT5X7_H
#define FONT5X7_H
#ifdef __AVR__
#include <avr/io.h>
#include <avr/pgmspace.h>
#elif defined(ESP8266)