Skip to content

Instantly share code, notes, and snippets.

View callingmedic911's full-sized avatar
:bowtie:

Aditya Pandey callingmedic911

:bowtie:
View GitHub Profile
<p style="margin-left: -35px;"><a onmouseover="window.status='http://www.lef.org/';return true;" onmouseout="window.status=' ';return true;" href="http://www.tkqlhce.com/ej116dlurlt8FECBFDF8A9FFFIEG" onclick="javascript:_gaq.push(['_trackEvent','outbound-widget','http://www.tkqlhce.com']);" target="_blank"> <img alt="Life Extension Blood Testing" src="http://www.awltovhc.com/jt82snrflj4BA87B9B465BBBEAC" border="0"></a></p>
<?php //Don't include php start tag
//Remove sidebar from non-singular pages
add_filter( 'genesis_pre_get_option_site_layout', 'custom_fullwidth' );
function custom_fullwidth( $opt ) {
is ( !(is_singular() || is_admin()) ) { //is_admin to prevent setting Full Width on Genesis> Theme Setting everytime you visit.
$opt = 'full-width-content';
return $opt;
}
}
@callingmedic911
callingmedic911 / functions.php
Last active August 29, 2015 14:13
Add following snippet to functions.php file to add OG Image tag specifically to home.
<?php
medic_home_og() {
if ( is_front_page() || is_home() )
echo '<meta property="og:image" content="http://link/to/your/og/image/file" />';
}
add_action( 'wp_head', 'medic_home_og', 5);
{ "_id" : ObjectId("5b28ec82fd48b97a69cf9639"), "floor_index" : "0", "genreid" : "5abdef4c5bc67825b85d0da9", "languageid" : "5ab3c0f4f7bc9b28bc263c8c", "siteid" : "5b1f9044d2aa6e615d83a2a9", "__v" : 0, "point_data" : [ { "related" : [ "id1", "id2" ], "_id" : ObjectId("5b28f6618720376324c0a3ae"), "pointid" : "b943e3db3219273e0059bc529357d88b", "content_entry" : "mediaid1", "content_exit" : "mediaid2", "type" : "entry", "pathid" : "linepathid", "description" : "test content heree" } ] }
{ "_id" : ObjectId("5b28f17ffd48b97a69cf97b1"), "floor_index" : "0", "genreid" : "5abdef4c5bc67825b85d0da9", "languageid" : "5ae15964de5bdc05e3811482", "siteid" : "5b1f9044d2aa6e615d83a2a9", "__v" : 0, "point_data" : [ { "related" : [ "id1", "id2" ], "_id" : ObjectId("5b28f22dc547fd51c7fc282d"), "pointid" : "b943e3db3219273e0059bc529357d88b", "content_entry" : "mediaid1", "content_exit" : "mediaid2", "type" : "entry", "pathid" : "linepathid", "description" : "test content heree" } ] }
{ "_id" : ObjectId("5b31ffa1fb674058c0208fe4
var mongoose = require('mongoose');
var dbURL = 'mongodb://localhost:27017/testtest';
var retryMaxAttempt = 60;
var retryInterval = 1000;
var retryCountFirstConnect = 0;
mongoose.connect(dbURL, {
reconnectTries: retryMaxAttempt,
reconnectInterval: retryInterval
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://o523249.ingest.sentry.io/api/5636600/envelope/?sentry_key=21a73a5f07114489a0dc02fd29d4bf73&sentry_version=7. (Reason: CORS request did not succeed).
4
TypeError: t is undefined
I index.esm.js:90
y index.js:99
j index.js:347
React 8
unstable_runWithPriority scheduler.production.min.js:18
React 5
onNewData useBaseQuery.js:17
import { useForm, Controller } from 'react-hook-form'
import Select from 'react-select/creatable'
export const QUERY = gql`
query FindPlants {
userExamples {
id
email
}
}
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Supabase CLI
# @raycast.mode fullOutput
# Optional parameters:
# @raycast.icon 🤖
# @raycast.argument1 { "type": "text", "placeholder": "start" }
@callingmedic911
callingmedic911 / supabase.sh
Created April 24, 2022 14:44
Raycast command wrapper for Supabase CLI
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Supabase
# @raycast.mode fullOutput
# Optional parameters:
# @raycast.icon images/supabase.png
# @raycast.argument1 { "type": "text", "placeholder": "cmd" }
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Postgres
# @raycast.mode compact
# Optional parameters:
# @raycast.icon images/postgres.png
# @raycast.argument1 { "type": "text", "placeholder": "cmd" }