I hereby claim:
- I am 1hakr on github.
- I am 1hakr (https://keybase.io/1hakr) on keybase.
- I have a public key ASD6reZN-xvnHJwouZXFDVWeVRsVumZXPVaBpeygIu7Kzwo
To claim this, I am signing this object:
public static Cache.Entry parseIgnoreCacheHeaders(NetworkResponse response) { | |
long now = System.currentTimeMillis(); | |
Map<String, String> headers = response.headers; | |
long serverDate = 0; | |
String serverEtag = null; | |
String headerValue; | |
headerValue = headers.get("Date"); | |
if (headerValue != null) { |
import android.content.Context; | |
import android.location.Location; | |
import android.location.LocationManager; | |
import android.telephony.NeighboringCellInfo; | |
import android.telephony.TelephonyManager; | |
import android.telephony.cdma.CdmaCellLocation; | |
import android.telephony.gsm.GsmCellLocation; | |
import android.util.Log; | |
import java.io.DataInputStream; |
I hereby claim:
To claim this, I am signing this object:
function sendAlertNotification(userId, instanceId, notificationKey) { | |
// Notification details. | |
const payload = { | |
notification: { | |
title: `Price Alert`, | |
body: 'Body', | |
sound: 'default', | |
icon: 'ic_alerts', | |
android_channel_id: "alerts_channel", |
exports.referralUpdate = functions.database.ref('/rewards/{uid}/referredBy').onCreate((data, context) => { | |
const snapshot = data; | |
const uid = context.params.uid; | |
const referredByUid = snapshot.val().uid; | |
const referredByClientIdKey = snapshot.val().clientIdKey; | |
return admin.database().ref(`/users/${referredByUid}/clients`).once('value').then(dataSnapshot => { | |
var validReferral = true; | |
var value = dataSnapshot.val(); | |
if (value) { | |
dataSnapshot.forEach(function(snapshot) { |
// | |
// NetworkHelper.swift | |
// acrypto | |
// | |
// Created by HaKr on 21/10/17. | |
// Copyright © 2017 DWorkS. All rights reserved. | |
// | |
import Foundation | |
import Alamofire |
proxy_cache_path /tmp/cacheapi levels=1:2 keys_zone=microcacheapi:100m max_size=1g inactive=1d use_temp_path=off; | |
server { | |
listen 443 ssl http2 default_server; | |
listen [::]:443 ssl http2 default_server; | |
server_name example.com; | |
location /api/ { | |
# Rate Limiting | |
limit_req zone=reqlimit burst=20; # Max burst of request |