Skip to content

Instantly share code, notes, and snippets.

View fribibb's full-sized avatar

Tim Hurley fribibb

View GitHub Profile
<!-- From https://codepen.io/thomashigginbotham/pen/aYqvqQ -->
<style>
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700");
body {
font-family: 'Open Sans', sans-serif;
}
details {
margin: 1rem;
}
/* https://codepen.io/irksum/pen/qxbarb */
@supports ( (--plx: 0) and (position: sticky) ) {
:root {
--plx-perspective: 1;
}
.parallax {
position: sticky;
width: 100vw;
height: 100vh;
ul.social-media-links-circle {
list-style: none;
margin: 0 0 25px;
text-align: center;
li {
display: inline-block;
margin-left: 10px;
a {
background-color: $grey-light;
border-radius: 100%;
@fribibb
fribibb / wordpress-force-login.php
Created January 20, 2017 12:55 — forked from isGabe/wordpress-force-login.php
WordPress: force log in to view any page, with redirect to requested URL#snippet #WordPress
<?php
/*
* Password protect a WordPress site, with a redirect to the requested URL after successful login
*
* Based on:
* http://wordpress.stackexchange.com/a/64999
* http://kovshenin.com/2012/current-url-in-wordpress/
*
**/
<!-- from: http://www.creativebloq.com/features/the-pro-s-guide-to-responsive-web-design -->
<img
<!-- Declare the fallback image for all non picture supporting browsers -->
src="horse-350.jpg"
<!-- Declare all of the image sizes in srcset. Include the image width using the w descriptor to inform the browser of the width of each image.-->
srcset="horse-350.jpg 350w,
horse-500.jpg 500w,
horse-1024.jpg 1024w,
horse.jpg 2000w"
#!/bin/bash
#eg: bash ~/govcms-alias-creator-4000.sh "Tim" abc123abc123
# API keys
USER=$1
KEY=$2
# Variables.
SERVER=${3:-production}
/*
Based of http://blog.mojotech.com/
*/
.post-content>p:first-of-type:first-letter {
background-color: #28ba00;
border-radius: 3px;
color: #fff;
float: left;
font-size: 46px;
@fribibb
fribibb / govcms-all-sites-check.js
Last active November 2, 2017 00:39
Crawl the all sites page and check each site is up
// Run with:
// casperjs govcms-all-sites-check.js
// First will get all links from a page
// then save 'href' attributes to an array,
// then will iterate over this array and then open each link one by one
// and echo the response code, url and title
// from: https://css-tricks.com/glitch-effect-text-images-svg/
/*
(TEXT) PARAMS
=================
1. Namespace
2. Intensity
3. Text color
4. Background color (flat)
5. Highlight #1 color
# simply run:
# curl https://gist.githubusercontent.com/fribibb/74f8b9fa5835738fb1eb123c0d6ed93d/raw/Basic-Mac-Setup--Work.sh > ~/Desktop/Basic-Mac-Setup--Work.sh && bash ~/Desktop/Basic-Mac-Setup--Work.sh
# Starting
clear
echo "This will kick off a LOT of downloads."
echo "...distract everyone with [tea/coffee/cake/lunch/fire alarms], so you can use all the bandwidths!"
echo ""
read -p "Press enter to start."