Skip to content

Instantly share code, notes, and snippets.

View vodolaz095's full-sized avatar

Остроумов Анатолий vodolaz095

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!-- UPS XAV Service WSDL Release Date Dec 29, 2007 -->
<!-- Copyright 2007-2008 United Parcel Service of America, Inc. All rights reserved. -->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:xav="http://www.ups.com/XMLSchema/XOLTWS/xav/v1.0" xmlns:tns="http://www.ups.com/WSDL/XOLTWS/XAV/v1.0" targetNamespace="http://www.ups.com/WSDL/XOLTWS/XAV/v1.0">
<wsdl:types>
<!-- This schema defines the UPS Security header used for authorization purposes -->
<xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:element name="UPSSecurity">
<xsd:complexType>
<xsd:sequenc
@vodolaz095
vodolaz095 / test.go
Created March 9, 2016 10:42
Some sort of test task
package main
import "fmt"
func main() {
var i int64
for {
i = i + 1
if i >= 200 {
break
@vodolaz095
vodolaz095 / NumberOfTheWeekInMonth.go
Created February 19, 2016 15:33
Get the number of the week in Golang
package main
import(
"fmt"
"time"
)
func NumberOfTheWeekInMonth(now time.Time) int {
beginningOfTheMonth := time.Date(now.Year(), now.Month(), 1, 1, 1, 1, 1, time.UTC)
_, thisWeek := now.ISOWeek()
@vodolaz095
vodolaz095 / Dependencies.md
Last active February 11, 2016 18:17
Install dependencies required by some amazon related project

I assume you have actual Fedora 23 distro. For other distros scripts can differ

Build aws-apigateway-importer


	$ git clone https://github.com/awslabs/aws-apigateway-importer
	$ cd aws-apigateway-importer/
	$ sudo docker build -t aws-apigateway-importer .
@vodolaz095
vodolaz095 / main.go
Created January 18, 2016 13:01
Small Go Powered parser to query Yahoo api for money xchange rates and store data in redis database
package main
/*
Test task: Small Go powered parser to query Yahoo api
for money xchange rates and store data
in local redis database.
Time taken ~1 hour
*/
import (
@vodolaz095
vodolaz095 / install.sh
Last active January 31, 2021 10:00
Little script to help me installing Fedora 32 linux on my home PCs (comment lines you do not need)
#!/bin/sh
echo "Start SSHD service"
systemctl enable sshd
systemctl start sshd
echo "Remove junky programs i hate"
dnf -y remove clipit asunder gnomebaker lxmusic gnumeric osmo pidgin xpad
echo "Upgrade system"
@vodolaz095
vodolaz095 / clearDockerCache.sh
Created December 8, 2015 20:25
Single command to clear docker containers and cache
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@vodolaz095
vodolaz095 / express.js
Last active December 8, 2015 20:10
Render 1 pixel jpg image using expressjs
'use strict';
var express = require('express');
var app = express();
app.get('/1pixel.jpg', function(req,res){
var
hex1pixeljpeg = 'ffd8ffe000104a46494600010101006000600000ffe1001645786966000049492a0008000000000000000000ffdb00430001010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101ffdb00430101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101ffc00011080001000103012200021101031101ffc400150001010000000000000000000000000000000affc40014100100000000000000000000000000000000ffc40014010100000000000000000000000000000000ffc40014110100000000000000000000000000000000ffda000c03010002110311003f00bf8001ffd9',
buffer1PixelJpeg = new Buffer(hex1pixeljpeg, 'hex');
@vodolaz095
vodolaz095 / regenssh.sh
Created February 23, 2015 06:29
Regenerate SSH server keys
#!/bin/sh
ssh-keygen -q -f /etc/ssh/ssh_host_key -N '' -t rsa1
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa -b 521
@vodolaz095
vodolaz095 / buildCjdns.sh
Created June 14, 2014 19:58
Cjdroute install script for Fedora 20 Linux
#!/bin/sh
#cjdroute(https://github.com/cjdelisle/cjdns) install script for Fedora 20 linux
cd /home/vodolaz095/projects/cjdns
git checkout master
git pull
echo 'Source code pulled!'
/home/vodolaz095/projects/cjdns/do
su -c 'rm -f /bin/cjdroute;