Skip to content

Instantly share code, notes, and snippets.

{
"step":5,
"campaign_type":"2",
"name":"Краткий справочник по linux командам",
"url":"https://www.adf/exchange/plus/#/horse-racing/market/1.124868809",
"categories":[
"IAB1-1"
],
"domain":"http://dfsd.ru",
"start_date":"",
swagger: '2.0'
info:
title: DSP API
description: |
Авторизаационный токен передается в хедере X-Authorization. При при попытке доступа к Authorized endpoint'ам неавторизованным клиентом status code = 401
version: "1.0.0"
# the domain of the service
host: api.dspd.space
# array of all schemes that your API supports
schemes:
{
"name": "string",
"url": "http://akuna.com/matata",
"categories": [
"IAB1"
],
"domain": "aloha.com",
"start_date": 2344234,
"end_date": 1344234,
"total_budget": 0,
#!/bin/bash
CODE=$(curl --write-out "%{http_code}\n" --silent --output /dev/null http://ya.ru)
if [ $CODE -ne 200 ]
then
exit 1
fi
swagger: '2.0'
info:
title: DSP API
description: |
Авторизаационный токен передается в хедере X-Authorization. При при попытке доступа к Authorized endpoint'ам неавторизованным клиентом status code = 401
version: "1.0.0"
# the domain of the service
host: api.dspd.space
# array of all schemes that your API supports
schemes:
swagger: '2.0'
info:
title: DSP API
description: |
Авторизаационный токен передается в хедере X-Authorization. При при попытке доступа к Authorized endpoint'ам неавторизованным клиентом status code = 401
version: "1.0.0"
# the domain of the service
host: api.dsp.com
# array of all schemes that your API supports
schemes:
@blide
blide / popcorntime-vpn.sh
Created February 12, 2016 17:23 — forked from Schnouki/popcorntime-vpn.sh
OpenVPN for a single application using network namespaces -- helper scripts
#!/usr/bin/env zsh
# Initialize VPN
sudo vpnns up
sudo vpnns start_vpn
# Popcorn time!
sudo ip netns exec frootvpn sudo -u $USER popcorntime
# Cleanup
@blide
blide / .go
Created July 30, 2015 11:42
xml
package main
import (
"encoding/xml"
"fmt"
"os"
"runtime"
)
type DrugStores struct {