Skip to content

Instantly share code, notes, and snippets.

View aaerofeev's full-sized avatar

aerofeev aaerofeev

  • https://github.com/kolesa-team
  • Kazakhstan Almaty
View GitHub Profile
@apremalal
apremalal / build.sh
Created August 17, 2016 01:26
Exclude vendor directory from goimports, go fmt,go install, go test ...
echo 'Formatting the code base...'
godep go fmt $(go list ./... | grep -v /vendor/)
echo 'Optimizing the imports...'
goimports -w $(go list -f {{.Dir}} ./... | grep -v /vendor/)
echo 'Installing dependencies. This might take some time...'
godep go install $(go list ./... | grep -v /vendor/)
echo "Executing test"
@trapexit
trapexit / split-ovpn
Created August 22, 2016 17:58
Extract certs and keys from OpenVPN ovpn file
#!/bin/bash
OVPN_FILE="${1}"
OUTPUT_PREFIX="${2}"
if [ ! -e "${OVPN_FILE}" ]; then
echo "File not found: ${OVPN_FILE}"
exit 1
fi
@dnetix
dnetix / JavaRestClientTest.java
Last active September 16, 2022 09:30
Simple Java Rest Client posting JSON to a server
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Map;
@hassansin
hassansin / README.md
Last active February 14, 2024 17:09
Remote Debugging with XDebug 2.1

XDebug

A PHP extension that allows you to:

  1. walk through your code by Remote Debugging
  2. find bottlenecks in your application by Profiling
  3. find Code Coverage in a single request
  4. trace your application by logging all function calls
@xeraa
xeraa / .env
Last active January 17, 2020 17:32
Docker: Kibana + Elasticsearch with Stempel, Phonetic, and Language detection
ELASTIC_VERSION=6.3.0