Fun tool on MacOS for screenshoting then OCR and translate.
Category: coding
IOT Project: Smart Assistant Coach for Fencers
Ray tracing project
Intel Edison + ST + DynamoDB + Elastic Beanstalk
1. Deploy dash app with function to get data from DynamoDB using boto3 on Elastic Beanstalk
2. Modify ST BLE SDK example 1 to upload data getting from ST by BLE to DynamoDB
3. Run modified program on Intel Edison
4. Use Edison with ST to fetch data
import BlueSDK
5. Visualize data on AWS (Elastic Beanstalk)
å¦ä½å é¤GITäøē.DS_Store
Mac OSX ę·»å ēÆå¢åéēäøē§ę¹ę³
Macę·»å ēÆå¢åéēäøē§ę¹ę³,ä¹åęäøēÆå ³äŗmac $pathå č½½ēÆå¢åéē3ē§é ē½®ę件
(äø)
sudo nano /etc/paths
ę„ē¼č¾ pathsļ¼å°ēÆå¢åéę·»å å° paths äøć
nano ęÆäøäøŖē¼č¾åØļ¼å¦å¤čæęå äøŖļ¼å¦ļ¼Picoļ¼Emacsć
(äŗ)
1.åå»ŗäøäøŖę件ļ¼
sudo touch /etc/paths.d/mysql
2.sudo nano /etc/paths.d/mysql
3.ē¼č¾čÆ„ę件ļ¼é®å „č·Æå¾å¹¶äæåļ¼å ³éčÆ„ Terminal ēŖå£å¹¶éę°ęå¼äøäøŖļ¼å°±č½ä½æēØ mysql å½ä»¤äŗļ¼
/usr/local/mysql/bin
ę®čÆ“ļ¼čæę ·åÆ仄čŖå·±ēęę°ēę件ļ¼äøēØęåéå Øé½ę¾å° paths äøäøŖę件éļ¼ę¹ä¾æē®”ēć
(äø)
1.nano ęå¼ ~/.bash_profile ę件
2.ę°å¢ēÆå¢åé
export PATH=”$HOME/.rbenv/bin:$PATH”
3.让仄äøęåēé ē½®ēę
source ~/.bash_profile
4.ę„ēęÆå¦ēę
echo $PATH
éč¦ę³Øęēäøē¹ļ¼åå·ä¹ēÆå¢åéēåéē¬¦ļ¼ļ¼
$HOME/.rbenv/bin:$PATH äøē $PATH ē¹ę /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
å¦ęč¦ę·»å å¤äøŖēÆå¢åéēčÆļ¼éęē §å¦äøēę¹å¼ę„书åļ¼
export PATH=”$PATH:/Applications/MacVim-snapshot-68″
export PATH=”$HOME/.rbenv/bin:$PATH”
eval “$(rbenv init -)”
export PATH=”$HOME/.rbenv/bin:$PATH”
eval “$(rbenv init -)”
ēÆå¢åéå č½½ęÆęé”ŗåŗē,
ä¾ę¬”ä»/etc/pathsę件,
/etc/paths.dē®å½ļ¼
PATHēÆå¢åéäøå»ęéč·Æå¾äæ”ęÆć
ę¬ęē±Ā äøä»åøč”£Ā åä½ļ¼éēØĀ ē„čÆå
±äŗ«ē½²å 3.0Ā äøå½å¤§éč®øåÆåč®®ć
åÆčŖē±č½¬č½½ćå¼ēØļ¼ä½éē½²åä½č
äøę³Øęęē« åŗå¤ć
ę¬ē«éØē½²äŗćUCloudäŗč®”ē®ćć
å³ä¾§å¾®äæ”ę«ę ćęčµć,ęč°¢ęÆę!
å¼ēØčŖļ¼http://yijiebuyi.com/blog/41ee3bab0c5bf1d43c7a8ccc7f0fe44e.html
macOSĀ command line
a Ā afconvert Audio File Convert Ā afinfoĀ Ā Ā Audio File Info Ā afplayĀ Ā Ā Audio File Play Ā airportĀ Ā Manage Apple AirPort Ā aliasĀ Ā Ā Ā Create an alias ā¢ Ā allocĀ Ā Ā Ā List used and free memory Ā aproposĀ Ā Search the whatis database for strings Ā asrĀ Ā Ā Ā Ā Ā Apple Software Restore Ā atsutilĀ Ā Font registration system utility Ā awkĀ Ā Ā Ā Ā Ā Find and Replace text within file(s) b Ā basenameĀ Convert a full pathname to just a filename Ā bashĀ Ā Ā Ā Ā Bourne-Again SHell Ā bgĀ Ā Ā Ā Ā Ā Ā Send to background ā¢ Ā bindĀ Ā Ā Ā Ā Set or display readline key and function bindings ā¢ Ā blessĀ Ā Ā Ā Set volume bootability and startup disk options Ā breakĀ Ā Ā Ā Exit from a For, While, Until or Select loop ā¢ Ā builtinĀ Ā Execute a shell builtin . Ā bzip2Ā Ā Ā Ā Compress or decompress files c Ā caffeinate Prevent the system from sleeping Ā calĀ Ā Ā Ā Ā Ā Display a calendar Ā calendarĀ Reminder Service Ā callerĀ Ā Ā Return the context of a subroutine call ā¢ Ā cancelĀ Ā Ā Cancel print jobs Ā caseĀ Ā Ā Ā Ā Conditionally perform a command ā¢ Ā catĀ Ā Ā Ā Ā Ā Concatenate and print (display) the content of files Ā cdĀ Ā Ā Ā Ā Ā Ā Change Directory ā¢ Ā chflagsĀ Ā Change a file or folder's flags Ā chgrpĀ Ā Ā Ā Change group ownership Ā chmodĀ Ā Ā Ā Change access permissions Ā chownĀ Ā Ā Ā Change file owner and group Ā chrootĀ Ā Ā Run a command with a different root directory Ā cksumĀ Ā Ā Ā Print CRC checksum and byte counts Ā clearĀ Ā Ā Ā Clear terminal screen Ā cmpĀ Ā Ā Ā Ā Ā Compare two files Ā commĀ Ā Ā Ā Ā Compare two sorted files line by line Ā commandĀ Ā Run a command (not a function) ā¢ Ā completeĀ Edit a command completion [word/pattern/list] ā¢ Ā continueĀ Resume the next iteration of a loop ā¢ Ā cpĀ Ā Ā Ā Ā Ā Ā Copy one or more files to another location Ā cronĀ Ā Ā Ā Ā Daemon to execute scheduled commands Ā crontabĀ Ā Schedule a command to run at a later date/time Ā csplitĀ Ā Ā Split a file into context-determined pieces Ā csrutilĀ Ā Configure System Integrity Protection (SIP) Ā curlĀ Ā Ā Ā Ā Transfer dataĀ from or to a server Ā cutĀ Ā Ā Ā Ā Ā Divide a file into several parts d Ā dateĀ Ā Ā Ā Ā Display or change the date & time Ā dcĀ Ā Ā Ā Ā Ā Ā Desk Calculator Ā ddĀ Ā Ā Ā Ā Ā Ā Convert and copy a file, clone disks Ā declareĀ Ā Declare variable & set attributes ā¢ Ā defaultsĀ Set preferences, show hidden files Ā dfĀ Ā Ā Ā Ā Ā Ā Display free disk space Ā diffĀ Ā Ā Ā Ā Display the differences between two files Ā diff3Ā Ā Ā Ā Show differences among three files Ā digĀ Ā Ā Ā Ā Ā DNS lookup Ā dirnameĀ Ā Convert a full pathname to just a path Ā dirsĀ Ā Ā Ā Ā Display list of remembered directories ā¢ Ā diskutilĀ Disk utilities - Format, Verify, Repair Ā disownĀ Ā Ā Unbind a job from the current login session ā¢ Ā dittoĀ Ā Ā Ā Copy files and folders Ā dot_clean Remove dot-underscore files Ā drutilĀ Ā Ā Interact with CD/DVD burners Ā dscacheutilĀ Query or flush the Directory Service/DNS cache Ā dseditgroupĀ Edit, create, manipulate, or delete groups Ā dsenableroot Enable root access Ā dsmemberutil View user and groups rights Ā dsclĀ Ā Ā Ā Ā Directory Service command line utility Ā duĀ Ā Ā Ā Ā Ā Ā Estimate file space usage e Ā echoĀ Ā Ā Ā Ā Display text on screen ā¢ Ā edĀ Ā Ā Ā Ā Ā Ā A line-oriented text editor (edlin) Ā enableĀ Ā Ā Enable and disable builtin shell commands ā¢ Ā envĀ Ā Ā Ā Ā Ā List or Set environment variables Ā evalĀ Ā Ā Ā Ā Evaluate several commands/arguments ā¢ Ā execĀ Ā Ā Ā Ā Execute a command ā¢ Ā exitĀ Ā Ā Ā Ā Exit the shell ā¢ Ā execsnoop Snoop new process execution Ā expandĀ Ā Ā Convert tabs to spaces Ā expectĀ Ā Ā Programmed dialogue with interactive programs Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Also see AppleScript Ā exportĀ Ā Ā Set an environment variable ā¢ Ā exprĀ Ā Ā Ā Ā Evaluate expressions f Ā falseĀ Ā Ā Ā Do nothing, unsuccessfully Ā fcĀ Ā Ā Ā Ā Ā Ā Fix command (history) Ā fdiskĀ Ā Ā Ā Partition table manipulator for Darwin UFS/HFS/DOS Ā fdesetupĀ FileVault configuration, list FileVault users Ā fgĀ Ā Ā Ā Ā Ā Ā Send job to foreground ā¢ Ā fileĀ Ā Ā Ā Ā Determine file type Ā findĀ Ā Ā Ā Ā Search for files that meet a desired criteria Ā fmtĀ Ā Ā Ā Ā Ā Reformat paragraph text Ā foldĀ Ā Ā Ā Ā Wrap text to fit a specified width Ā forĀ Ā Ā Ā Ā Ā Loop command ā¢ Ā fsckĀ Ā Ā Ā Ā Filesystem consistency check and repair Ā fsaclctlĀ Filesystem enable/disable ACL support Ā fs_usageĀ Filesystem usage (process/pathname) Ā ftpĀ Ā Ā Ā Ā Ā Internet file transfer program Ā functionĀ Define Function Macros Ā fuserĀ Ā Ā Ā List processes that have one or more files open g Ā GetFileInfo Get attributes of HFS+ files Ā getoptĀ Ā Ā Parse positional parameters Ā getoptsĀ Ā Parse positional parameters ā¢ Ā gotoĀ Ā Ā Ā Ā Jump to label and continue execution Ā grepĀ Ā Ā Ā Ā Search file(s) for lines that match a given pattern Ā groupsĀ Ā Ā Print group names a user is in Ā gzipĀ Ā Ā Ā Ā Compress or decompress files h Ā haltĀ Ā Ā Ā Ā Stop and restart the operating system Ā hashĀ Ā Ā Ā Ā Refresh the cached/remembered location of commands ā¢ Ā headĀ Ā Ā Ā Ā Display the first lines of a file Ā hdiutilĀ Ā Manipulate iso disk images Ā historyĀ Ā Command History ā¢ Ā hostnameĀ Print or set system name i Ā iconvĀ Ā Ā Ā Convert the character set of a file Ā idĀ Ā Ā Ā Ā Ā Ā Print user and group names/id's Ā ifĀ Ā Ā Ā Ā Ā Ā Conditionally perform a command ā¢ Ā ifconfigĀ Configure network interface parameters Ā iostatĀ Ā Ā Report CPU and i/o statistics Ā ipconfigĀ View and control IP configuration state Ā infoĀ Ā Ā Ā Ā Help info Ā installĀ Ā Copy files and set attributes Ā iosnoopĀ Ā Snoop I/O events as they occur j Ā jobsĀ Ā Ā Ā Ā List active jobs ā¢ Ā joinĀ Ā Ā Ā Ā Join lines on a common field k Ā kextfindĀ List kernel extensions Ā kextstatĀ Display status of loaded kernel extensions (kexts) Ā kextunload Terminate driver instances and unload kernel extensions. Ā kickstart Configure Apple Remote Desktop Ā killĀ Ā Ā Ā Ā Kill a process by specifying its PID Ā killallĀ Ā Kill processes by name l Ā lĀ Ā Ā Ā Ā Ā Ā Ā List files in long format (ls -l) Ā lastĀ Ā Ā Ā Ā Indicate last logins of users and ttys Ā launchctl Load or unload daemons/agents Ā llĀ Ā Ā Ā Ā Ā Ā List files in long format, showing invisible files (ls -la) Ā lessĀ Ā Ā Ā Ā Display output one screen at a time Ā letĀ Ā Ā Ā Ā Ā Evaluate expression ā¢ Ā lipoĀ Ā Ā Ā Ā Convert a universal binary Ā lnĀ Ā Ā Ā Ā Ā Ā Make links between files (hard links, symbolic links) Ā localĀ Ā Ā Ā Set a local (function) variable ā¢ Ā locateĀ Ā Ā Find files Ā lognameĀ Ā Print current login name Ā loginĀ Ā Ā Ā log into the computer Ā logoutĀ Ā Ā Exit a login shell (bye) ā¢ Ā lookĀ Ā Ā Ā Ā Display lines beginning with a given string Ā lpĀ Ā Ā Ā Ā Ā Ā Print files Ā lprĀ Ā Ā Ā Ā Ā Print files Ā lprmĀ Ā Ā Ā Ā Remove jobs from the print queue Ā lpstatĀ Ā Ā Printer status information Ā lsĀ Ā Ā Ā Ā Ā Ā List information about file(s) Ā lsregister Reset the Launch Services database Ā lsbomĀ Ā Ā Ā List a bill of materials file Ā lsofĀ Ā Ā Ā Ā List open files m Ā manĀ Ā Ā Ā Ā Ā Help manual Ā mdfindĀ Ā Ā Spotlight search Ā mdutilĀ Ā Ā Manage Spotlight metadata store Ā mkdirĀ Ā Ā Ā Create new folder(s) Ā mkfifoĀ Ā Ā Make FIFOs (named pipes) Ā moreĀ Ā Ā Ā Ā Display output one screen at a time Ā mountĀ Ā Ā Ā Mount a file system Ā mvĀ Ā Ā Ā Ā Ā Ā Move or rename files or directories n Ā nanoĀ Ā Ā Ā Ā Simple text editor Ā nc/netcat Read and write data across networks Ā netĀ Ā Ā Ā Ā Ā Manage network resources Ā netstatĀ Ā Show network status Ā networksetup Network and System Preferences Ā niceĀ Ā Ā Ā Ā Set the priority of a command Ā nohupĀ Ā Ā Ā Run a command immune to hangups Ā ntfs.util NTFS file system utility o Ā onintrĀ Ā Ā Control the action of a shell interrupt Ā Ā openĀ Ā Ā Ā Ā Open a file/folder/URL/Application Ā opensnoop Snoop file opens as they occur Ā osacompile Compile Applescript Ā osascript Execute AppleScript p Ā passwdĀ Ā Ā Modify a user password Ā pasteĀ Ā Ā Ā Merge lines of files Ā pbcopyĀ Ā Ā Copy data to the clipboard Ā pbpasteĀ Ā Paste data from the Clipboard Ā pgrepĀ Ā Ā Ā List processes by a full or partial name Ā pingĀ Ā Ā Ā Ā Test a network connection Ā pkillĀ Ā Ā Ā Kill processes by a full or partial name Ā pkgbuildĀ Build a macOS Installer component package Ā pkgutilĀ Ā Query and manipulate installed packages Ā plutilĀ Ā Ā Property list utility Ā pmsetĀ Ā Ā Ā Power Management settings Ā popdĀ Ā Ā Ā Ā Restore the previous value of the current directory ā¢ Ā prĀ Ā Ā Ā Ā Ā Ā Convert text files for printing Ā printenvĀ List environment variables Ā printfĀ Ā Ā Format and print data ā¢ Ā psĀ Ā Ā Ā Ā Ā Ā Process status Ā pushdĀ Ā Ā Ā Save and then change the current directory Ā pwdĀ Ā Ā Ā Ā Ā Print Working Directory ā¢ q Ā quotaĀ Ā Ā Ā Display disk usage and limits r Ā rcpĀ Ā Ā Ā Ā Ā Copy files between machines Ā readĀ Ā Ā Ā Ā Read one line from standard input ā¢ Ā readonlyĀ Mark a variable or function as read-only ā¢ Ā rebootĀ Ā Ā Stop and restart the system Ā ReportCrash Enable/Disable crash reporting Ā returnĀ Ā Ā Exit a function ā¢ Ā revĀ Ā Ā Ā Ā Ā Reverse lines of a file Ā rmĀ Ā Ā Ā Ā Ā Ā Remove files Ā rmdirĀ Ā Ā Ā Remove folder(s) Ā rpmĀ Ā Ā Ā Ā Ā Remote Package Manager Ā rsyncĀ Ā Ā Ā Remote file copy - Sync file tree s Ā sayĀ Ā Ā Ā Ā Ā Convert text to audible speech Ā screenĀ Ā Ā Multiplex terminal, run remote shells via ssh Ā screencapture Capture screen image to file or disk Ā scselectĀ Switch between network locations Ā scutilĀ Ā Ā Manage system configuration parameters Ā sdiffĀ Ā Ā Ā Merge two files interactively Ā securityĀ Administer Keychains, keys, certificates and the Security framework Ā sedĀ Ā Ā Ā Ā Ā Stream Editor Ā selectĀ Ā Ā Generate a list of items ā¢ Ā serverinfo Server information Ā setĀ Ā Ā Ā Ā Ā Set a shell variable = value ā¢ Ā setfileĀ Ā Set attributes of HFS+ files Ā sharingĀ Ā Create share points for afp, ftp and smb services Ā shasumĀ Ā Ā Print or Check SHA Checksums Ā shiftĀ Ā Ā Ā Shift positional parameters ā¢ Ā shoptĀ Ā Ā Ā Set shell options ā¢ Ā shutdownĀ Shutdown or restart macOS Ā sipsĀ Ā Ā Ā Ā Scriptable image processing system Ā sleepĀ Ā Ā Ā Delay for a specified time Ā softwareupdate System software update tool Ā sortĀ Ā Ā Ā Ā Sort text files Ā sourceĀ Ā Ā Execute commands from a file ā¢ Ā spctlĀ Ā Ā Ā Security assessment policy/Gatekeeper Ā splitĀ Ā Ā Ā Split a file into fixed-size pieces Ā srmĀ Ā Ā Ā Ā Ā Securely remove files or directories Ā statĀ Ā Ā Ā Ā Display the status of a file Ā stopĀ Ā Ā Ā Ā Stop a job or process Ā suĀ Ā Ā Ā Ā Ā Ā Substitute user identity Ā sudoĀ Ā Ā Ā Ā Execute a command as another user Ā sumĀ Ā Ā Ā Ā Ā Print a checksum for a file Ā suspendĀ Ā Suspend execution of this shell ā¢ Ā sw_versĀ Ā Print macOS operating system version Ā system_profilerĀ Report system configuration Ā systemsetup Computer and display system settings t Ā tailĀ Ā Ā Ā Ā Output the last part of files Ā tarĀ Ā Ā Ā Ā Ā Tape ARchiver Ā tccutilĀ Ā Manage the privacy database Ā tcpdumpĀ Ā Dump traffic on a network Ā teeĀ Ā Ā Ā Ā Ā Redirect output to multiple files Ā testĀ Ā Ā Ā Ā Condition evaluation ā¢ Ā textutilĀ Manipulate text files in various formats (Doc,html,rtf) Ā timeĀ Ā Ā Ā Ā Measure Program Resource Use Ā timesĀ Ā Ā Ā Print shell & shell process times ā¢ Ā tmutilĀ Ā Ā Time Machine utility Ā topĀ Ā Ā Ā Ā Ā Display process information Ā touchĀ Ā Ā Ā Change file timestamps Ā tputĀ Ā Ā Ā Ā Set terminal-dependent capabilities, color, position Ā trĀ Ā Ā Ā Ā Ā Ā Translate, squeeze, and/or delete characters Ā trapĀ Ā Ā Ā Ā Execute a command when the shell receives a signal ā¢ Ā traceroute Trace Route to Host Ā trueĀ Ā Ā Ā Ā Do nothing, successfully Ā ttyĀ Ā Ā Ā Ā Ā Print filename of terminal on stdin Ā typeĀ Ā Ā Ā Ā Describe a command ā¢ u Ā ufs.utilĀ Mount/unmount UFS file system Ā ulimitĀ Ā Ā limit the use of system-wide resources ā¢ Ā umaskĀ Ā Ā Ā Users file creation mask Ā umountĀ Ā Ā Unmount a device Ā unaliasĀ Ā Remove an alias ā¢ Ā unameĀ Ā Ā Ā Print system information Ā unexpandĀ Convert spaces to tabs Ā uniqĀ Ā Ā Ā Ā Uniquify files Ā unitsĀ Ā Ā Ā Convert units from one scale to another Ā unsetĀ Ā Ā Ā Remove variable or function names ā¢ Ā untilĀ Ā Ā Ā Loop command ā¢ Ā uptimeĀ Ā Ā Show how long system has been running Ā usersĀ Ā Ā Ā Print login names of users currently logged in Ā uuencodeĀ Encode a binary file Ā uudecodeĀ Decode a file created by uuencode Ā uuidgenĀ Ā Generate a Unique ID (UUID/GUID) Ā uucpĀ Ā Ā Ā Ā Unix to Unix copy v Ā viĀ Ā Ā Ā Ā Ā Ā Text Editor w Ā waitĀ Ā Ā Ā Ā Wait for a process to complete ā¢ Ā wallĀ Ā Ā Ā Ā Write a message to users Ā wcĀ Ā Ā Ā Ā Ā Ā Print byte, word, and line counts Ā whatisĀ Ā Ā Search the whatis database for complete words Ā whereisĀ Ā Locate a program Ā whichĀ Ā Ā Ā Locate a program file in the user's path Ā whileĀ Ā Ā Ā Loop command ā¢ Ā whoĀ Ā Ā Ā Ā Ā Print all usernames currently logged on Ā whoamiĀ Ā Ā Print the current user id and name (`id -un') Ā writeĀ Ā Ā Ā Send a message to another user x Ā xargsĀ Ā Ā Ā Execute utility - passing arguments Ā xattrĀ Ā Ā Ā Display and manipulate extended attributes Ā xcode-select --installĀ Install the command line developer tools Ā youtube-dl Download video Ā yesĀ Ā Ā Ā Ā Ā Print a string until interrupted Ā zipĀ Ā Ā Ā Ā Ā Package and compress (archive) files. Ā !!Ā Ā Ā Ā Ā Ā Ā Run the last command again
Welcome to our github website
Please refer toĀ http://github.com/abx67