I assume you have actual Fedora 23 distro. For other distros scripts can differ
$ git clone https://github.com/awslabs/aws-apigateway-importer
$ cd aws-apigateway-importer/
$ sudo docker build -t aws-apigateway-importer .
package main | |
import ( | |
"gopkg.in/telegram-bot-api.v4" | |
"log" | |
"net/http" | |
"os" | |
) | |
func main() { |
#!/bin/bash | |
if [ "$1" = '--help' ];then | |
echo 'Usage ./screencast.sh [filename]' | |
else | |
dimensions=`xdpyinfo | grep 'dimensions:'|awk '{print $2}'` | |
if [ -n "$1" ];then | |
outFile="$1" | |
else | |
outFile="$HOME/out.avi" | |
fi |
#!/bin/bash | |
DISPLAY=:0.0 /bin/notify-send "$1" |
#/bin/sh | |
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 |
package main | |
// Accessing last 10 messages in Skype using Golang. | |
//HOW TO RUN this application: | |
// 1. Install Go - https://golang.org/doc/install. | |
// 2. Instal dependencies by running in console | |
// go get github.com/jinzhu/gorm |
<?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 |
package main | |
import "fmt" | |
func main() { | |
var i int64 | |
for { | |
i = i + 1 | |
if i >= 200 { | |
break |
//A memory cache client for nodeJS | |
//It leaks memory and not scalable, DO NOT USE IN PRODUCTION! | |
//2 methods are utilized | |
// .get(key,function(err,value){}) | |
// .set(key,value,function(err,resultOfSaving){},timeToLiveInMilliseconds) | |
var Storage = {}; | |
exports.get = function (key, callback) { | |
if (Storage[key]) { |