Skip to content

Instantly share code, notes, and snippets.

View richjava's full-sized avatar

Richard Lovell richjava

View GitHub Profile
@richjava
richjava / footer.php
Last active March 7, 2016 07:32
Wordpress Theme Development task 1 - Basic custom theme
@richjava
richjava / footer.php
Last active March 7, 2016 07:30
Wordpress Development task 2: Basic one-page theme with separate pages
<!DOCTYPE html>
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div onclick="playDogSound()">Play dog sound</div>
<script>
@richjava
richjava / cordova-keystore
Created September 9, 2017 08:02 — forked from rocco/cordova-keystore
cordova/phonegap: create keystore (to sign apk)
# create keystore
keytool -genkey -v -keystore [somename].keystore -alias [somename] -keyalg RSA -keysize 2048 -validity 10000
# follow instructions
# to keep things simple, use [somename] for .keystore file name and alias too
# same for password: just press enter on this prompt:
# ---------------------------------------------------
# Enter key password for <[somename]>
# (RETURN if same as keystore password):
@richjava
richjava / gist:ea0d447496ae5ec2c5c8319bbed1680c
Last active September 27, 2020 22:03
Create Netlify site from repo
const netlifySitesUrl = `https://api.netlify.com/api/v1/sites`;
let netlifyRes = await axios.post(
netlifySitesUrl + `?access_token=${netlifyAccessToken}`,
{
repo: {
provider: "github",
id: repoInfo.data.id,
repo: `${repoInfo.data.owner.login}/${repoInfo.data.name}`,
private: false,
branch: "master",