Skip to content

Instantly share code, notes, and snippets.

@NateFerrero
NateFerrero / Peace in Jerusalem.md
Created September 6, 2024 04:11
Pure Positive Pathway to Peace

Something new, a new understanding of Jerusalem arises. The Holy City, filled with the clarity of spiritual knowledge. Nothing must touch her. No person is to violate her daytime, nor her nighttime.

Because of this, I seek peace. I seek peace with those near, and peace with those far. For humanity to operate at peak precision, no one must interfere with the peace of Jerusalem. The people in Jerusalem may come and go as God directs, and Jerusalem itself, the land, is sacred ground.

Jerusalem is a place where some of the oldest memories known to humanity continue to exist. Any type of surface conflict disturbs the preservation of these sacred memories.

@NateFerrero
NateFerrero / git-aliases.sh
Last active August 29, 2015 14:21
Git Aliases
# Git
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
alias gx='git clone'
alias ga='git add'
alias gw='git show'
alias gc='git commit'
alias gd='clear; git diff --color'
alias gd.='clear; git diff --color HEAD^'
alias gg='clear; more .git/config'
@NateFerrero
NateFerrero / spec
Created April 8, 2015 19:23
Single Character Language Specification
a
b
c condition
d delete
e each
f
g group
h help
i in
j json
@NateFerrero
NateFerrero / batch.js
Last active August 29, 2015 14:17
Exploration into a batch() function for promises.
var number = function (num) {
return new Promise(function (resolve, reject) {
if (typeof num !== 'number') {
reject('invalid type');
}
setTimeout(function () { resolve(num); }, 2000);
});
};
var batch = function () {
@NateFerrero
NateFerrero / samba.conf
Created February 8, 2014 04:46
Samba Live Share
[live]
path = /mnt/live
available = yes
valid users = ubuntu
read only = no
browsable = yes
public = yes
writable = yes
@NateFerrero
NateFerrero / authorized_keys
Created December 2, 2013 03:05
Authorized Keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCy3BAqvvN5NEKIHVwj/IUJPzmgG6jwpUBgcJOE2JWGm9pAWSfyr0c6jZ83MLRPZ9T3aSeRDJxx2XKeiZnE8h5nODVNb0MSzrjs6z5ONPeCNaD8zZ6CCX/4e2IL0uzfBe3vQWcVQ8t9Iq/l8I0P2BJWqOjeoAHNnyX1k/9O29DbP89dfUCmbKHOBfby8NCxBc1nNoUGu2p7OlD17CgGPrxFk7tlZGyxowe4IlVjm1SstOvKty+xsxJsAK4ZOl+Cx8aw2ZkCSIqjIIL0eAA75/tRjxqZFeT8hHyTP2ffI2k5znxKCYjq0g7/aVxjvXXhTAtyxzXXwOdZC2sdZOn3GsmZ nate@Nates-MacBook-Pro.local
@NateFerrero
NateFerrero / index.php
Last active December 15, 2015 14:58
A 10-line SimplifiedPHP File storage blog engine. No line over 80 characters.
t: 'textarea', dir: 'data/', ext: '.txt', f: Request.form, ? Request.method = {
"POST": File(dir (f.slug) ext).write(f.text), Router.redirect('?')}
'<h1>My SimplifiedPHP Blog</h1><form action="?"><h5>New Post:</h5>Post slug:
<input name="slug" /><br/><'t' name="text" cols=60 rows=20></'t'><br/>
<input type="submit" /></form><hr/>'.print, slug: Request.args.slug, ? slug = {
Void: Directory(dir).each{'<a href="?slug=' Path(it).name '">' \
File(it).string.lines[0] '</a><br/>'.print}
*: {'<a href="?">&lauqo; All Posts</a>'.print
File(dir post ext).string.lines.each ? key = {0: '<h2>' it '</h2>'.print
*: '<p>' it '</p>'.print}}}
@NateFerrero
NateFerrero / nate_ferrero.pub
Created November 27, 2012 23:32
Nate's Public Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwIu8b+KSOiC4zUZZvSV+u7R8+Hb8d5oaX+P1tdhZhQqybXj1tkz3qncbxoV9Dxdxjlc9IuBwJejve6h9U8VM+4zN9mBr1M+I/jZTryNAvpqB3rb1qB7zndvxLYlO2/8AAjfr3Mmm0rL3k++BBgo3ibeUusYbFuePW1grwRDPM9GsIRUfurWqUvgKX74C0oIur1nUWMfFdf88H5PGUfr3t3+nAlIqAQBBQxVk6r4gQqYP1jCy/dVQSB5iQYllNLMTalreIdjx21SjVTQFTDQGwWa/yAqIa3rYnbVQoBLIe4YI/L8Hv462+q8HdycOQiaPbE5Q1l9utKa0+rsU/g4/z administrator@nate-grapheffect.local
@NateFerrero
NateFerrero / pub_key_rsa
Created July 24, 2012 22:48
Nate's Pubkey
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDEBcAvxSugPwybhw6LylgEhyH4dvtj2KjBz4dQoYEX1Nk4iUWRaF5Ok5SVTrzYgXBYnoZ5bqmQPdVaOrI6YX6nc+fvh73xJ/pke3NcPQPOeYz//uPexjwKfkVm3ukJwO4aKSQBo5MnVI6lyDiv7rug/uvujUGdpouTS3eOHtINwV6Om04EBNtVKz5D1g7dKPQpJ+oG5On7Y2pn9SFVTZHmgR6Nl5BojKKYu3/i1ahG56+NUExEIwZ9lu5/CyZF3xa45fBbG+ojySwSS8mIraD1Ir/oRXn2WFwDh6NTCgBvkov4P1ONPT6Lz7cj84KNdgwq2KKxGHJbBSINqj3sRwl1 nate@Nates-MBP.local
@NateFerrero
NateFerrero / prompt.sh
Created April 24, 2012 17:32
ZSH Prompt
PROMPT='%{$fg[red]%}%n%{$reset_color%}%{$fg[gray]%}@%m%{$reset_color%}%{$fg[cyan]%} %~%{$reset_color%} %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[black]%}: %{$reset_color%}'