Skip to content

Instantly share code, notes, and snippets.

a{
cursor: url(../images/cursor-custom.png) 10 0, auto;
cursor: url('../images/cursor-arrow.png') 10 0, auto;
cursor: -webkit-image-set(
url('../images/cursor-custom.png') 1x,
url('../images/bigger/cursor-custom.png') 2x
) 10 0, auto;
}
@leigler
leigler / cookie-js.js
Last active November 6, 2017 22:41
Cookie logic using Cookie.js
@leigler
leigler / digitalocean-dokku-kirby.md
Last active April 24, 2024 12:03
set up for digital ocean dokku install for kirby
  • This document references this post with a few updates regarding the git remote set up

Install

  1. set up digital ocean droplet w/ dokku installed
  • add ssh key ssh-keygen -t rsa
  • with proper dns configured w/ url: (first set up the url by following these directions)
  • go to your droplet's IP address and give the app url your hostname
  • add two A records, (@ and *) to direct the url to your IP address (this can be done w/ digital ocean's dns or with the dns managing the domain. For staging, you'll only need to set up one A record pointing towards your subdomain)

(assuming rbenv + bundler are installed):

  1. bundle init
  2. bundle add jekyll
  3. touch _config.yml
  4. touch index.md
  5. mkdir _includes
  6. mkdir _layouts
  7. mkdir assets
  8. jekyll build or jekyll serve

change the files to chmod 644 and folders to 755:

  • .htaccess to 644: chmod 644 .htaccess
  • index.php to 644: chmod 644 index.php
  • panel/ to 755: chmod 755 panel/
  • panel/index.php to 644 chmod 644 panel/index.php

chmod can be edited through ssh: chmod XXX filepath

sudo killall VDCAssistant

@leigler
leigler / .babelrc
Last active November 13, 2018 17:37
node app with preact build, using the webpack bundler, and babel compiler
{
"presets": ["@babel/preset-env"],
"plugins":[
["@babel/transform-react-jsx", {"pragma" : "h"}]
]
}
@leigler
leigler / meta-tags.md
Last active February 25, 2019 14:53
list of minimal meta tags
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, user-scalable=no">
  
	<meta name="description" content="" />
	<meta name="keywords" content="">

  <!-- Schema.org markup for Google+ -->
	<meta itemprop="name" content="">
	<meta itemprop="description" content="">
@leigler
leigler / safari_footer.js
Last active April 8, 2020 16:04
safari mobile fixed footer bug function

SFTP cli notes

Establishing a connection

sftp root@your_server_ip

Commands

  • help or ?
  • exit bye