- Fake a special Wi-Fi access point.
- The goal is to disguise your Wi-Fi access point to trick your 3DS into believing that it's in contact with some special Wi-Fi access points.
- The following steps are assuming using a Mac computer just because that's what I did. If you have some other devices, the overall process should be similar.
- Change the MAC address of your Wi-Fi card.
- Write down the original MAC address of the Wi-Fi card so you can restore it later. You could find the MAC address in your system report.
- Also find the network interface name of your Wi-Fi card. In my case that's "en1".
- Turn on your Wi-Fi so that the Wi-Fi card is powered on.
- Open Terminal, run
sudo ifconfig en1 ether 4E:53:50:4F:4F:4C
to change the MAC address of your Wi-Fi card.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This test file should only be run explicitly. When that's the case, the command should look something like: | |
* npm run test ./some/test/folder/test-something.js | |
* which means the process arguments should be something like: | |
* [ "some/path/node", "some/path/mocha", "./some/test/folder/test-something.js" ] | |
* but we can not assume the third argument would always be a file path. | |
* So to evaluate this flag, the function should: | |
* 1. Check if argv[2] is likely a file path pointing at this file. | |
* 2. resolve argv[2] and compare with this file's absolute path. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Expect input to be a list of file alias. | |
on run {aliasList, parameters} | |
set fileInfoList to {} | |
repeat with aliasItem in aliasList | |
set thePath to POSIX path of aliasItem | |
set theName to name of (info for aliasItem) | |
set end of fileInfoList to {thePath:thePath, theName:theName} | |
end repeat | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AMApplicationBuild</key> | |
<string>419</string> | |
<key>AMApplicationVersion</key> | |
<string>2.6</string> | |
<key>AMDocumentVersion</key> | |
<string>2</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
class Abstract { | |
// A static abstract method. | |
static foo() { | |
if (this === Abstract) { | |
// Error Type 2. Abstract methods can not be called directly. | |
throw new TypeError("Can not call static abstract method foo."); | |
} else if (this.foo === Abstract.foo) { | |
// Error Type 3. The child has not implemented this method. | |
throw new TypeError("Please implement static abstract method foo."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SinglyLinkedListNode { | |
public data: any = null; | |
public next: SinglyLinkedListNode = null; | |
} | |
class SinglyLinkedList { | |
public static fromArray(items: any[]): SinglyLinkedList { | |
const list = new SinglyLinkedList(); | |
list.head = items.reduceRight((acc, item) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const wrapReactComponentToIgnoreSomeProps = (component, propsToOmit = {}) => { | |
const newComponent = (props) => { | |
const newProps = Object.entries(props).reduce( | |
(acc, [propName, propValue]) => { | |
if (propName in propsToOmit && propsToOmit[propName] === true) { | |
return acc; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Login to heroku CLI. | |
heroku login | |
# Create a new app project on heroku. | |
heroku create <appName> --stack cedar --region us --buildpack https://github.com/AdmitHub/meteor-buildpack-horse.git | |
# Add heroku remote to the git config file. | |
heroku git:remote -a meteor-mdc-demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import '/imports/startup/client'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git-download() { | |
set -e | |
url="$1" | |
git_filename=$(basename "$url") | |
default_target=${git_filename%.git} | |
target=${2:-"$default_target"} | |
git clone --depth=1 "$url" "$target" | |
rm -rf "$target/.git" |
NewerOlder