- 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
'use strict'; | |
const nodePath = process.argv[0], | |
exePath = process.argv[1], | |
inputPath = process.argv[2], | |
fs = require('fs'); | |
if (typeof inputPath === 'undefined') { | |
throw new Error('Need to specify input file 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
@media print { | |
/* Hide everything other than code. */ | |
body.page-blob .header[role=banner], | |
body.page-blob [role=main] .pagehead.repohead, | |
body.page-blob [role=main] .repository-content > :not(.file), | |
body.page-blob [role=main] .repository-content > .file > .file-header > .file-actions, | |
body.page-blob .site-footer-container { | |
display: none; | |
} |
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 { Template } from 'meteor/templating'; | |
/** | |
* Returns true when any of the provided arguments is true. | |
* Example: | |
* > {{#if some varA varB varC}} | |
* > At least something is true. | |
* > {{/if}} | |
*/ | |
Template.registerHelper('some', (...args) => args.some(Boolean)); |
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
'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
#!/bin/bash | |
# | |
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/ | |
# Adapted to work with the official image available into Mac App Store | |
# | |
# Enjoy! | |
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app | |
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build |
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
#!/bin/bash | |
# Author: Erik Kristensen | |
# Email: erik@erikkristensen.com | |
# License: MIT | |
# Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
# Usage: ./check_docker_container.sh _container_id_ | |
# | |
# Depending on your docker configuration, root might be required. If your nrpe user has rights | |
# to talk to the docker daemon, then root is not required. This is why root privileges are not |
OlderNewer