Skip to content

Instantly share code, notes, and snippets.

View parolkar's full-sized avatar

Abhishek Parolkar parolkar

View GitHub Profile
@parolkar
parolkar / gist:1882364
Created February 22, 2012 06:31
copy from s3 to HDFS without distcp
s3cmd get s3://bucket - | hadoop fs -copyFromLocal - /hdfs_location
@parolkar
parolkar / router.php
Last active August 29, 2015 14:08 — forked from tamagokun/router.php
<?php
$root = $_SERVER['DOCUMENT_ROOT'];
chdir($root);
$path = '/'.ltrim(parse_url($_SERVER['REQUEST_URI'])['path'],'/');
set_include_path(get_include_path().':'.__DIR__);
if(file_exists($root.$path))
{
if(is_dir($root.$path) && substr($path,strlen($path) - 1, 1) !== '/')
$path = rtrim($path,'/').'/index.php';
@parolkar
parolkar / DNS Resolution & Traceroute from Singapore
Last active April 24, 2017 13:27
Repo Latency affecting installation performance
$dig repo.zoomdata.com
; <<>> DiG 9.8.3-P1 <<>> repo.zoomdata.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6976
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;repo.zoomdata.com. IN A
@parolkar
parolkar / gist:7119e578a00faf16c337408496e5469a
Created October 16, 2018 10:09
Apache Beam & Talend Data Streams
Future-proofing your code : https://www.oreilly.com/ideas/future-proof-and-scale-proof-your-code
Basic Introduction / Step by step : https://www.talend.com/blog/2018/04/23/how-to-develop-a-data-processing-job-using-apache-beam/
Credits:
https://docs.google.com/presentation/d/17eq17-4KYvF1-2sCOo0sSUdm6gj4h6sWLhLDUYOe1cU/edit#slide=id.g11fb502606_9_111
@parolkar
parolkar / mailmerge.scpt
Created October 18, 2023 08:41 — forked from johnwickerson/mailmerge.scpt
Mail-merge from a CSV file using Apple Mail
-- Mail-merge script
-- Assembled by John Wickerson (using various parts pasted from the internet, credited individually below) in April 2021.
-- Instructions:
---- 1. Select a message in Mail (probably one that has been saved as a Draft) and then run this script.
---- 2. The script will ask you for a CSV file containing the data to be mail-merged. The first column of this CSV file must be named "email".
---- 3. The script will substitute $FOO in the contents of the message with the contents of column FOO in the CSV file.
---- 4. Any to/cc/bcc recipients in the original message will be preserved.
---- 5. Unfortunately, any attachments in the original message are not preserved, but if you want an attachment, you can add it
---- using this script by uncommenting one of the lines below.
@parolkar
parolkar / ManxAI_for_AI4SME.txt
Created July 9, 2024 04:48
A Manx.ai Prompt to help organizations select a AI Solution Provider based on AI4SME Guidelines
This Prompt is specially designed for Roni Diaz https://app.manx.ai/professionals/roni-diaz#user_directive
Prompt:
-------
You are a Procurement Assistant to Business Owner looking to implement an AI solution on Isle of Man. To ensure that user selects a capable Solution Provider (SI), it's important to ask the right questions. You help user go through a series of questions progressively to help understand the importance of each. Do not ask all questions at once but engage in a goal directed conversation to help user understand importance of asking these questions to solution provider. Keep your response short.
Step 1: Understanding Integration and Industry Fit
"Can you clearly explain how your AI solution will integrate into my specific business processes and industry?"
This question addresses the SI’s understanding of your value chain and the practical application of their AI solution.

Mindmapping Prompt by @parolkar on Replit

Create a mindmap about "US Election Campaign Process" with the tree structure written as follows and then trun that into SVG file with nodes and arrows. 

* Write each item on one line.
* Use the number of leading '>' to indicate the depth of the tree structure.
* The highest level should have 1 leading '>'.
* The top level should always be "{{user_input}}" and not "top."
* Respond with the mind map starting from the top level on the first line, without adding unnecessary words.
This is the Prompt in the video ( https://youtu.be/nDfkJoR5kvM )
PROMPT START
Act as a Security Analyst for the attached Ruby On Rails Application Codebase (application_codebase.zip).
1.) Install ruby if it doesn't exist
2.) then install brakeman gem which is used for code analysis (gem install brakeman )
3.) Unzip the application_codebase.zip in folder named codebase
4.) Run the analysis by running the command like ( brakeman ./codebase -o output_report.html --faster )
5.) Once brakeman has finished and output_report.html is ready, enhance the HTML by adding big header "Security Test performed by inloop.studio"