Skip to content

Instantly share code, notes, and snippets.

Anton Novoselov n0an

  • Moscow, Russia
Block or report user

Report or block n0an

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Run Android emulator from CLI
cd ~/Library/Android/sdk/tools/bin/
./avdmanager list avd
cd ~/Library/Android/sdk/tools/
emulator @Nexus_5X_C4S_Demo
View Seagate 5TB macos format error
Here's what I would try. First run
```
diskutil list
```
to get the name to the disk you're trying to format. The below commands assume this is "disk1", but replace "disk1" with the correct disk if it's something different.
Now unmount the disk:
```
diskutil unmountDisk force disk1
```
@n0an
n0an / introrx.md
Created Sep 16, 2017 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
View transfer.sh
curl --upload-file testfile https://transfer.sh/testfile
View pdfFromVisio.py
#! python3
import pyautogui, time, logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s.%(msecs)03d: %(message)s', datefmt='%H:%M:%S')
# Set these to the correct coordinates for your particular computer.
uncheckAutoOpenPDF = (139, 522)
View stackoverflow daily
import webbrowser, time
webbrowser.open('https://stackoverflow.com/questions/tagged/ios')
time.sleep(2)
webbrowser.open('https://stackoverflow.com/questions/tagged/swift')
@n0an
n0an / Two simulaltors
Created May 1, 2017
Two Xcode simulaltors
View Two simulaltors
cd /Applications/Xcode.app/Contents/Developer/Applications/
open -n Simulator.app/
PRESS OK IN ALERT IF THERE'S ONE
Then in top menu press Hardware - Device - iOS 10.3 - SELECT MODEL
View POSTMAN requests
- CONVERT TOKEN:
http://192.168.131.128:8000/api/social/convert-token/
PARAMS:
grant_type: convert_token
client_id: FROM DJANGO ADMIN APPLICATIONS
client_secret: FROM DJANGO ADMIN APPLICATIONS
backend: facebook
token: FROM FACEBOOK
- REVOKE TOKEN:
@n0an
n0an / linux django
Last active Apr 28, 2017
linux django
View linux django
===== INITIALIZE PROJECT ====
-- Create virtual environment on Desktop:
cd ~/Desktop
virtualenv myvirtualenv/foodtasker
*** macOS:
python3 -m venv myvirtualenv/foodtasker
-- Activate virtual environment:
source myvirtualenv/foodtasker/bin/activate
@n0an
n0an / Heroku Swift Deployment
Created Apr 21, 2017
How to deploy swift server app to heroku
View Heroku Swift Deployment
First create a new file called Procfile in the root of your project and add the following to it.
web: myFirstKituraProject
$ heroku create --buildpack https://github.com/kylef/heroku-buildpack-swift.git
You can’t perform that action at this time.