Skip to content

Instantly share code, notes, and snippets.

View iammuho's full-sized avatar
🚲
Coding like Pedalling!

Muhammet Arslan iammuho

🚲
Coding like Pedalling!
View GitHub Profile
{% interface
Base {
CSS()
JS()
Title()
Body()
}
%}
{% func BaseLayout(b Base) %}
/*
Copyright 2019
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
/*
Copyright 2019
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@iammuho
iammuho / router.go
Last active December 14, 2019 13:21
// Copyright 2019 Muhammet Arslan <github.com/geass>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
/*
Copyright 2019
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@iammuho
iammuho / logger.go
Created December 13, 2019 10:37
GOLang Uber Zap Implementation with modified development
/*
Copyright 2019
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@iammuho
iammuho / Test Event
Last active May 15, 2019 13:53
Password Generator Lambda Function
To Encrypt:
{
"StackId": "a",
"RequestId": "b",
"PhysicalResourceId": "c",
"LogicalResourceId": "e",
"RequestType": "create",
"ResourceProperties": {
"PasswordLength": 20,
"KeyId": "KEYID",
#! /usr/bin/perl -w
use JSON;
#my $instance_ref = $var->{"Reservations"};
##Function: GetInstanceInfo()
##Description:
##get instance id, instance Name, instance status, instance public IP, Security Group
##Usage: GetInstanceInfo($instance_ref)
##Requirement: JSON