Skip to content

Instantly share code, notes, and snippets.

View ilyaguy's full-sized avatar

Illia Hai ilyaguy

  • Limassol, Cyprus
View GitHub Profile
@ilyaguy
ilyaguy / custom.el
Last active August 1, 2019 08:36
.emacs/init.el
;;; package --- customize
;;; Commentary:
;; Customize
;;; Code:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(calendar-christian-all-holidays-flag t)
@ilyaguy
ilyaguy / drv.wsdl
Created March 20, 2019 10:02
Partly fixed drv.wsdl file
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:tns="http://www.drv.gov.ua/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://www.drv.gov.ua/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.drv.gov.ua/">
@ilyaguy
ilyaguy / dump.pcap
Last active March 30, 2018 07:48
guzzle post files with same name field
POST /post.php HTTP/1.1
Host: example.com
User-Agent: GuzzleHttp/6.3.2 curl/7.43.0 PHP/7.1.14
Content-Type: multipart/form-data; boundary=dbe860af679d39ed8d83b39cb2285a232429869c
Content-Length: 372
--dbe860af679d39ed8d83b39cb2285a232429869c
Content-Disposition: form-data; name="text"; filename="t1.txt"
Content-Length: 6
Content-Type: text/plain
#!/bin/sh
#
# Automatically adds branch name and branch description to every commit message.
#
NAME=$(git branch | grep '*' | sed -e 's/\* //' -e 's#^.*/##')
DESCRIPTION=$(git config branch."$NAME".description)
echo "$NAME"': '"$(cat $1)" > "$1"
if [ -n "$DESCRIPTION" ]
then