Skip to content

Instantly share code, notes, and snippets.

@diomededavid
diomededavid / .bash_profile
Created November 22, 2015 01:38 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@diomededavid
diomededavid / droplet.css
Last active March 15, 2016 22:51 — forked from vindia/droplet.css
CSS 3 Water Droplet
body { padding: 4em; }
#droplet {
background-color: lightblue;
width: 150px;
height: 150px;
-webkit-border-top-left-radius: 0;
-webkit-border-top-right-radius: 75px;
-webkit-border-bottom-right-radius: 75px;
-webkit-border-bottom-left-radius: 75px;
-webkit-transform:rotate(45deg);
@diomededavid
diomededavid / package.json
Created February 4, 2018 07:15
Create react app with sass configuration
{
"name": "popular-discussions-react",
"version": "0.1.0",
"private": true,
"dependencies": {
"node-sass-chokidar": "^0.0.3",
"npm-run-all": "^4.1.2",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-scripts": "1.1.0",
@diomededavid
diomededavid / .bashrc
Created May 14, 2018 01:14
Bash Profile
alias bprofile='nano ".bash_profile"'
alias checkoutdevelopall='ls | xargs -P10 -I{} git -C {} checkout develop'
alias debug='open /Users/daviddiomede/Sites/VVV/www/fansidedblogs.test/htdocs/wp-content/debug.log'
alias devall='ls | xargs -P10 -I{} git -C {} checkout develop'
alias dke='docker exec -i -t'
alias dkls='docker images'
alias dkps='docker ps -a'
alias flushdns='sudo dscacheutil -flushcache'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
alias hidefiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
Farm-to-table pharetra proin auctor fixie nam sem urna indie integer integer ipsum bahn mi nec nibh molestie brunch vitae quam. Maecenas bicycle commodo nec vulputate organic tempus sem elementum craft beer a eros lorem hoodie nulla proin congue vegan mattis. Morbi et craft beer lorem enim quam noise-rock maecenas fusce integer wire-rimmed glasses vitae porttitor lectus before they sold out quam. Nibh cursus you probably haven't heard of them et vitae lectus skateboard lectus gravida vulputate Portland lorem tellus eros vim ipsum. Duis ipsum Portland enim ipsum odio vinyl eros fusce justo indie proin sit donec Brooklyn gravida urna congue fixie. Vivamus sodales elementum VHS morbi odio ultricies wire-rimmed glasses odio rutrum sapien farm-to-table non sapien molestie DIY.
[draft_pick rank="auto" first_name="Yeti" last_name="Roberts" position="QB" school="Georgetown" league="nfl" team="124" link_url="https://fansided.com" link_text="Scouting Report" link_url2="https://fansided.com" link_text2="Pick Analysis"
@diomededavid
diomededavid / custom_post_feature_img.php
Last active August 5, 2018 23:35
Set featured image in css, so background image can be set without usin inline styles
<?php
/**
* Add or remove the css class if the featured image is set or not
*/
function custom_post_feature_img()
{
if ( has_post_thumbnail() ) {
echo 'custom-post-feature-img';
class Toggle extends React.Component {
constructor(props) {
super(props);
this.state = {isToggleOn: true};
// This binding is necessary to make `this` work in the callback
this.handleClick = this.handleClick.bind(this);
}
true = 'Im On!';
@diomededavid
diomededavid / gist:1a3a6e15fe145e483c462320556fb7cb
Created April 25, 2020 02:02
Cloudflare Whitelist for Digital Ocean IPV$ and IP
## This file was meant to make it easy to update IP tables for Cloudflare
## Use at your own risk.
## I will not and do not assume any resposibilty for any actions you take to update your servers.
## Before using for Additional info Please refer to:
https://support.cloudflare.com/hc/en-us/articles/201897700
https://www.cloudflare.com/ips/
iptables -I INPUT -p tcp -m multiport --dports http,https -s 173.245.48.0/20 -j ACCEPT
@foreach($project_loop as $project_item)
{!! $project_item !!}
@endforeach
@diomededavid
diomededavid / sharethis.php
Created February 16, 2021 20:32
sharethis
<aside class="share-honor-roll">
<p class="share-honor-roll-text">Share this Honor Roll</p>
<div class="share-honor-roll-actions">
<div class="addthis_inline_share_toolbox"></div>
</div>
</aside>