Compare commits

..

2 Commits

Author SHA1 Message Date
e4b55280ee vault backup: 2023-01-12 21:00:08 2023-01-12 21:00:08 -05:00
a267416a9c vault backup: 2023-01-12 21:00:06 2023-01-12 21:00:06 -05:00
16 changed files with 252 additions and 16 deletions

View File

@ -4,15 +4,18 @@
"type": "split", "type": "split",
"children": [ "children": [
{ {
"id": "d2484c0cd1898ce7", "id": "8842c89178654d5e",
"type": "tabs", "type": "tabs",
"children": [ "children": [
{ {
"id": "28f1090e043b6c83", "id": "ea1bfb1f125294a3",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "empty", "type": "diff-view",
"state": {} "state": {
"file": "logseq/bak/esqlate/2023-01-13T01_15_47.847Z.Desktop.md",
"staged": true
}
} }
} }
] ]
@ -147,17 +150,17 @@
"command-palette:Open command palette": false "command-palette:Open command palette": false
} }
}, },
"active": "28f1090e043b6c83", "active": "ea1bfb1f125294a3",
"lastOpenFiles": [ "lastOpenFiles": [
"journals/2023_01_12.md",
"journals/2023_01_09.md",
"apache.md",
"auth.md",
"sql_server/error_handling.sql", "sql_server/error_handling.sql",
"2023-01-09.md", "2023-01-09.md",
"visidata.md", "visidata.md",
"webmin.md", "webmin.md",
"wekan.md", "wekan.md",
"telnet.md", "telnet.md"
"ssh.md",
"vagrant.md",
"virtualbox.md",
"regex.md"
] ]
} }

Binary file not shown.

View File

@ -1,2 +1,2 @@
- #poppleman - #poppleman
- - this

2
journals/2023_01_12.md Normal file
View 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)

View File

@ -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₁ ) )

View File

@ -0,0 +1,4 @@
https://github.com/forbesmyester/esqlate
builds little forms out of sql

View 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`

View File

@ -0,0 +1,2 @@
- #poppleman
-[[]]

View File

@ -0,0 +1,2 @@
- #poppleman
-(())

View File

@ -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)

View 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-*

View 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`

View 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
View File

@ -0,0 +1,7 @@
- Database tech
- [[postgres]]
- [[pgbdager]]
- [[pghero]]
- Ubuntu Related
- [[users]]
- [[hard_disks]]

View File

@ -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]] ![[Price Guidance Application.png]]