Skip to content

Instantly share code, notes, and snippets.

@azu
azu / README.md
Created June 6, 2021 07:13
Decrypt and restore iOS backup(`Manifest.db` is encrypted) for restoring my iOS photos.

Setup

Use https://github.com/jfarley248/iTunes_Backup_Reader

git clone https://github.com/jfarley248/iTunes_Backup_Reader
cd iTunes_Backup_Reader
# apply https://github.com/jfarley248/iTunes_Backup_Reader/pull/12
gh pr checkout https://github.com/jfarley248/iTunes_Backup_Reader/pull/12

明日の下書き


これはなに

  • 高円寺.dev #3 用の資料 https://koenji.connpass.com/event/160886/
  • フロントエンド専門じゃない人向けの、フロントエンドの最先端〜やや未来の話です
  • このレイヤーでは Node.js を使うべき/使うと強いという部分がありますが、他言語を否定しているわけではありません。むしろ他言語でこのアーキテクチャを模倣してほしいという話です。
@Ishotihadus
Ishotihadus / unityfs2asset.rb
Created July 1, 2017 15:23
UnityFS unpack tool for MLTD (Million live theater days).
# UnityFS unpack tool for MLTD (Million live theater days).
# Output directory is created automatically.
# Usage: ruby unityfs2asset.rb data.unity3d
require 'fileutils'
require 'extlz4'
require 'bin_utils'
class BinaryReader
def initialize(data)
@voluntas
voluntas / webrtc.rst
Last active August 27, 2024 08:14
WebRTC の未来
@curi1119
curi1119 / cubewatch.rb
Last active August 29, 2015 14:02
cubewatch.rb
# -*- coding: utf-8 -*-
def cmd(target, pane, remote_command)
command = "tmux send-keys -t:#{target}.#{pane} #{remote_command} C-m"
system command
end
def window(window_name)
system "tmux new-window -a -n #{window_name}"
end
def hash_for_includes_all_masters(recursive=true, all_associations=[])
all_associations << self.to_s
result_arr = []
self.reflect_on_all_associations.each do |model|
association_name = model.name
class_name = model.class_name
next if all_associations.include?(class_name)
next unless class_name.include?('Master')
next if model.options.has_key?(:polymorphic)
@gakuzzzz
gakuzzzz / 1_.md
Last active August 2, 2023 01:59
Scala の省略ルール早覚え

Scala の省略ルール早覚え

このルールさえ押さえておけば、読んでいるコードが省略記法を使っていてもほぼ読めるようになります。

メソッド定義

def concatAsString(a: Int, b: Int): String = {
  val a_ = a.toString();
  val b_ = b.toString();
@jtanium
jtanium / recognize_path.rb
Last active August 25, 2020 09:28
Ruby module that can recognize paths of the main Rails application as well as the engines.
module RecognizePath
def recognize_path(path, options)
recognized_path = Rails.application.routes.recognize_path(path, options)
# We have a route that catches everything and sends it to 'errors#not_found', you might
# need to rescue ActionController::RoutingError
return recognized_path unless recognized_path.slice(:controller, :action) == {controller: 'errors', action: 'not_found'}
# The main app didn't recognize the path, try the engines...
Rails.application.railties.engines.each do |engine|
@cblunt
cblunt / myapp
Last active November 26, 2016 22:57
Rails app init.d script for passenger-standalone
#!/bin/bash
### BEGIN INIT INFO
# Provides: myapp passenger in standalone
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
# Short-Description: Start/stop myapp.com web site
### END INIT INFO
#PATH=/sbin:/usr/sbin:/bin:/usr/bin
@moroya
moroya / aitter.js
Last active December 18, 2015 00:39
Amazon ikuratukatter
(function(){
var total = {};
var year = '2012';
var all = false;
function init(num) {
if(typeof num !== 'number') {
num = 0;
$('<div/>').css({
position: 'fixed',
left: 0,