Skip to content

Instantly share code, notes, and snippets.

@chandanjog
chandanjog / a2-level-10-vocab.md
Last active July 13, 2025 17:52
a2-level-10-vocab.md

🏡 Teil 1: Ein besonderer Samstag

In einem kleinen Dorf leben zwei Familien: die Familie Schneider und die Familie Bauer.

Die Schneiders – Julia, Thomas, und ihre zwei Töchter Anna und Lena – bereiten sich auf 🔵 einen Ausflug 🔵 in den Park vor. Die Bauers – mit Vater Markus, Mutter Sabine, Tochter Mia und Sohn Paul – wollen 🔵 den Tag 🔴 mit den Freunden verbringen.

🔴 Am Morgen steht Julia früh auf und macht 🔵 das Frühstück. Sie stellt 🔵 den Kaffee 🔴 auf den Tisch und ruft: „Kinder, kommt 🔵 in die Küche!“

Anna bringt 🔵 das Brot, Lena holt 🔵 den Käse, und Thomas hilft 🔴 der Tochter, 🔵 die Teller zu decken.

flowchart TD
A0(User) --> A1
A0(User) --> A2
A1[Organic Traffic] -->|Website, Instagram, YT| B(Website, CTA 7DC)
A2[In Organic Traffic] -->|Ads FB, Google| B
B --> C1(Home Page, Mulitple landing pages for diseases)
C1 --> C2{Form or Whatsapp Button or both ??}
C2 -->|Form inputs| D1
C2 -->|Whatsapp Business| D0{Whatsapp Tool or CRM?}
!/bin/bash
ALL_INDEXES=`curl -XGET http://localhost:9200/_cat/indices | awk '{print $3}' | grep logstash | sort `
echo $ALL_INDEXES
read -ra array <<< $ALL_INDEXES
ARRAY_COUNT=$(echo "${#array[@]}")
echo $ARRAY_COUNT
INDEXES_TO_KEEP=31
if [ $ARRAY_COUNT -gt $INDEXES_TO_KEEP ]; then
INDEXES_TO_DELETE=$(echo ${array[@]:0:$ARRAY_COUNT-$INDEXES_TO_KEEP})
for index in $INDEXES_TO_DELETE
x = File.read('/Users/cjog/Downloads/pants.html')
html = Nokogiri::HTML(x)
str = html.css('script').last.text.match(/nbp='(.*)';var sc=/)[1]
JSON.parse(`echo #{str.inspect}`)
y = "[\x22/store/apps/collection/search_results_cluster_apps?clp\\u003dggEOCghmYWNlYm9vaxoCCAA%3D:S:ANO1ljKYhZ0\x22,\x22-p6BnQMCCDE\\u003d:S:ANO1ljJ4Cw8\x22,\x220\x22,\x220\x22,\x220\x22,null,\x22ggEOCghmYWNlYm9vaxoCCAA\\u003d:S:ANO1ljKYhZ0\x22,3]\n"
k = "[\\x22/store/apps/collection/search_results_cluster_apps?clp\\\\u003dggEOCghmYWNlYm9vaxoCCAA%3D:S:ANO1ljKYhZ0\\x22,\\x22-p6BnQMCCDE\\\\u003d:S:ANO1ljJ4Cw8\\x22,\\x220\\x22,\\x220\\x22,\\x220\\x22,null,\\x22ggEOCghmYWNlYm9vaxoCCAA\\\\u003d:S:ANO1ljKYhZ0\\x22,3]\\n"
{
// retain all the other fields, especially the ones related to aggregate metric that are currently being populated. Once we make a switch
to start showing country level metic estimates we can play a card to delete the old field generation and remove any usage.
.
.
.
"metrics_by_country": {
"IN": {
"downloads_last_7_days_actual": "1977924",
"downloads_last_7_days_growth_percent": -40.88745740849383,
@chandanjog
chandanjog / access_logs.txt
Last active October 26, 2015 13:38
access_logs
/var/log/nginx/subcategory_tracker.access.ssl.log:10.140.174.172 - - [26/Oct/2015:12:39:51 +0000] "GET /analytics/ios/apps/trends/521945530/export.xlsx?timeseries%5B%5D=CA%2Cdownloads&timeseries%5B%5D=CA%2Crevenues_installs&timeseries%5B%5D=CA%2Crevenues_iap&timeseries%5B%5D=CA%2Crevenues_total&timeseries%5B%5D=CA%2Cprice&timeseries%5B%5D=CA%2Ccurrent_rating&timeseries%5B%5D=CA%2Calltime_rating HTTP/1.1" 499 0 "-" "-" "-"
/var/log/nginx/subcategory_tracker.access.ssl.log:10.140.174.172 - - [26/Oct/2015:12:39:51 +0000] "GET /analytics/ios/apps/trends/966060861/export.xlsx?timeseries%5B%5D=AU%2Cdownloads&timeseries%5B%5D=AU%2Crevenues_installs&timeseries%5B%5D=AU%2Crevenues_iap&timeseries%5B%5D=AU%2Crevenues_total&timeseries%5B%5D=AU%2Cprice&timeseries%5B%5D=AU%2Ccurrent_rating&timeseries%5B%5D=AU%2Calltime_rating HTTP/1.1" 499 0 "-" "-" "-"
/var/log/nginx/subcategory_tracker.access.ssl.log:10.140.174.172 - - [26/Oct/2015:12:39:51 +0000] "GET /analytics/ios/apps/trends/487027387/export.xlsx?timeseries%5B%5D=TR%
@chandanjog
chandanjog / old_sitemap.xml
Created October 23, 2015 10:30
old_sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:pagemap="http://www.google.com/schemas/sitemap-pagemap/1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://prioridata.com</loc>
<lastmod>2014-03-04T18:31:17+01:00</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://prioridata.com/product</loc>
@chandanjog
chandanjog / sitemap.xml
Created October 23, 2015 10:21
sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0"
xmlns:pagemap="http://www.google.com/schemas/sitemap-pagemap/1.0"
@chandanjog
chandanjog / fetch_featured_first_cut_saurabh.sql
Created October 20, 2015 15:39
fetch_featured_first_cut_saurabh.sql
SELECT
meta.app_id as app_id,
meta.price as price,
'USD' as currency,
titles.title as app_name,
pub.publisher_name as publisher_name,
versions.vs as version,
rd.release_date as release_date,
versions.vrd as last_update
FROM (SELECT app_id FROM data_team_landfill.ios_newcomers_20150908) as newcomers