First, make sure you use the SessionAuthentication in Django. Put this in your settings.py
# Django rest framework
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.SessionAuthentication'| rm -rf /Applications/Tuxera\ Disk\ Manager.app | |
| rm -rf /Library/Application\ Support/Tuxera\ NTFS | |
| rm -rf /Library/Filesystems/fusefs_txantfs.fs |
I have spent quite a bit of time figuring out automounts of NFS shares in OS X...
Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:
/etc/auto_master (see last line):
#
# Automounter master map
#
+auto_master # Use directory service
| #ss-server 服务端(假设你的目前的服务端 ss 端口已经监听在 23 端口): | |
| #-----------开始-------------- | |
| iptables -t nat -A PREROUTING -p tcp -m multiport --dport 81:1023 -j REDIRECT --to-ports 23 | |
| iptables -t nat -A PREROUTING -p udp -m multiport --dport 81:1023 -j REDIRECT --to-ports 23 | |
| #以下两条命令可选 | |
| service iptables save | |
| service iptables restart | |
| #-----------结束-------------- | |
| #ss-redir 本地端(104.224.156.199 自行修改成自己服务器 ip): |
| /* Trivial keyboard input layout to english switcher by Alexander V. Zhouravlev. | |
| * Compile it with gcc -framework Carbon -o SwitchToEnglish SwitchToEnglish.m */ | |
| #import <Carbon/Carbon.h> | |
| int main (int argc, const char *argv[]) | |
| { | |
| TISInputSourceRef english = TISCopyInputSourceForLanguage(CFSTR("en-US")); | |
| if (!english) | |
| return 1; |
| #import <Foundation/Foundation.h> | |
| #import <Carbon/Carbon.h> | |
| /*############################################################################### | |
| # # | |
| # changeInput # | |
| # # | |
| # author: Stefan Klieme (based on an idea by Craig Williams) # | |
| # created: 2009-11-05 # | |
| # Changes input language # | |
| # Usage: changeInput prints current input language # |
| { | |
| "inputConfig": { | |
| "gcsSource": { | |
| "uri": "gs://example_bucket_1_test_only/pictures/jptest2.pdf" | |
| }, | |
| "mimeType": "application/pdf" | |
| }, | |
| "responses": [ | |
| { | |
| "fullTextAnnotation": { |
| import socket | |
| hostname, sld, tld, port = 'www', 'integralist', 'co.uk', 80 | |
| target = '{}.{}.{}'.format(hostname, sld, tld) | |
| # create an ipv4 (AF_INET) socket object using the tcp protocol (SOCK_STREAM) | |
| client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| # connect the client | |
| # client.connect((target, port)) |
| // https://gist.github.com/riceissa/1ead1b9881ffbb48793565ce69d7dbdd | |
| // "New cards" tab | |
| const NEW_STEPS = [15, 25, 35] // in minutes | |
| const GRADUATING_INTERVAL = 15 // in days | |
| const EASY_INTERVAL = 4 // in days | |
| const STARTING_EASE = 2.50 // in percent | |
| // "Reviews" tab |
| /*! | |
| * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | |
| * For licensing, see LICENSE.md. | |
| */ | |
| (function(t){const e=t["en"]=t["en"]||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 of %1","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align center":"Align center","Align left":"Align left","Align right":"Align right","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment","Almost equal to":"Almost equal to",Angle:"Angle","Approximately equal to":"Approximately equal to",Aquamarine:"Aquamarine","Asterisk operator":"Asterisk operator","Austral sign":"Austral sign","back wi |