This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img { | |
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function sendToSlack($lead, $sfdcId, $channel) { | |
$slack = [ | |
"text" => '', | |
"username" => $lead['firstName']." ".$lead['lastName'], | |
"icon_emoji" => ':fire:', | |
"attachments" => [[ | |
"color" => '#FA9100', | |
"title" => 'Open in Salesforce »', | |
"title_link" => "https://salesforce.com/r/Lead/".$sfdcId."/view", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# BACKUP SCRIPT | |
# DATABASE | |
DBNAME="dbname" | |
DBUSER="dbuser" | |
DBPASS="dbpass" | |
# PATHS | |
DIRDB="/backup/db" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* See instructions on this page: https://community.spotify.com/t5/Desktop-Windows/Import-Google-Music-playlists-to-Spotify/td-p/1173080/page/3 | |
* Then access this site: http://spotlistr.herokuapp.com/#/search/textbox | |
*/ | |
//Copy/Paste in web browser console on any public playlist page for Google Play Music | |
function fReplace(thisString, thisThing, thatThing) { | |
let tLS = thisString; | |
while(tLS.includes(thisThing)){ | |
tLS = tLS.replace(thisThing, thatThing); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setDns domain.com 0.0.0.0 | |
navigate http://domain.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Place this within The Loop of post_parent ($post) | |
$args = array( 'post_type' => 'attachment', | |
'numberposts' => -1, | |
'post_parent' => $post->ID ); | |
$attachments = new WP_query($args); | |
while ($attachments->have_posts()) : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo modprobe -r psmouse | |
sudo modprobe psmouse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/**************************** | |
* | |
* Lead Source Tracking | |
* | |
**************************** | |
* @Author: Ian Ray | |
* @Created: 17-May 2015 | |
* @Updated: 10-July 2015 | |
* @Description: Created for use with Gravity Forms and Salesforce Lead Source field |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch | |
git rebase origin/master | |
#Source: http://stackoverflow.com/questions/7200614/how-to-merge-remote-master-to-local-branch | |
#git merge branchname takes new commits from the branch branchname, and adds them to the current branch. If necessary, it automatically adds a "Merge" commit on top. | |
#git rebase branchname takes new commits from the branch branchname, and inserts them "under" your changes. More precisely, it modifies the history of the current branch such that it is based on the tip of branchname, with any changes you made on top of that. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (-webkit-min-device-pixel-ratio: 2) { | |
.bg { | |
background-attachment: scroll !important; | |
} | |
} |
NewerOlder