Skip to content

Instantly share code, notes, and snippets.

<?php
// sweeper.php - public domain
// まずは試しに ..../sweeper.php?debug=1で実行してください
$sweep_dir = "/tmp/data/"; // 消したいディレクトリ ex) "/tmp/data/" 最後の/は必須です
$expire_at = 30; // ファイルを保存する日数を設定します
$debug = array_key_exists('debug', $_GET);
date_default_timezone_set('Asia/Tokyo');
$num = sweep_files($sweep_dir, $expire_at ,$debug);
<?php
// PHP 移植バージョン。こっちはもっとデバッグしてないバージョンです。
// @re4k 2012/10/11
class TwitterDevelopers
{
private $cookie;
private $boundary = "re4kboundary";
private $user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/18.0 Firefox/18.0 FirePHP/0.7.1";
private function request($uri, $type = "GET", $data)
-------------sortingUa.php-------------
<?php
/**
* スマートフォンかどうかを振り分ける簡易的なクラスです。
*
* @package sortingUa
* @author shobotch
* @sinse PHP 5.3.8
* @version 1.0.0
*/
@helsaba
helsaba / NintendoSwitchBrowser.md
Last active September 15, 2017 17:35
NintendoSwitchでネット(主にTwitter)する方法を考える

NintendoSwitchでネット(主にTwitter)する方法を考える


1. 発売日に買ってすぐ試した方法はSwitchにFacebookとTwitterアカウントを登録する画面

これは普通にGoogleとか見れていたが修正された


2. ニンテンドーネットワークに接続する画面

すでにショップなどでリンクされている場合はマイニンテンドーで地域を変更して解除する

そうするとショップに入る前にログインしろと言われるのでTwitterを選択してキャンセルしてログイン

@helsaba
helsaba / 0-SD-GUIDE.md
Created June 20, 2018 18:44 — forked from khang06/0-SD-GUIDE.md
Switch SD Dumping 101

This guide assumes you have previous experience with hactool and messing with your NAND. You aren't supposed to blindly copy commands in this, so read before pasting!

Also, the Python sections require Python 2.7 and pycrypto.

Obtaining Your SD Seed

  1. Open sd:/Nintendo/contents/private in a hex editor.
  2. Copy the hex representation of it and put it somewhere for later.
  3. Mount your NAND's SYSTEM partition.
  4. Open /save/8000000000000043 in a hex editor.