Skip to content

Instantly share code, notes, and snippets.

View victorkane's full-sized avatar

Victor Kane victorkane

View GitHub Profile
@victorkane
victorkane / dd-list-content-by-content-type.php
Last active March 3, 2021 13:03
DurableDrupal Content Migration Rescue content inventory and extraction scripts
#!/usr/local/bin/drush
# place system drush PATH on shabang!
##!/usr/bin/drush
/**
* dd-list-content-by-content-type.php
* list content types.
* see https://drupal.stackexchange.com/questions/97642/how-can-i-get-a-list-of-content-types-with-drush
*
* While this functionality is more readily available via
@victorkane
victorkane / crawler.sh
Created March 2, 2021 13:05 — forked from xymox12/crawler.sh
Convert a csv of URLs and Page Titles created using WGET to Freemind XML and UL list
#!/bin/bash
#
# Crawls a domain
# Retreives all visible URLs and their page titles
# Saves to CSV
# $1 = URL (no http(s))
# $2 = csv title
# MODIFY - wget include directories, domain, and --reject-regex TODO - make a variable
# Text color variables
@victorkane
victorkane / find-broken-links.sh
Created March 2, 2021 11:41
Alain Kelder's Little shell script to recursively check a site for broken links copied from http://giantdorks.org/alain/little-shell-script-to-recursively-check-a-site-for-broken-links/
@victorkane
victorkane / userstyle.css
Last active February 23, 2020 13:37
My custom styles for Joplin (Joplin 1.0.179 (prod, darwin)), the open source note taking app
.table-of-contents {
/* shrink font and line height */
font-size: 12px;
line-height: 1em;
/* fix toc height and make scrollable */
overflow-y: auto;
height: 18em;
}
#joplin-container-content h1 {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.0/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.3/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.3/react-dom.js">
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
@victorkane
victorkane / index.html
Created April 19, 2016 00:55
JS DOM assignment (ToDo list in pure JavaScript)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>TODO List (tasks)</title>
<style>
.todo-done {
text-decoration: line-through;
<!DOCTYPE html>
<html>
<head>
<style>
#header {
background-color:#000000;
color:#ccc000;
text-align:center;
padding:5px;
}
<!DOCTYPE html>
<html>
<body>
<div style="float:left;width:44%;background-color:black; color:white; padding:2%;">
<h2>London</h2>
<p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
</div>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
<script src="https://fb.me/react-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
</head>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
'use strict';