Skip to content

Instantly share code, notes, and snippets.

View s4parke's full-sized avatar

Steve J. s4parke

View GitHub Profile
@s4parke
s4parke / allResources.txt
Last active February 28, 2024 02:20 — forked from MauricioZa/allResources.txt
Graph query to retrieve ALL resources (including hidden)
resources|where (resourceGroup =~ ('rg-INSERT-YOUR-RG-NAME-HERE'))|extend typeDisplayName=case(
type =~ 'microsoft.insights/components','Application Insights',
type =~ 'microsoft.insights/privatelinkscopes','Azure Monitor Private Link Scope',
type =~ 'microsoft.insights/webtests','Availability test',
type =~ 'microsoft.insights/workbooks','Azure Workbook',
type =~ 'microsoft.insights/workbooktemplates','Azure Workbook Template',
type =~ 'microsoft.appplatform/spring','Azure Spring Cloud',
type =~ 'microsoft.appplatform/tanzu','Azure Spring Cloud',
type =~ 'microsoft.cache/redisenterprise','Redis Enterprise',
type =~ 'microsoft.cache/redisenterprise/databases','Cache',
# import module
Import-Module psAzD
# set default parameters
$params = @{
Organization = "myOrganization"
Project = "Test"
PersonalAccessToken = "Azure DevOps Personal Access Token here"
}
Set-AzDDefaultParameters @params
@s4parke
s4parke / gist:587f7939f6bb93debd4b8c446559d583
Created March 29, 2022 17:39 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@s4parke
s4parke / nginx.conf for node express with nginx reverse proxy
Last active February 12, 2016 04:56 — forked from turtlesoupy/nginx.conf
node.js upstream nginx config
upstream calc_example_org_upstream {
server 127.0.0.1:8005;
#server 127.0.0.1:8006;
#keepalive 64;
}
server {
listen 80;
server_name www.calc.example.org;
@s4parke
s4parke / redis-autostart-osx.md
Created February 1, 2016 22:39 — forked from subfuzion/redis-autostart-osx.md
redis auto start OS X

Install with Homebrew

brew install redis

Set up launchctl to auto start redis

$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents

/usr/local/opt/redis/ is a symlink to /usr/local/Cellar/redis/x.y.z (e.g., 2.8.7)

@s4parke
s4parke / custom_venue_info.php
Created December 1, 2015 16:35 — forked from codearachnid/custom_venue_info.php
Add custom venue meta items by using the tribe_register_meta for individual items or tribe_register_meta_group for the group registration. See TEC (core plugin)/public/advanced-functions/meta.php for examples of group and individual registration
<?php
// add custom venue meta items
add_action('tribe_events_before_view','custom_venue_info');
function custom_venue_info(){
global $post;
// force this to run only on single event views
if( is_single() && tribe_is_event( $post->ID ) ){
$room = get_post_meta( $post->ID, '_VenueRoom', true );
tribe_register_meta( 'tribe_venue_room', array(
@s4parke
s4parke / gist:75f03169f2ff429dd539
Last active November 19, 2015 17:37 — forked from jazbek/gist:6355989
Add custom fields to a single event detail page
<?php
//
add_action('tribe_events_before_view','tribe_custom_fields_meta');
function tribe_custom_fields_meta(){
global $post;
// force this to run only on single event views
if( is_single() && tribe_is_event( $post->ID ) ){
if( tribe_is_recurring_event( tribe_is_recurring_event( $post->ID ) ) ) {
tribe_register_meta( 'tribe_custom_fields_vaa', array(