Browse Source

add notes

windhamdavid 3 years ago
parent
commit
47ff74a07e
8 changed files with 553 additions and 0 deletions
  1. 37 0
      notes/TOC.md
  2. 79 0
      notes/index.md
  3. 8 0
      notes/projects/_projects.md
  4. 1 0
      notes/projects/dw.md
  5. 2 0
      notes/projects/gzet.md
  6. 92 0
      notes/projects/juryd.md
  7. 281 0
      notes/projects/pants.md
  8. 53 0
      notes/projects/zw.md

+ 37 - 0
notes/TOC.md

@@ -0,0 +1,37 @@
+## Table of Contents
+
+
+---
+
+
+## Health  
+
+### Physical
+
+sleep | food | diet | nutrition | Exercise ( sport - tennis | golf | cycle | paddle / personal -  yoga | pilates | hiking | walking | running )
+
+### Mental
+
+mindset | play | learn | social | meditation | spirit
+
+### Shelter
+
+house | maintain | yard | project | weather | air quality | clothing | shoes
+
+## Wealth
+
+money | assets | investments | expenses  
+
+## Work 
+
+clients | projects | invoices | expenses | network
+
+### Personal Projects
+
+[DW](projects/dw) |
+[GZET](projects/gzet) |
+[Juryd](projects/juryd) |
+[Pants](projects/pants) |
+[Zeken Woozer Un-Ltd.](projects/zw)
+
+

+ 79 - 0
notes/index.md

@@ -0,0 +1,79 @@
+---
+title: Notes
+slug: /
+---
+
+I've separated the **technical** to [Docs](/docs/) and the **non-technical** to [Notes](index.md). As always, this Notes page started with me trying to solve something. It really bothers me for anything to take away my attention. In this case, I was trying to keep my Apple TV home screen clean so I don't have to see or surf through offers of other stuff to watch.  I curate an 'up next' list and I usually make notes that sync between my devices when someone mentions a movie or show. I usually handle this with 'quick Notes' that sync between devices. That mostly works, but the problem I'd like to have them all in one place so that I can archive and search what I've already watched much the same way I database my music listening habits. This will give me a simple searchable place to store it all without any complex APIs, databases, or whatnot. 
+
+  
+
+
+
+### Workflow
+
+I like to use Apple Notes and quick mental notes and I started using the [Obsidian](https://obsidian.md) markdown editor for looking at a pile of them on my computer. I noticed is that it's an easy way to map out some sense of order from a set of notes and documents.  The more I looked into it, I noticed that there is a whole subset of folks who are into **PKMs** ( **Personal Knowledge Management** ).  Evidently, I've been doing it for a while now since I'm accustomed to making my own documentation as I build software and websites.  As I was setting up my folder directories on a new computer ( [Ovid](/docs/computers/ovid) ), I noticed that it might be helpful to use the same approach to other aspects of my life so I created another set of documents here for the **non-technical** stuff.
+
+I generally use four lists of reminders to keep up with everything. Groceries, Short-Term, Mid-Term, and Long Term. I put everything on there and I can conveniently access and edit them from any device. For every project I build I keep a _notes.txt file containing all of the pertinent info.  I'm going to merge my old note into this site, so I have them all in one place. **Reminder**: try to match up my existing docs, notes, reminders, and start pages workflow.
+
+
+
+## PKM
+What is a personal knowledge manager? And How could I possibly organize these notes?
+
+Space | Time | Energy | Matter | Spirit |
+|-|-|-|-|-|
+|  |  |  | 
+
+Some folks refer to it as a Second Brain -   
+https://maggieappleton.com/basb  
+https://aliabdaal.com/how-to-build-a-second-brain-271393/  
+https://foambubble.github.io/foam/#how-do-i-use-foam  
+https://github.com/ianjsikes/md-graph  
+
+
+
+## Table of Contents
+see [TOC](TOC.md)
+
+
+
+### References
+
+https://en.wikipedia.org/wiki/Ontology_(information_science)  
+https://en.wikipedia.org/wiki/Information_architecture  
+https://en.wikipedia.org/wiki/Knowledge_engineering  
+https://en.wikipedia.org/wiki/Knowledge_management  
+https://en.wikipedia.org/wiki/Knowledge_retrieval  
+https://en.wikipedia.org/wiki/Information_retrieval  
+   
+https://en.wikipedia.org/wiki/Idea_networking  
+https://en.wikipedia.org/wiki/Metacognition  
+https://en.wikipedia.org/wiki/Semantic_network  
+https://en.wikipedia.org/wiki/Knowledge_representation_and_reasoning  
+https://en.wikipedia.org/wiki/Mind_map  
+https://en.wikipedia.org/wiki/Hierarchy  
+https://en.wikipedia.org/wiki/Concept_map  
+https://en.wikipedia.org/wiki/Group_concept_mapping  
+https://en.wikipedia.org/wiki/Modeling_language  
+  
+https://en.wikipedia.org/wiki/Hypertext  
+https://en.wikipedia.org/wiki/HTML  
+https://en.wikipedia.org/wiki/Hyperlink  
+https://en.wikipedia.org/wiki/Metadata  
+https://en.wikipedia.org/wiki/Semantic_Web  
+https://en.wikipedia.org/wiki/Web_Ontology_Language  
+https://en.wikipedia.org/wiki/Resource_Description_Framework  
+https://en.wikipedia.org/wiki/RDF_Schema  
+https://en.wikipedia.org/wiki/Simple_Knowledge_Organization_System  
+https://en.wikipedia.org/wiki/Semantically-Interlinked_Online_Communities  
+https://en.wikipedia.org/wiki/JSON-LD  
+  
+https://en.wikipedia.org/wiki/Personal_knowledge_management  
+https://en.wikipedia.org/wiki/Personal_wiki  
+https://en.wikipedia.org/wiki/Personal_information_manager  
+https://en.wikipedia.org/wiki/Personal_knowledge_base  
+https://en.wikipedia.org/wiki/Personal_digital_assistant  
+https://en.wikipedia.org/wiki/Google_Knowledge_Graph  
+https://en.wikipedia.org/wiki/Graph_drawing  
+  
+https://markmap.js.org/docs  

+ 8 - 0
notes/projects/_projects.md

@@ -0,0 +1,8 @@
+### Projects
+[Zeke](zeke) |
+[Woozer](woozer) |
+[DW](dw) |
+[GZET](gzet) |
+[Juryd](juryd) |
+[Pants](pants) |
+[Zeken Woozer Un-Ltd.](zw)

+ 1 - 0
notes/projects/dw.md

@@ -0,0 +1 @@
+#### DW

+ 2 - 0
notes/projects/gzet.md

@@ -0,0 +1,2 @@
+# GZET
+* [https://gzet.net](https://gzet.net)

+ 92 - 0
notes/projects/juryd.md

@@ -0,0 +1,92 @@
+# Juryd
+* [https://juryd.com](https://juryd.com)
+* [https://beta.juryd.com](https://beta.juryd.com)
+
+
+#### Build Structure
+
+* [Babel](https://babeljs.io/)
+* [webpack](https://webpack.js.org/)
+
+##### Testing
+
+
+#### Front End
+
+* [React](https://facebook.github.io/react/)
+	* [React Storybooks](https://storybooks.js.org/)
+* [Redux](http://redux.js.org/)
+* [socket.io](https://github.com/socketio/socket.io/)
+* [next.js](https://github.com/zeit/next.js)
+
+#### API
+
+* [Feathers.js](https://docs.feathersjs.com)
+
+#### Mobile/Desktop
+
+
+* [React Native](https://facebook.github.io/react-native/)
+	* [Expo](https://expo.io/)
+	* [Expo Docs](https://docs.expo.io/)
+* [photon](https://github.com/connors/photon)
+* [electron](https://github.com/electron/electron)
+	* [react native desktop](https://github.com/ptmt/react-native-macos)
+
+
+#### Database
+
+* MongoDB
+	* [http://mongoosejs.com/docs/guide.html](http://mongoosejs.com/docs/guide.html)
+
+
+
+#### Payment Processing
+
+* [Node.js library for the Stripe API](https://github.com/stripe/stripe-node)
+* [Stripe - Docs](https://stripe.com/docs)
+	* [Stripe - Saving credit card details for later](https://stripe.com/docs/charges#saving-credit-card-details-for-later)
+	```
+	# get the credit card details submitted by the form or app
+	token = params[:stripeToken]
+
+	# create a Customer
+	customer = Stripe::Customer.create(
+	  card: token,
+	  description: 'description for payinguser@example.com',
+	  email: 'payinguser@example.com'
+	)
+
+	# charge the Customer instead of the card
+	Stripe::Charge.create(
+	    amount: 1000, # in cents
+	    currency: 'usd',
+	    customer: customer.id
+	)
+
+	# save the customer ID in your database so you can use it later
+	save_stripe_customer_id(user, customer.id)
+
+	# later
+	customer_id = get_stripe_customer_id(user)
+
+	Stripe::Charge.create(
+	    amount: 1500, # $15.00 this time
+	    currency: 'usd',
+	    customer: customer_id
+	)
+	```
+
+#### Legal
+
+- [https://stripe.com/atlas](https://stripe.com/atlas)
+
+#### Conceptual
+
+#### Other
+
+[https://en.wikipedia.org/wiki/Pay_to_play](https://en.wikipedia.org/wiki/Pay_to_play)
+
+##### Related Articles
+[Celery Joins Forces With Indiegogo](https://blog.trycelery.com/celery-joins-forces-with-indiegogo/)  
+[Can the web save the press from oblivion?](https://www.theguardian.com/media/2016/apr/17/can-internet-save-printed-press-blendle-lumi)

+ 281 - 0
notes/projects/pants.md

@@ -0,0 +1,281 @@
+# Pants
+
+* [https://peoplespants.com](https://peoplespants.com)
+
+#### Build Structure
+
+* [Babel](https://babeljs.io/)
+* [webpack](https://webpack.js.org/)
+
+#### Front End
+* [Vuejs](https://vuejs.org/v2/guide/)
+
+#### Back
+* [Laravel](/docs/host/laravel)  
+
+#### Testing
+* [Laravel Dusk](https://laravel.com/docs/5.7/dusk)  
+#### API
+
+#### Mobile
+* [Weex](https://weex.incubator.apache.org/guide/)
+
+#### Database
+* [MySQL](https://www.mysql.com/)
+
+#### Payment Processing
+* [Stripe - Docs](https://stripe.com/docs)
+
+
+#### Legal
+- [Atlas](https://stripe.com/atlas)
+
+#### Conceptual
+
+#### Other
+
+#### Related
+
+## Pants
+( see projects/[pants.md](/projects/pants.md) )
+
+```bash
+//********* Ubuntu 18.04 ( Pants )****//
+
+74.207.225.78
+2600:3c02::f03c:91ff:fe21:88ca
+root@74.207.225.78
+sudo apt update && sudo apt upgrade
+adduser user
+adduser user sudo
+logout
+user@74.207.225.78
+
+sudo vi /etc/hosts
+IP FQDN hostname
+
+ssh-keygen -b 4096
+scp ~/.ssh/id_rsa.pub user@74.207.225.78:~/.ssh/authorized_keys
+
+/etc/ssh/sshd_config
+PermitRootLogin no
+PasswordAuthentication no
+Port ####
+PubkeyAuthentication yes
+sudo systemctl restart sshd
+
+sudo apt-get install ufw
+sudo ufw enable
+ufw allow OpenSSH
+ufw app list
+ufw status verbose
+sudo ufw allow/deny from IP
+sudo ufw allow :PORT
+
+sudo apt install apache2
+sudo a2dismod mpm_event
+sudo a2enmod mpm_prefork
+sudo vi /etc/apache2/mods-available/mpm_event.comf
+sudo vi /etc/apache2/mods-available/mpm_prefork.conf
+sudo ufw allow 'Apache Full'
+sudo systemctl reload apache2
+
+sudo a2ensite blank.conf
+sudo service apache2 restart
+->add your username to the group adm to access apache logs
+sudo usermod -aG adm
+
+sudo add-apt-repository ppa:certbot/certbot
+sudo apt install python-certbot-apache
+sudo certbot --apache -d example.com
+->backup /etc/letsencrypt
+
+sudo apt install git
+git config --global user.name "Your Name"
+git config --global user.email "youremail@domain.com"
+
+sudo apt-get install zsh
+sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
+sudo vi .zshrc
+
+sudo apt install mysql-server
+sudo mysql_secure_installation
+mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
+mysql> FLUSH PRIVILEGES;
+mysql> SELECT user,authentication_string,plugin,host FROM mysql.user;
+create user 'testuser'@'localhost' identified by 'password';
+grant all on testdb.* to 'testuser';
+mysql> update mysql.user set user='' where user='root';
+-> list users
+SELECT user,authentication_string,plugin,host FROM mysql.user;
+
+
+curl -sL https://raw.githubusercontent.com/richardforth/apache2buddy/master/apache2buddy.pl | perl
+
+sudo apt install mysqltuner
+mysqltuner
+
+sudo apt install php libapache2-mod-php php-mysql
+--> sudo apt install php-curl php-json php-cgi
+sudo vi /etc/apache2/mods-enabled/dir.conf
+apt search php- | less
+
+sudo apt install php7.2-mbstring
+sudo apt install php-xml
+sudo apt install wget php-cli php-zip unzip
+sudo apt install curl
+
+/etc/php/7.2/apache2/php.ini
+error_reporting = E_COMPILE_ERROR | E_RECOVERABLE_ERROR | E_ERROR | E_CORE_ERROR
+max_input_time = 30
+memory_limit - 256M
+error_log = /var/log/php/error.log
+sudo mkdir /var/log/php
+sudo chown www-data /var/log/php
+
+<Directory /var/www/>
+	Options Indexes FollowSymLinks
+	AllowOverride None
+	Require all granted
+</Directory>
+
+sudo systemctl restart apache2
+-> list all apache modules
+sudo apache2ctl -M
+-> apache2/apache2.conf
+<IfModule http2_module>
+    LogLevel http2:info
+</IfModule>
+
+--> Apache 2.4.27, HTTP/2 not supported in prefork
+sudo a2dismod php7.2
+sudo a2dismod mpm_prefork
+sudo a2enmod php7.2
+sudo apt install php7.2-fpm
+sudo vi /etc/php/7.2/fpm/php.ini
+--> memory/uploads/execution_time etc.
+
+sudo apt install mod_proxy_fcgi
+sudo a2enmod actions fastcgi alias proxy_fcgi
+sudo apache2ctl -M
+
+<VirtualHost *:443>
+	Protocols h2 http/1.1
+</VirtualHost>
+<FilesMatch \.php$>
+	SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"
+</FilesMatch>
+<Proxy "fcgi://localhost/">
+</Proxy>
+
+ -->Tune Apache fpm https://medium.com/@sbuckpesch/apache2-and-php-fpm-performance-optimization-step-by-step-guide-1bfecf161534
+https://blog.getpolymorph.com/7-tips-for-heavy-load-testing-with-apache-bench-b1127916b7b6
+
+sudo vi /etc/apache2/mods-enabled/mpm_event.conf
+ <IfModule mpm_event_module>
+         StartServers             2
+         MinSpareThreads          25
+         MaxSpareThreads          75
+         ThreadLimit              64
+         ThreadsPerChild          25
+         MaxRequestWorkers        150
+         MaxConnectionsPerChild   100
+ </IfModule>
+/etc/php/7.1/fpm/pool.d/www.conf
+sudo service php7.2-fpm restart
+sudo apachectl restart
+--> apache bench testing
+ab -n 500 -c 100 https://example.com:443/
+ab -n 1000 -c 100 https://example.com:443/
+
+sudo cp /etc/apache2/sites-available/example.com.conf /etc/apache2/sites-available/sh.example.com.conf
+sudo mkdir -p /var/www/sh.example.com/{html,log,backup}
+sudo chown david:www-data -R /var/www/sh.example.com/
+sudo a2ensite sh.example.com
+sudo apachectl restart
+
+sudo certbot --apache -d sh.example.com
+sudo apachectl restart
+
+  <Directory /var/www/example.com/html>
+          Options  FollowSymLinks
+          DirectoryIndex index.html index.php
+          AllowOverride All
+          Allow from all
+          Require all granted
+  </Directory>
+
+<FilesMatch \.php$>
+SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"
+</FilesMatch>
+
+ProxyErrorOverride On
+
+ErrorDocument 403 /error/403.html
+ErrorDocument 404 /error/404.html
+ErrorDocument 500 /error/503.html
+ErrorDocument 502 /error/503.html
+ErrorDocument 503 /error/503.html
+ErrorDocument 504 /error/503.html
+
+-->enable mod_headers.c
+sudo a2enmod headers
+sudo a2enmod expires
+--> list all mods
+apache2ctl -M
+
+--> remove news/help from login
+sudo chmod 0644 /etc/update-motd.d/50-motd-news
+sudo chmod 0644 /etc/update-motd.d/10-help-text
+
+--> add pants
+sudo vi /etc/update-motd.d/05-pants
+#!/bin/sh
+printf "\n$(cat /etc/update-motd.d/pants.asc)\n"
+--> pants.asc
+.-.         .        .-.        .   
+|-'.-,.-..-.| .-,.-  |-'.-. .-.-|-.-
+'  `'-`-'|-''-`'--'  '  `-`-' ' '--'
+         '                          
+sudo chmod +x /etc/update-motd.d/20-display-logo
+
+
+sudo apt install redis-server
+sudo vi /etc/redis/redis.conf
+--> add under # supervision tree. Options:
+supervised systemd
+--> make sure it's binding to localhost
+bind 127.0.0.1 ::1
+--> add password
+openssl rand 60 | openssl base64 -A
+--> cp from .evn.production and paste to:
+# requirepass foobared (strong/long password)
+
+sudo systemctl restart redis.service
+sudo systemctl status redis
+
+redis-cli
+> ping
+> get test
+> exit
+
+sudo systemctl restart redis
+sudo netstat -lnp | grep redis
+redis-cli
+>auth your_redis_password
+>set key1 10
+>quit
+
+sudo vi /etc/redis/redis.conf
+--> diable dangerous redis commands
+rename-command FLUSHDB ""
+rename-command FLUSHALL ""
+rename-command DEBUG ""
+rename-command CONFIG ""
+
+sudo systemctl restart redis.service
+redis-cli
+> auth your_redis_password
+> exit
+
+```

+ 53 - 0
notes/projects/zw.md

@@ -0,0 +1,53 @@
+# ZW Un-Ltd LLC
+
+https://zekenwoozer.com
+
+
+
+##### LLC
+
+If a single-member LLC does not elect to be treated as a corporation, the LLC is a "disregarded entity," and the LLC's activities should be reflected on its owner's federal tax return. If the owner is an individual, the activities of the LLC will generally be reflected on:
+
+
+###### Forms
+
+- [Form 1040 Schedule C, Profit or Loss from Business (Sole Proprietorship)](https://www.irs.gov/pub/irs-pdf/f1040sc.pdf)
+- [Schedule K-1 (Form 1065), Partner's Share of Income, Deductions, Credits, etc.](https://www.irs.gov/uac/about-schedule-k1-form-1065)
+- [https://www.irs.gov/pub/irs-pdf/f1040se.pdf](https://www.irs.gov/pub/irs-pdf/f1040se.pdf)
+
+
+- [https://www.irs.gov/businesses/election-for-married-couples-unincorporated-businesses](https://www.irs.gov/businesses/small-businesses-self-employed/election-for-married-couples-unincorporated-businesses)
+- [https://www.irs.gov/pub/irs-drop/rp-02-69.pdf](https://www.irs.gov/pub/irs-drop/rp-02-69.pdf)  
+
+    -  An unincorporated business jointly owned by a married couple is generally classified as a partnership for Federal tax purposes. For tax years beginning after December 31, 2006, the Small Business and Work Opportunity Tax Act of 2007 (Public Law 110-28) provides that a "qualified joint venture," whose only members are a married couple filing a joint return, can elect not to be treated as a partnership for Federal tax purposes.
+    - Rev. Proc. 2002-69 addressed the issue of classification for an entity that is solely owned by husband and wife as community property under laws of a state, a foreign country or possession of the United States.
+    If there is a qualified entity owned by a husband and wife as community property owners, and they treat the entity as a:
+    Disregarded entity for federal tax purposes, the Internal Revenue Service will accept the position that the entity is disregarded for federal tax purposes.
+    Partnership for federal tax purposes, the Internal Revenue Service will accept the position that the entity is partnership for federal tax purposes.
+    A change in the reporting position will be treated for federal tax purposes as a conversion of the entity.
+    A business entity is a qualified entity if
+    The business entity is wholly owned by a husband and wife as community property under the laws of a state, a foreign country, or possession of the United States;
+    No person other than one or both spouses would be considered an owner for federal tax purposes; and
+    The business entity is not treated as a corporation under IRC §310.7701-2.
+- [http://www.sos.sc.gov/Business_Filings_FAQs](http://www.sos.sc.gov/Business_Filings_FAQs)
+  - [https://businessfilings.sc.gov/](https://businessfilings.sc.gov/)
+
+
+
+
+
+##### Financial
+
+- [https://www.firstcitizens.com/business/](https://www.firstcitizens.com/business/)
+  - [https://en.wikipedia.org/wiki/FCBSA](https://en.wikipedia.org/wiki/First_Citizens_Bank_of_South_Carolina)
+  - [https://en.wikipedia.org/wiki/First_Citizens_BancShares](https://en.wikipedia.org/wiki/First_Citizens_BancShares)
+  - [https://dailyreckoning.com/secretive-family-solid-investment/](https://dailyreckoning.com/secretive-family-solid-investment/)
+  - [https://www.bloomberg.com/research/person](https://www.bloomberg.com/research/stocks/private/person.asp?personId=1148439&privcapId=343779)
+  - [https://vimeo.com/39721749](https://vimeo.com/39721749)
+
+
+  - Depositing a check made payable to you, rather than the LLC, into the LLC's account can be accomplished in one of two ways. One way is to write "For Deposit Only" as the endorsement on the back of the check, along with the LLC's bank account number. This is called a restrictive endorsement that requires the check to go through the LLC's account. A second way is to write the endorsement as "Pay to..." and then insert the LLC's name. This is called a special endorsement, under which you endorse the check as you normally do for deposit into the LLC's account.
+
+
+
+##### Record Keeping