Skip to content

Instantly share code, notes, and snippets.

View rvesse's full-sized avatar

Rob Vesse rvesse

View GitHub Profile
@mljohns89
mljohns89 / AwsEcsFargateConfig.java
Last active May 25, 2022 13:39
Example Config for Making Eureka work with AWS ECS Fargate
@Configuration
@Slf4j
public class AwsEcsFargateConfig {
private static final String AWS_API_VERSION = "v2";
private static final String AWS_METADATA_URL = "http://169.254.170.2/" + AWS_API_VERSION + "/metadata";
@Value("${server.port}")
@Apsu
Apsu / infuse.py
Last active October 9, 2015 11:13
Destiny Infusion Path Calculator
#!/usr/bin/env python3
import argparse
import functools
import itertools
# Legendary Mark cost per infusion
COST = 3
@magicznyleszek
magicznyleszek / jekyll-and-liquid.md
Last active January 12, 2024 03:46
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

@XVilka
XVilka / TrueColour.md
Last active July 9, 2024 23:28
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@jabbrwcky
jabbrwcky / InsecureHttpClient.java
Created February 6, 2012 13:15
A sample how to configure Apache HTTPClient (4.+) to accept SSL connections *without* certificate and hostname validation
package net.hausherr.sample;
import org.apache.http.client.CookieStore;
import org.apache.http.conn.routing.HttpRoute;
import org.apache.http.conn.routing.HttpRoutePlanner;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.conn.ssl.TrustStrategy;
@alotaiba
alotaiba / gist:913313
Created April 11, 2011 10:06
Using rsync to sync files to an Amazon EC2 instance using SSH key
rsync -avz /path/to/local/sync/folder -e "ssh -i /path/to/ssh/key" ubuntu@ec2instance:/path/to/remote/sync/folder