Skip to content

Instantly share code, notes, and snippets.

View dynamis's full-sized avatar
れっさーぱんだもふもふ

dynamis dynamis

れっさーぱんだもふもふ
View GitHub Profile
@dynamis
dynamis / testcase643307
Created November 14, 2011 09:32
testcase for bug 643307
<!DOCTYPE html>
<html>
<head>
<title>testcase for bug 643307</title>
<style>
@font-face {
font-family: invalid;
src: url(invalidurl);
}
.invalidfont {
@dynamis
dynamis / gist:5028469
Last active December 14, 2015 04:29
ある日 Flickr から同僚に届いたメール

Dear ****'s,

I’m writing to let you know about a recent issue with Flickr’s privacy settings that impacted some of the photos in your account.

While performing routine site maintenance, we identified a software bug that may have changed the view setting on some of your photos from non-public (i.e., private or viewable only by family and friends) to public. Affected photos were visible on Flickr between January 18th and February 7th, 2013. The affected photos were barred from appearing in any search results and they were limited to photos you've uploaded between April and December of 2012. Overall, this issue impacted only a small percentage of photos.

Protecting your privacy is one of our highest priorities so, when we discovered the bug, we took the added precaution of setting any potentially impacted photos in your account to "private.” When a photo is set to “private,” links and embeds on other websites will no longer work. This means you may have photos you intended to share with others that you may ne

@dynamis
dynamis / gist:5212485
Created March 21, 2013 11:52
HTML/CSS/JS 編集時にライブリロードさせるための基本的な Grunt スクリプトの例
"use strict";
var hostname = "localhost";
var port = 8000;
// File Path
var webroot = ".";
var htmlFiles = ["**/*.html", "**/*.md", "!_site/**/*.html"];
var jsFiles = ["**/*.js", "!**/*.min.js"]
var jshintFiles = jsFiles;
@dynamis
dynamis / upgrade-wordpress.sh
Last active December 20, 2015 05:19
WordPress バージョンアップ用スクリプト (Apache に書き込み権限を与えず使ってる場合用)
#!/bin/sh
PATH=$PATH:/usr/local/sbin:/usr/local/bin
DOCROOT=data
WPFILES=wordpress
cp -R $DOCROOT $DOCROOT-backup-`date +"%Y%m%d"`
# admin files
rm -rf $DOCROOT/wp-admin
@dynamis
dynamis / .userconfig
Last active December 26, 2015 17:59
Firefox OS ビルド用のユーザ設定ファイル
# See: https://developer.mozilla.org/en-US/Firefox_OS/Customization_with_the_.userconfig_file
#### Build Environment
export CC=gcc-4.6
export CXX=g++-4.6
#export B2G_DIR=${B2G_DIR:-$(cd $(dirname $0); pwd)}
#export GECKO_PATH=${GECKO_PATH:-$(cd gecko; pwd)}
#export GAIA_PATH=${GAIA_PATH:-$(cd gaia; pwd)}
#export GECKO_OBJDIR=${GECKO_PATH}/objdir-gonk
@dynamis
dynamis / .env
Created November 4, 2013 04:08
Appmaker をローカルで動かすための設定とか
# appmaker-components/.env
PORT=4000
ASSET_HOST=//localhost:4000
DISABLE_CACHE=anythingnotnull
@dynamis
dynamis / make-reset-gaia.sh
Created April 17, 2014 13:15
Firefox OS で日本語+英語の gaia をビルドして端末に焼き込むスクリプト
#!/bin/bash
# see follwoing pages:
# https://developer.mozilla.org/en-US/Firefox_OS/Platform/Gaia/Build_System_Primer
# https://developer.mozilla.org/en-US/Firefox_OS/Customization_with_the_.userconfig_file
# get locale files before use this script:
# cd locales
# hg clone http://hg.mozilla.org/gaia-l10n/en-US
# hg clone http://hg.mozilla.org/gaia-l10n/ja
@dynamis
dynamis / r2d2b2g.diff
Created April 22, 2014 10:49
Firefox OS Simulator のビルドしたときの修正メモ
diff --git a/Makefile b/Makefile
index 0ac9c92..d0ca28b 100644
--- a/Makefile
+++ b/Makefile
@@ -35,9 +35,9 @@ ifndef B2G_PLATFORM
endif
endif
-B2G_VERSION=1.3
-GECKO_VERSION=28
@dynamis
dynamis / README.txt
Created July 29, 2014 04:00
一部の国内 SIM で APN 設定ができない問題を修正するパッチを適用するスクリプト
Firefox OS 1.3 などでは APN 設定ファイル (を読み込む処理) に問題があり、一部の国内 SIM で Setting アプリで APN の設定をしてデータ通信を有効にすることができません。このスクリプトとパッチファイルはその問題を解決するために端末中の Settings アプリを取り出し該当ファイルにパッチを当てて再度端末中に書き込むものです。