Skip to content

Instantly share code, notes, and snippets.

View Scoty's full-sized avatar

Anton Antonov Scoty

  • Flutter
  • Sofia, Bulgaria
View GitHub Profile
@Scoty
Scoty / git-ssh-error-fix.sh
Created October 20, 2022 10:32 — forked from Tamal/git-ssh-error-fix.sh
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work
@Scoty
Scoty / docker-cleanup-resources.md
Last active January 17, 2019 16:05 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

newer commands

$ docker container prune
$ docker volume prune
$ docker image prune
$ docker network prune
@Scoty
Scoty / PoolingHttpClient
Created June 16, 2018 20:27 — forked from arganzheng/PoolingHttpClient
An HttpClient with PoolingHttpClientConnectionManager
package org.opentsdb.client;
import static com.google.common.base.Preconditions.checkArgument;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.apache.commons.lang.StringUtils;
import org.apache.http.HeaderElement;
import org.apache.http.HeaderElementIterator;
@Scoty
Scoty / gist:f9ee58ea38c7106871f4dfee951e5d94
Last active January 3, 2018 12:21 — forked from j3j5/gist:8b3e48ccad746b90a54a
Adyen Test Card Numbers
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373