Skip to content

Instantly share code, notes, and snippets.

@lalyos
Last active December 1, 2025 10:02
Show Gist options
  • Select an option

  • Save lalyos/983b5eb96bcd802832d92128997ff4df to your computer and use it in GitHub Desktop.

Select an option

Save lalyos/983b5eb96bcd802832d92128997ff4df to your computer and use it in GitHub Desktop.

Test Page

Setting up git push

get deploy key to clipboard

# private key is in /space dir now
## op read "op://Employee/silver.k3z.eu/gh-deploy-key"|pbcopy
apk add openssh-client git 

#cat > ~/.ssh/id_ed25519 <<EOF
#chmod 600 ~/.ssh/id_ed25519
cp /space/id_ed25519 ~/.ssh/

ssh git@github.com
# Hi lalyos/silverbullet!

alias gl='git log --date=short --pretty=format:"%h %Cblue%ad%Creset %an %Cred%d %Cgreen%s%Creset" --graph'
alias gs='git status'

make a naked /space into a proper git repo

mkdir -p \
  .git/objects/{info,pack} \
  .git/refs/{tags,heads} \
  ./git/{info,hooks,branches}
  
echo 'ref: refs/heads/master' > .git/HEAD
echo W2NvcmVdCglyZXBvc2l0b3J5Zm9ybWF0dmVyc2lvbiA9IDAKCWZpbGVtb2RlID0gdHJ1ZQoJYmFyZSA9IGZhbHNlCglsb2dhbGxyZWZ1cGRhdGVzID0gdHJ1ZQpbcmVtb3RlICJvcmlnaW4iXQoJdXJsID0gZ2l0QGdpdGh1Yi5jb206bGFseW9zL3NpbHZlcmJ1bGxldC5naXQKCWZldGNoID0gK3JlZnMvaGVhZHMvKjpyZWZzL3JlbW90ZXMvb3JpZ2luLyoKW2JyYW5jaCAibWFzdGVyIl0KCXJlbW90ZSA9IG9yaWdpbgoJbWVyZ2UgPSByZWZzL2hlYWRzL21hc3Rlcgo= | base64 -d > .git/config

or with git commands:

git init && git remote add origin git@github.com:lalyos/silverbullet.git && git fetch && git branch -u origin/master && git reset origin/master

Space lua

for silverbuller share/export features

templates.fullPageItem()


...

Some list

  • one
  • two
  • three
  • four
demo = {}

function demo.first()
  person = {
    {name="jeno", age=12, money=2},
    {name="bela", age=42, money=30},
    {name="geza", age=77, money=81}
  }
  
  return person
end

#contact

name: jeno
age: 43

${ demo.first() }

${shell.run("echo",{"12345"})}

msg="Hello"
print(msg)

mark = { name="Mark", age=44}

function greet(person)
  return "Hello" .. person
end

${mark}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment