Skip to content

Instantly share code, notes, and snippets.

View sshilko's full-sized avatar

Sergei sshilko

View GitHub Profile
@OpenNingia
OpenNingia / advantages.md
Last active February 21, 2024 03:45
[D&D 5E] Summary of situations causing advantage or disadvantage

[5E] Summary of situations causing advantage or disadvantage.

5th Edition

In another topic someone was wondering about the new advantage/disadvantage mechanic, and under which situations it comes into effect. Because basic rules don't include a dedicated list (understandable, as it's usually a side effect of a very wide variety of actions or situations) I wrote a summary with the information from the different instances where advantage or disadvantage are mentioned in the basic rules, just in case anyone else is curious. I separated it by context:


RACES

Lambda Is there a plan/timeline integrating lambda into VPC?
Api-Gateway Is there a plan/timeline on integrating gzip output encoding?
Lambda Golang official support
Lambda Does VPC mean also access to Elasticache?
Elasticsearch VPC support
Lambda Nodejs Version Update and selectable versions
Cloudformation Support for prefix and suffix for S3 Notifications, Support for SWF (feature request)
Elasticsearch Update to 2.* version
AWS Certificate Manager region eu-west-1
AWS Certificate Manager certificate request without email (like letsencrypt)
@bgreenlee
bgreenlee / WiFiInfo.swift
Created November 7, 2015 23:05
Swift Class to encapsulate wifi network info
//
// WiFiInfo.swift
//
// Created by Brad Greenlee on 11/7/15.
//
import Foundation
import CoreWLAN
extension CWPHYMode: CustomStringConvertible {
@ayosec
ayosec / UNIXBenchmarks-AWS-C4-C3.md
Last active May 9, 2017 15:30
AWS C3 vs C4: UNIX Benchmarks

BYTE UNIX Benchmarks

Summary

                                             c3.large           c4.large          c4 / c3
===========================================================================================
Dhrystone 2 using register variables       34752053.9 lps     43996767.0 lps       1.2660
Double-Precision Whetstone                     4459.8 MWIPS       8113.5 MWIPS     1.8193
Execl Throughput                               4110.8 lps         7697.1 lps       1.8724
@tuksik
tuksik / fix_git_ps1.sh
Last active May 4, 2024 13:56
Fix -bash: __git_ps1: command not found
#http://stackoverflow.com/questions/12870928/mac-bash-git-ps1-command-not-found
curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
echo 'source ~/.git-prompt.sh' >> ~/.bashrc
@todgru
todgru / aws-ec2-redis-cli.md
Created June 12, 2014 23:01
AWS redis-cli on EC2
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@gene1wood
gene1wood / transmission-daemon
Created February 26, 2013 18:16
Some simple logic to put the IP address of a specific interface into your /etc/sysconfig/transmission-daemon to get it to bind to that interface while issue https://trac.transmissionbt.com/ticket/2313 gets worked out. This applies to RHEL based installations.
# Username/password example
# DAEMON_ARGS="-b -t -a \"*.*.*.*\" -e /var/log/transmission/transmission.log"
# No username/password, but limited to 192.168.1.*
# DAEMON_ARGS="-b -T -a \"192.168.1.*\" -e /var/log/transmission/transmission.log"
INTERFACE=ppp0
if ifconfig $INTERFACE >>/dev/null 2>&1; then
BIND_ADDR="`/sbin/ifconfig $INTERFACE | awk '$1 == \"inet\" {print $2}' | awk -F: '{print $2}'`"
@davidwkeith
davidwkeith / index.html
Last active April 10, 2024 12:01
NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom protocol handlers. Licensed under the WFTPL http://www.wtfpl.net/txt/copying/
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!--
NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom
protocol handlers.
#! /usr/bin/env python
import fileinput
import argparse
from operator import itemgetter
parser = argparse.ArgumentParser()
parser.add_argument('--target-mb', action = 'store', dest = 'target_mb', default = 61000, type = int)
parser.add_argument('vmtouch_output_file', action = 'store', nargs = '+')
args = parser.parse_args()