Skip to content

Instantly share code, notes, and snippets.

View alfared's full-sized avatar
🏠
Working from home

Vitaliy Holovka alfared

🏠
Working from home
  • Merkle
  • Brno, Czech Republic
View GitHub Profile
Project # of Top 100 Free Apps (US)
facebook-ios-sdk 67
Bolts-iOS 48
AFNetworking 39
Google-Mobile-Ads-SDK 38
Reachability (Apple) 38
Crashlytics 37
Flurry-iOS-SDK 31
CocoaPods 30
GoogleConversionTracking 29
@azizultex
azizultex / Getting All Contact Form 7 Forms in a Select Option and Showing Selected Form Anywhere Wordpress
Created February 25, 2015 15:20
Getting All Contact Form 7 Forms in a Select Option and Showing Selected Form Anywhere Wordpress
// This is how I listed the forms in Piklist Select Option below:
$args = array('post_type' => 'wpcf7_contact_form', 'posts_per_page' => -1);
$cf7Forms = get_posts( $args );
// $post_ids = wp_list_pluck( $cf7Forms , 'ID' );
$form_titles = wp_list_pluck( $cf7Forms , 'post_title' );
piklist('field', array(
'type' => 'group'
,'field' => 'contact_form'
@vitorbritto
vitorbritto / rm_mysql.md
Last active June 29, 2024 20:26
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
var app = express.createServer();
// database
mongoose.connect('mongodb://localhost/ecomm_database');