This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative 'lib/piplapis/search' | |
request = PiplApi::SearchAPIRequest.new({api_key: 'samplekey', email: '[email protected]'}) | |
begin | |
response = request.send | |
# All good! | |
rescue PiplApi::SearchAPIError => e | |
puts e | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import analytics | |
from piplapis.search import SearchAPIRequest | |
def enhance_segment_user(user): | |
resp = SearchAPIRequest(email=user.email, | |
first_name=user.first_name, | |
last_name=user.last_name, | |
show_sources='matching').send() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html class="js adownload cssanimations csstransitions webp webp-alpha webp-animation webp-lossless wf-roboto-n4-active wf-opensans-n4-active wf-opensans-n6-active wf-roboto-n3-active wf-roboto-n5-active wf-active" dir="ltr" loc="en"><head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>(1) WhatsApp</title> | |
<meta name="viewport" content="width=device-width"> | |
<meta name="google" content="notranslate"> | |
<meta name="format-detection" content="telephone=no"> | |
<meta name="description" content="Quickly send and receive WhatsApp messages right from your computer."> | |
<meta name="og:description" content="Quickly send and receive WhatsApp messages right from your computer."> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require "ipaddr" | |
module ActionDispatch | |
# This middleware calculates the IP address of the remote client that is | |
# making the request. It does this by checking various headers that could | |
# contain the address, and then picking the last-set address that is not | |
# on the list of trusted IPs. This follows the precedent set by e.g. | |
# {the Tomcat server}[https://issues.apache.org/bugzilla/show_bug.cgi?id=50453], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"log" | |
"strings" | |
_ "github.com/go-sql-driver/mysql" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
################### | |
# A small utility to automate replacement of ssh key on servers. | |
# | |
# USE WITH GREAT CARE !!! | |
# Author: [email protected] | |
set -e | |
set +x |