Skip to content

Instantly share code, notes, and snippets.

View nelsonsequiera's full-sized avatar
🤷‍♂️
Experiment - Fail - Learn - Repeat

Nelson Sequiera nelsonsequiera

🤷‍♂️
Experiment - Fail - Learn - Repeat
View GitHub Profile
@nelsonsequiera
nelsonsequiera / facebook-campaign-meta-fields.json
Last active February 19, 2018 07:19
Facebook list of fields for api
id,
account_id,
adlabels,
boosted_object_id,
brand_lift_studies,
budget_rebalance_flag,
buying_type,
can_create_brand_lift_study,
can_use_spend_cap,
configured_status,
id,
account_id,
adlabels,
adset_schedule,
attribution_spec,
bid_amount,
bid_info,
billing_event,
budget_remaining,
campaign,
id,
account_id,
budget_rebalance_flag,
buying_type,
can_create_brand_lift_study,
can_use_spend_cap,
configured_status,
created_time,
effective_status,
name,
{
    "id": "",
    "account_id": "",
    "attribution_spec": [
        {
            "event_type": "",
            "window_days": 
        }
    ],
id,
account_id,
ad_review_feedback,
adlabels,
adset,
adset_id,
bid_amount,
bid_info,
bid_type,
{
    "id": "",
    "account_id": "",
    "adset": {
        "id": ""
    },
    "adset_id": "",
    "bid_type": "",
    "campaign": {
  1. No Button
  2. Request Time
  3. Apply Now
  4. Book Now
  5. Contact Us
  6. Download
  7. Get Showtimes
  8. Learn More
  9. Listen Now
  10. Send Message
  1. No Button
  2. Request Time
  3. Apply Now
  4. Book Now
  5. Contact Us
  6. Download
  7. Get Showtimes
  8. Learn More
  9. Listen Now
  10. Send Message
@nelsonsequiera
nelsonsequiera / django model graph
Created October 30, 2018 09:46
packages to install to get django model graph
apt-get update
apt-get install graphviz
apt-get install graphviz libgraphviz-dev graphviz-dev pkg-config
pip install pygraphviz
python manage.py graph_models --pygraphviz -a -g -o leads.png
@nelsonsequiera
nelsonsequiera / find_log_files_for_a_date.sh
Last active December 11, 2018 07:36
find log files for a date
find / -name \*.log -printf "\n%s,%p,%t" -newerat 2018-11-07 ! -newerat 2018-11-08