Skip to content

Instantly share code, notes, and snippets.

View ojame's full-sized avatar

James Coleman ojame

View GitHub Profile
@ojame
ojame / delete.js
Created June 29, 2017 05:47
Delete all movies that haven't been 'downloaded' in Radarr. Mass/bulk deleting.
// Go to Radarr and click 'settings' => 'general'.
// Open the JavaScript Console in Google Chrome (View => Developer => Javascript Console)
// Past the following in. Hit enter and away you go.
const key = document.getElementsByClassName('x-api-key')[0].value;
if (!key) {
alert('Navigate to /settings/general and run again');
}
@ojame
ojame / processor.sh
Created November 26, 2019 23:21
Webflow to FTP/external host
####
# -i the location of the zip file from webflow
# -u the username of the sftp user for wpengine
#
# example: ./webflow-processor.sh -i
####
while getopts "i:u:" OPTION
do
case $OPTION in
var input = '49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d';
var result = 'SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t';
function hexToPT(hex) {
var str = '';
for (var i = 0; i < hex.length; i += 2) {
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
}
@media only screen and (min-width: 641px) {
#header #logoWrapper, #header #logoImage {
width: 100%;
max-width: 250px;
}
}
@ojame
ojame / heading.js
Last active November 5, 2015 07:44
import React, {Component, PropTypes} from 'react';
import cx from 'classnames';
import styles from './wherever';
export default class Heading extends Component {
static propTypes = {
level: PropTypes.oneOf(1, 2, 3, 4, 5, 6).isRequired,
theme: PropTypes.oneOf('macropod', 'bugherd'),
};
css:
.kitchen {
color: red;
text-decoration: none;
}
.kitchen :global(.blender) {
color: black;
font-weight: bold;
function createGifPostToSlack(fs, request, createImageSizeStream, easyimg, GIFEncoder, pngFileStream, browserString, browserName) {
var imageWidth;
var imageHeight;
var screenshotsPath = 'tests/screenshots/'+browserName+'/';
var resultPath = screenshotsPath+'result.gif';
var resultPathCompressed = screenshotsPath+'result_compressed.gif';
var stream;
var makeGif = function() {
var encodeGif = function(width, height) {
<a href="index.html">
<h1>
<img src="images/logo.png" class="updatedlogo" alt="Jess Mundy - Personal Stylist" />
</h1>
</a>
'use strict';
const React = require('react');
const InputWrapper = require('./input-wrapper');
const Widgets = require('react-widgets');
require('./input-tag.scss');
module.exports = React.createClass({
displayName: 'InputTag',