]> git.quilime.com - quilime.com.git/commitdiff
Add Makefile main
authorGabriel Dunne <gdunne@quilime.com>
Mon, 4 Sep 2023 02:33:16 +0000 (19:33 -0700)
committerGabriel Dunne <gdunne@quilime.com>
Mon, 4 Sep 2023 02:33:16 +0000 (19:33 -0700)
13 files changed:
Makefile [new file with mode: 0644]
_config.yml
_includes/about.md
_layouts/index.html
_posts/cli/2009-04-23-bash-imageslice.md
_posts/cli/2011-04-16-ssh_keys.md.md
_posts/cli/2011-11-09-osx_command_line_audio.md
_posts/cli/2023-08-03-srv.md [new file with mode: 0644]
_posts/snippets/2007-12-12-mel-notepad.md
_posts/snippets/2009-06-12-mel-sphere_intersect.md
css/highlight.css
publish [deleted file]
serve [deleted file]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..b2fbea7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+.PHONY: init install dev build push clean publish
+
+init:
+       bundle init
+       bundle add jekyll --version "~>4.2"
+
+install:
+       bundle config set --local path 'vendor/bundle'
+       bundle install
+       bundle update
+
+dev:
+       bundle exec jekyll serve --livereload --port 4000
+
+build:
+       bundle exec jekyll build --config _config.yml
+       
+push:
+       git push
+       git push quilime
+       git push gitea
+       git push local
+
+clean:
+       rm -rf _site
+               
+
+DEST := quilime@quilime.com:/home/quilime
+publish: 
+       make clean
+       make build
+       rsync -varz _site/ $(DEST)/quilime.com/public/ --delete
index 7e15103ee5ed77aba05e7c16e58d06926ce48348..388900993bb7257c10a66e4e23d9fa755fd0b13a 100644 (file)
@@ -1,5 +1,6 @@
 title: quilime.com
 name: quilime
+analytics: 276ecb7f-7ea5-4d5b-9c59-991116fd22e6
 baseurl: ""
 url: "https://quilime.com"
 excerpt_separator: "<!--more-->"
@@ -10,7 +11,6 @@ kramdown:
   input: GFM
 highlighter: rouge
 
-
 plugins:
   - jekyll-feed
   - jekyll-paginate
index cfbf7e87ef31f2feb6500d1e0f5f0f79bb42ad2d..f19a10cf96b0ad328aac38be824f0becf3231773 100644 (file)
@@ -1,4 +1,4 @@
-Welcome to `quilime.com` &mdash; a blog of open source projects, code snippets, and command line notes.
+`quilime.com` is a blog of open source projects, code snippets, and command line notes.
 
 You can also view my [personal website](https://gabrieldunne.com), and [github](https://www.github.com/quilime).
 
index 928376b47804205d6e07f38339f1799e5b950b35..c16fce31ece4f8969e32762ae0612811ad3ce418 100644 (file)
@@ -7,8 +7,12 @@
 
     <link rel="stylesheet" href="/css/style.css" type="text/css">
     <link rel="stylesheet" href="/css/highlight.css" type="text/css">
+    <link rel="alternate" type="application/rss+xml" title="quilime.com" href="https://quilime.com/feed.xml">
+
     <meta name="viewport" content="width=device-width, initial-scale=1" />
 
+    <script async src="https://a.elev.us/script.js" data-website-id="{{ site.analytics }}"></script>
+
   </head>
   <body>
 
index 114df66ceb8066f6dfb37a6391ef5dba82f0fda1..a83bca266529a2ba9d45bf90382522b025ef2b87 100644 (file)
@@ -7,14 +7,11 @@ category: cli
 layout: post
 ---
 
-Shell script that slices a single image into any number of vertical and horizontal sections.
-
+Shell script that slices a single image into any number of vertical and horizontal sections. Using [ImageMagik `convert`](https://imagemagick.org/script/convert.php)
 
 
 ```bash
-
 #!/bin/bash
-# @author  gabriel dunne <quilime.com>
 
 IMAGE=$1
 IMAGE_W=$2
index 72aed493f8a50f58b21d8fc821a43fb755e4c499..44d02b2e0d686336827009d595e4fb3d7d96a3cf 100644 (file)
@@ -4,12 +4,14 @@ title: "create ssh keys"
 date: 2011-04-16
 category: cli
 ---
-<pre class="prettyprint">
+```bash
 ssh-keygen -t rsa
-// linux
+
+# linux
 ssh-copy-id [user@]host
-// osx
+
+# macos
 cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys"
 eval `ssh-agent`
 ssh-add
-</pre>
+```
index c65b5d0d76648fc200be3ee37a23e95c210f9a5d..4b53cfa0f8539e8881c1e6a0da039b5a26a42149 100644 (file)
@@ -17,22 +17,27 @@ install <a href="http://mxcl.github.com/homebrew/">homebrew</a>, and then instal
 ## examples
 
 cat audio from /dev/urandom/ :
-<pre class="prettyprint">cat /dev/urandom | sox -traw -r44100 -b16 -u - -tcoreaudio</pre>
+```bash
+cat /dev/urandom | sox -traw -r44100 -b16 -u - -tcoreaudio
+```
 
 
-audio from an executable
-<pre class="prettyprint">
-cat > test.c
+new file `test.c`
+
+```c
+# test.c
 main(t) {
   for( t = 0;;t++)
     putchar( t * ((( t >> 12 ) | (t >> 8)) & (63& (t >> 4 ))));
 }
-</pre>
-[ctrl-c]
-<pre class="prettyprint">
+```
+
+run
+
+```bash
 gcc test.c -o test
 ./test | sox -traw -r8000 -b8 -u - -tcoreaudio
-</pre>
+```
 
 
 
diff --git a/_posts/cli/2023-08-03-srv.md b/_posts/cli/2023-08-03-srv.md
new file mode 100644 (file)
index 0000000..3c66746
--- /dev/null
@@ -0,0 +1,59 @@
+---
+title: "server"
+date: 2023-08-03
+category: cli
+---
+
+
+- Intel nuc i3
+- CPU: Intel i3-3217U (4 core) @ 1.7 GHz 
+- Memory: 16Gb
+- OS: Manjaro Linux x86_64 
+- Shell: zsh
+
+
+
+## packages
+
+- [mosh](https://mosh.org/) roaming ssh sessions
+- [tmux](https://github.com/tmux/tmux/wiki) terminal multiplexer 
+- [zerotier](https://www.zerotier.com/) vpn 
+- [resilio sync](https://www.resilio.com/) file sync
+- [keepasstouch](https://keepassxc.org/) password safe 
+
+<!-- 
+## installation 
+
+from desktop
+
+```sh
+# gen and copy ssh key to server
+ssh-keygen -t rsa
+ssh-copy-id [user@]host
+
+# ssh into server
+ssh user@server
+```
+
+Arch setup
+```sh
+# arch setup
+
+# enter into root
+sudo -i
+
+# update and sync all packages
+pacman -Syu mosh tmux
+
+# install packges
+
+
+```
+
+Ubuntu Setup
+```sh
+# ubuntu setup
+```
+
+
+ -->
\ No newline at end of file
index d4b2f723d45b3dd843274c0a08b22bf44911993d..a5e654b1b9475c8cc4de64dba9531501a5e6d855 100644 (file)
@@ -7,41 +7,42 @@ category: snippets
 
 mel notepad with various code snippets
 
-
+## nodes
 
 process selection list
-<pre class="prettyprint lang-mel">string $select[] = `ls -sl`;
+
+```php
+string $select[] = `ls -sl`;
 for ( $node in $select ) // process each
 {
    /* ... */
 }
-</pre>
-
-<br />
+```
 
 if node exists
-<pre class="prettyprint lang-mel">
+
+```php
 string $node = "object";
 if ( `objExists $node` )
 {
    // The node exists
 }
-</pre>
+```
 
-<h2>regexp</h2>
+## regexp
 
 Strip component
-<pre class="prettyprint lang-mel">
+
+```php
 string $node = "pCube1.f[2]";
 string $no_component = `match "^[^\.]*" $node`;
 // Result: "pCube1" //
-</pre>
+```
 
-<!--more-->
 
-<br />
 Extract component or attribute, with '.'
-<pre class="prettyprint lang-mel">
+
+```php
 string $node = "pCube1.f[2]";
 string $component = `match "\\..*" $node`;
 // Result: ".f[2]" //
@@ -49,12 +50,12 @@ string $component = `match "\\..*" $node`;
 string $nodeAttr = "blinn1.color";
 string $attrName = `match "\\..*" $nodeAttr`;
 // Result: ".color" //
-</pre>
+```
 
-<br />
 Extract attribute name, without '.'
 
-<pre class="prettyprint lang-mel">
+
+```php
 string $node = "pCube1.f[2]";
 string $component = `substitute "^[^.]*\\." $node ""`;
 // Result: "f[2]" //
@@ -62,68 +63,67 @@ string $component = `substitute "^[^.]*\\." $node ""`;
 string $nodeAttr = "blinn1.color";
 string $attrName = `substitute "^[^.]*\\." $nodeAttr ""`;
 // Result: "color" //
-</pre>
+```
 
-<br />
 Extract parent UI control from full path
-<pre class="prettyprint lang-mel">
+
+```php
 string $uiControl = "OptionBoxWindow|formLayout52|formLayout55|button6";
 string $uiParent = `substitute "|[^|]*$" $uiControl ""`;
 // Result: OptionBoxWindow|formLayout52|formLayout55 //
-</pre>
+```
+
+Strip trailing Line Break (\n), if any.This is useful when processing text input read from a file using `fgetline`.
 
-<br />
-Strip trailing Line Break (\n), if any. <br /><br />This is useful when processing text input read from a file using `fgetline`.
-<pre class="prettyprint lang-mel">
+```php
 string $input = "line\n";
 $string $line = `match "^[^(\r\n)]*" $input`;
 // Result: "line" //
-</pre>
+```
 
-<br />
 Extract directory from path.
-<br /><br />
 Keep the trailing slash for ease of use.
-<pre class="prettyprint lang-mel">
+
+```php
 string $path = "C:/AW/Maya5.0/bin/maya.exe";
 string $dir = `match "^.*/" $path`;
 // Result: "C:/AW/Maya5.0/bin/"
-</pre>
+```
 
-<br />
 Extract file from path
-<pre class="prettyprint lang-mel">
+
+```php
 string $path = "C:/AW/Maya5.0/bin/maya.exe";
 string $filepart = `match "[^/\\]*$" $path`;
 // Result: "maya.exe"
-</pre>
+```
 
-<br />
 Strip numeric suffix
-<pre class="prettyprint lang-mel">
+
+```php
 
 string $node = "pCube1|pCubeShape223";
 string $noSuffix = `match ".*[^0-9]" $node`;
 // Result: "pCube1|pCubeShape"
-</pre>
+```
 
-<br />
 Extract numeric suffix
-<pre class="prettyprint lang-mel">
+
+```php
 string $node = "pCube1|pCubeShape223";
 string $suffix = `match "[0-9]+$" $node`;
 // Result: "223" //
-</pre>
+```
 
-<br />
 Extract short name of DAG or control path
-<pre class="prettyprint lang-mel">
+
+```php
 string $dagPath = "pCube1|pCubeShape223";
 string $shortName = `match "[^|]*$" $dagPath`;
 // Result: pCubeShape223 //
-</pre>
+```
 
-<h2>more references</h2>
+## more references
 
 - [https://danielfaust.github.io/ewertb/maya.html](https://danielfaust.github.io/ewertb/maya.html)
 
index 5211b91f9460e867c4f67a6210432dee63ef09f6..9672be2d5b3cccb0ba1fbabcef9008ad7daba28e 100644 (file)
@@ -6,18 +6,14 @@ lang: mel
 layout: post
 category: snippets
 ---
-<p>
+
 Function to return location of intersect with poly mesh and spherical object moving in the positive direction on the Y axis.
-<br/>
-</p>
 
 <!--more-->
 
-<h2>
-mel source
-</h2>
+## mel source
 
-```bash
+```php
 global proc intersectSphereY()
 {
        print(". . . . . go go go\n");
index 4bee9b397c4db0e8ed4ede948a31cb030a976684..c9b0c7a5604ea5d20ecc4ce8a4ad09474a4a5875 100644 (file)
@@ -1,7 +1,7 @@
 .highlight table td { padding: 5px; }
 .highlight table pre { margin: 0; }
 .highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
-  color: #5e5d83;
+  color: #5F749B;
   font-style: italic;
 }
 .highlight .cm {
diff --git a/publish b/publish
deleted file mode 100755 (executable)
index ddd8cf7..0000000
--- a/publish
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-echo "Building..."
-rm -rf _site
-bundle exec jekyll build --config _config.yml
-echo "Syncing..."
-rsync -varz _site/ quilime@quilime.com:/home/quilime/quilime.com/public/ --delete $EXCLUDE
diff --git a/serve b/serve
deleted file mode 100755 (executable)
index 414c0c7..0000000
--- a/serve
+++ /dev/null
@@ -1 +0,0 @@
-bundle exec jekyll serve