vault backup: 2023-01-12 21:00:06
This commit is contained in:
parent
a98210460d
commit
a267416a9c
28
.obsidian/workspace.json
vendored
28
.obsidian/workspace.json
vendored
@ -4,15 +4,19 @@
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "d2484c0cd1898ce7",
|
||||
"id": "8842c89178654d5e",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "28f1090e043b6c83",
|
||||
"id": "ea1bfb1f125294a3",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "empty",
|
||||
"state": {}
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "journals/2023_01_12.md",
|
||||
"mode": "source",
|
||||
"source": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -81,6 +85,7 @@
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "journals/2023_01_12.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
@ -97,6 +102,7 @@
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "journals/2023_01_12.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
@ -118,7 +124,9 @@
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {}
|
||||
"state": {
|
||||
"file": "journals/2023_01_12.md"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -147,17 +155,17 @@
|
||||
"command-palette:Open command palette": false
|
||||
}
|
||||
},
|
||||
"active": "28f1090e043b6c83",
|
||||
"active": "ea1bfb1f125294a3",
|
||||
"lastOpenFiles": [
|
||||
"journals/2023_01_09.md",
|
||||
"apache.md",
|
||||
"auth.md",
|
||||
"sql_server/error_handling.sql",
|
||||
"2023-01-09.md",
|
||||
"visidata.md",
|
||||
"webmin.md",
|
||||
"wekan.md",
|
||||
"telnet.md",
|
||||
"ssh.md",
|
||||
"vagrant.md",
|
||||
"virtualbox.md",
|
||||
"regex.md"
|
||||
"ssh.md"
|
||||
]
|
||||
}
|
BIN
assets/Costa_Fern_Quote_1673573313276_0.msg
Normal file
BIN
assets/Costa_Fern_Quote_1673573313276_0.msg
Normal file
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
- #poppleman
|
||||
-
|
||||
- this
|
2
journals/2023_01_12.md
Normal file
2
journals/2023_01_12.md
Normal file
@ -0,0 +1,2 @@
|
||||
- Matt Stahl has opportunity with AMK12000 with Farmers Co-Op but wants to give them a price without reviewing price lists [RE_ Your quote needs re-worked - 'Farmers - Andrew - Farmers'.msg](../assets/RE_Your_quote_needs_re-worked_-_'Farmers_-_Andrew_-_Farmers'_1673573392965_0.msg)
|
||||
- Tony talked with Eric and and Bob about Costa price of fern basket MIH09 price going to 309 after negotiation [Costa Fern Quote (1).msg](../assets/Costa_Fern_Quote_1673573313276_0.msg)
|
@ -0,0 +1,21 @@
|
||||
|
||||
Only applies to items that exist in both sets of data
|
||||
|
||||
**Change in Price**
|
||||
|
||||
( P₂ - P₁ ) Q₂
|
||||
|
||||
**Change in Quantity**
|
||||
|
||||
( Q₂ - Q₁ ) P₁
|
||||
|
||||
_To further break out change in quantity_
|
||||
|
||||
|
||||
Change in Quantity - _Volume Related_
|
||||
|
||||
Q₂ ( Q₁ / Σ ( Q₁ ) ) - Q₁
|
||||
|
||||
Change in Quantity - _Mix Related_
|
||||
|
||||
Q₂ - Q₂ ( Q₁ / Σ ( Q₁ ) )
|
4
logseq/bak/esqlate/2023-01-13T01_15_47.847Z.Desktop.md
Normal file
4
logseq/bak/esqlate/2023-01-13T01_15_47.847Z.Desktop.md
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
https://github.com/forbesmyester/esqlate
|
||||
|
||||
builds little forms out of sql
|
28
logseq/bak/git/2023-01-13T01_15_47.861Z.Desktop.md
Normal file
28
logseq/bak/git/2023-01-13T01_15_47.861Z.Desktop.md
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
Branches
|
||||
============================================
|
||||
|
||||
|
||||
### Adding Branches
|
||||
|
||||
* local: `git checkout -b <branch>`
|
||||
* remote: `git push --set-upstream <remote> <branch>`
|
||||
* track remote: `git checkout --track <origin>/<branch>`
|
||||
|
||||
### Deleting Branches
|
||||
|
||||
* local: `git branch -d <name>`
|
||||
* remote: `git push -d <remote> <name>`
|
||||
* realize remote deletes: `git remote prune <remote>`
|
||||
|
||||
### Non-Standard Activities
|
||||
|
||||
* merge only a single file into another branch `git checkout <branch> -- <file>`
|
||||
* delete from repo and file system `git rm <file>`
|
||||
* set current branch to track remote `git branch -u <origin>/<branch>`
|
||||
|
||||
Config
|
||||
=============================================
|
||||
|
||||
* set line ending behaviour `git config --global core.autocrlf true`
|
||||
* store credentials `git config credential.helper store` or `git config credential.helper cache`
|
@ -0,0 +1,2 @@
|
||||
- #poppleman
|
||||
-[[]]
|
@ -0,0 +1,2 @@
|
||||
- #poppleman
|
||||
-(())
|
@ -0,0 +1,6 @@
|
||||
- Matt Stahl has opportunity with AMK12000 with Farmers Co-Op but wants to give them a price without reviewing price lists [RE_ Your quote needs re-worked - 'Farmers - Andrew - Farmers'.msg](../assets/RE_Your_quote_needs_re-worked_-_'Farmers_-_Andrew_-_Farmers'_1673573392965_0.msg)
|
||||
:LOGBOOK:
|
||||
CLOCK: [2023-01-12 Thu 20:30:57]--[2023-01-12 Thu 20:30:58] => 00:00:01
|
||||
CLOCK: [2023-01-12 Thu 20:31:00]
|
||||
:END:
|
||||
- Tony talked with Eric and and Bob about Costa price of fern basket MIH09 price going to 309 after negotiation [Costa Fern Quote (1).msg](../assets/Costa_Fern_Quote_1673573313276_0.msg)
|
121
logseq/bak/multipass/2023-01-13T01_15_47.884Z.Desktop.md
Normal file
121
logseq/bak/multipass/2023-01-13T01_15_47.884Z.Desktop.md
Normal file
@ -0,0 +1,121 @@
|
||||
mutlipass - ubuntu vm's from canonical
|
||||
|
||||
snap install multipass --classic (apparently this option is required and allows the snap to violate it's sandbox??)
|
||||
|
||||
https://multipass.run/
|
||||
|
||||
|
||||
launch an instance:
|
||||
* `multipass launch --name ubuntu-lts`
|
||||
* `multipass stop ubuntu-lts`
|
||||
* `multipass delete ubuntu-lts-custom`
|
||||
* `multipass purge`
|
||||
* `multipass find`
|
||||
|
||||
you have to `sudo multipass shell` to get a sudo-able shell
|
||||
|
||||
|
||||
setup
|
||||
```
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list
|
||||
sudo apt update
|
||||
sudo apt -y install postgresql-12 postgresql-client-12
|
||||
|
||||
sudo apt install nginx
|
||||
sudo apt install nodejs
|
||||
sudo apt install redis
|
||||
sudo apt install npm
|
||||
sudo npm install -g n
|
||||
n lts
|
||||
|
||||
sudo su root
|
||||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
exit
|
||||
|
||||
sudo apt update
|
||||
|
||||
apt install -y \
|
||||
imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core \
|
||||
g++ libprotobuf-dev protobuf-compiler pkg-config nodejs gcc autoconf \
|
||||
bison build-essential libssl-dev libyaml-dev libreadline6-dev \
|
||||
zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev \
|
||||
nginx redis-server redis-tools postgresql postgresql-contrib \
|
||||
certbot python-certbot-nginx yarn libidn11-dev libicu-dev libjemalloc-dev
|
||||
```
|
||||
|
||||
install mastodon
|
||||
```
|
||||
adduser --disabled-login mastodon
|
||||
sudo su - mastodon
|
||||
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
||||
cd ~/.rbenv && src/configure && make -C src
|
||||
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
||||
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
|
||||
exec bash
|
||||
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
|
||||
|
||||
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.6.5
|
||||
rbenv global 2.6.5
|
||||
gem update --system
|
||||
gem install bundler --no-document
|
||||
exit
|
||||
|
||||
sudo -u postgres psql
|
||||
CREATE USER mastodon CREATEDB;
|
||||
\q
|
||||
|
||||
git clone https://github.com/tootsuite/mastodon.git live && cd live
|
||||
git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)
|
||||
|
||||
|
||||
bundle install \
|
||||
-j$(getconf _NPROCESSORS_ONLN) \
|
||||
--deployment --without development test
|
||||
yarn install --pure-lockfile
|
||||
```
|
||||
|
||||
need to set database credentials before the env file is built
|
||||
```
|
||||
sudo su postgres
|
||||
psql
|
||||
alter role mastodon password 'mastodon';
|
||||
\q
|
||||
|
||||
sudo vim //etc/redis/redis.conf
|
||||
requirepass password
|
||||
```
|
||||
|
||||
|
||||
```
|
||||
RAILS_ENV=production bundle exec rake mastodon:setup
|
||||
```
|
||||
this will prompt a bunch of setting, after a while mail from localhost = no
|
||||
this will prompt smtp setup
|
||||
```
|
||||
|
||||
compilation failed, complained about memory
|
||||
|
||||
setup nginx files:
|
||||
```
|
||||
cp /home/mastodon/live/dist/nginx.conf /etc/nginx/sites-available/mastodon
|
||||
ln -s /etc/nginx/sites-available/mastodon /etc/nginx/sites-enabled/mastodon
|
||||
```
|
||||
|
||||
then you have to replace example.com with a target domain in the nginx files
|
||||
using vim -> `:%s/example.com/hptrow.me`
|
||||
|
||||
|
||||
copy sevice files:
|
||||
```
|
||||
cp /home/mastodon/live/dist/mastodon-*.service /etc/systemd/system/
|
||||
```
|
||||
|
||||
setup load services
|
||||
```
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl start mastodon-web mastodon-sidekiq mastodon-streaming
|
||||
sudo systemctl enable mastodon-*
|
36
logseq/bak/nodejs/2023-01-13T01_15_47.938Z.Desktop.md
Normal file
36
logseq/bak/nodejs/2023-01-13T01_15_47.938Z.Desktop.md
Normal file
@ -0,0 +1,36 @@
|
||||
version management
|
||||
===================================================================================================================================
|
||||
|
||||
## nvm
|
||||
|
||||
can use nvm to manage nodejs versions.
|
||||
not really sure how this works, but it is per user and operates off bash scripts and variables
|
||||
|
||||
going to have to pull from github. It will curl to clone the repo and then add some stuff to your bashrc to make it work.
|
||||
`exec bash` after install to refresh
|
||||
|
||||
nvm install --lts
|
||||
nvm use version
|
||||
|
||||
## npm n helper
|
||||
|
||||
npm can be used to manage node itself through n
|
||||
https://github.com/tj/n
|
||||
|
||||
sudo npm cache clean -f
|
||||
|
||||
|
||||
1. setup & *own* directyory with versions
|
||||
* `sudo mkdir -p /usr/local/n`
|
||||
* `sudo chown -R $(whoami) /usr/local/n`
|
||||
2. own the instalation folders
|
||||
* `sudo chown -R $(whoami) /usr/local/bin /usr/local/lib /usr/local/include /usr/local/share`
|
||||
3. install n: `sudo npm install -g n`
|
||||
|
||||
|
||||
## upgrading npm in windows
|
||||
`npm install -g npm-windows-upgrade`
|
||||
or just download from the wesite
|
||||
|
||||
## npm
|
||||
to update npm do `npm install npm@latest -g`
|
4
logseq/bak/sc/2023-01-13T01_15_48.252Z.Desktop.md
Normal file
4
logseq/bak/sc/2023-01-13T01_15_48.252Z.Desktop.md
Normal file
@ -0,0 +1,4 @@
|
||||
to open a csv file in sc
|
||||
`cat file.csv | psc -k -d, | sc`
|
||||
|
||||
sc-im supposedly does a better job with csv, but have not been able to get it to compile
|
7
pages/Contents.md
Normal file
7
pages/Contents.md
Normal file
@ -0,0 +1,7 @@
|
||||
- Database tech
|
||||
- [[postgres]]
|
||||
- [[pgbdager]]
|
||||
- [[pghero]]
|
||||
- Ubuntu Related
|
||||
- [[users]]
|
||||
- [[hard_disks]]
|
@ -1,4 +1,4 @@
|
||||
This is our current approach to quoting new and repeat business alike:
|
||||
- This is our current approach to quoting new and repeat business alike:
|
||||
|
||||
![[Price Guidance Application.png]]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user