Skip to content

Instantly share code, notes, and snippets.

View agea's full-sized avatar
🐺
trying to invent

Andrea Agili agea

🐺
trying to invent
View GitHub Profile

To connect to an SFTP server using Cyberduck with a private key, you can follow these steps:

  1. Download and Install Cyberduck: If you haven't installed Cyberduck on your system, you can download it from the official website: Cyberduck.

  2. Open Cyberduck: Launch the Cyberduck application on your computer.

  3. Create a New Connection:

  • Click on the "Open Connection" button or navigate to "File" -> "Open Connection" to create a new connection.
{
"name": "Mini Pool",
"description": "Cardano stakepool on Mini",
"ticker": "TEST",
"homepage": "https://gist.github.com/agea/a9d57161440ed4bc06c9c5d2711bcc21"
}
@agea
agea / circle_intersection.py
Created February 12, 2018 00:35
Circle Intersection
"""
http://paulbourke.net/geometry/circlesphere/
Created on Sat Apr 8th 2017
Circle Intersection
@PythonVer: Tested in 2.7.10 and 3.6
@Author: Matt Woodhead
@agea
agea / tunnel.sh
Created February 14, 2015 14:33
reverse ssh persistent tunnel
#!/bin/bash
set +e
SSH_OPTIONS=" -i /home/pi/.ssh/id_rsa"
# Always assume initial connection will be successful
#export AUTOSSH_GATETIME=0
# Disable echo service, relying on SSH exiting itself
export AUTOSSH_PORT=0
#to test, use (check out man ssh for explanation of options:
#autossh -vv -- $SSH_OPTIONS -o 'ControlPath none' -R 31416:localhost:22 pi@agea.noip.me -N
#once proven, use (and rem out previous command):

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@agea
agea / sha1.py
Created October 10, 2014 14:01
python sha1
from struct import pack, unpack
def sha1(data):
""" Returns the SHA1 sum as a 40-character hex string """
h0 = 0x67452301
h1 = 0xEFCDAB89
h2 = 0x98BADCFE
h3 = 0x10325476
h4 = 0xC3D2E1F0

Keybase proof

I hereby claim:

  • I am agea on github.
  • I am agea (https://keybase.io/agea) on keybase.
  • I have a public key whose fingerprint is 4DF2 A63A 42B4 62E1 A372 8B82 375B D0D8 7AC7 7624

To claim this, I am signing this object:

@agea
agea / jboss.conf
Created February 3, 2014 13:42
JBoss configuration for supervisord (JBoss versions: 4.2.3, 5.1.0, 6.0.0)
[program:jboss-4.2.3]
command=java -server -Xms128m -Xmx256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/home/drwolf/jboss-4.2.3.GA/lib/endorsed -classpath /home/drwolf/jboss-4.2.3.GA/bin/run.jar org.jboss.Main -c default -b 0.0.0.0
stdout_logfile=NONE
stderr_logfile=NONE
autorestart=true
autostart=true
user=drwolf
[program:jboss-5.1.0]
@agea
agea / regioni-italia.js
Last active December 31, 2015 17:48
raphaeljs: regioni italiane - italian regions
//source http://commons.wikimedia.org/wiki/File:Italian_region.svg
var paper = Raphael("paper", 1200, 1500);
var reg = {};
reg.marche = paper.path("M 609.71875,460.40625 C 609.69801,460.57933 609.64342,460.85402 609.59375,461.21875 L 609.5,461.21875 C 609.43115,461.53473 609.36745,461.85881 609.28125,462.1875 C 609.22432,462.40457 609.16172,462.62169 609.09375,462.8125 C 609.02578,463.00331 609.05679,463.13071 608.71875,463.46875 C 608.40909,463.77841 607.9928,464.35096 607.46875,464.875 C 607.3066,465.03715 607.10473,465.20274 606.96875,465.375 C 606.90076,465.46113 606.858,465.55562 606.84375,465.59375 C 606.85568,466.16981 607.01513,466.54638 607.15625,466.6875 C 607.40352,466.93477 608.22923,467.44796 608.5,468.53125 C 608.53319,468.66402 608.64793,468.85186 608.8125,469.1875 C 608.97707,469.52314 609.15624,470.01198 609.15625,470.625 C 609.15625,471.7119 608.83394,472.95801 607.6875,473.53125 C 607.56696,473.59152 607.37426,473.75026 607.03125,473.96875 C 606.68824,474.18724 606.15222,474.40625 60
@agea
agea / province-toscana.js
Created December 17, 2013 08:39
province toscane raphaeljs
var paper = Raphael("paper", 300, 330);
var l1 = paper.path("M 247.95786495790344,433.44925194919415 247.95786495790344,429.5048000047427 251.57361257365073,428.84739134733354 251.90231690235532,433.44925194919415 247.95786495790344,433.44925194919415 z");
var l2 = paper.path("M 220.69537369541194,384.32331482325753 222.33889533893353,390.2399927399347 217.0796260796642,388.92517542511814 220.69537369541194,384.32331482325753 z");
var l3 = paper.path("M 189.25495825499638,313.8269883269304 185.6392106392491,317.77144027138274 183.9956889957275,311.5260580260001 187.9401409401794,305.93808443802664 189.58366258370097,309.5538320537744 189.25495825499638,313.8269883269304 z");
var l4 = paper.path("M 264.26866526870344,355.1807576807005 259.66680466684284,357.81039231033446 261.3103263103644,359.4539139538565 264.59736959740803,362.4122529121951 263.2825522825906,366.685409185352 260.65291765295615,366.0280005279428 257.36587436591253,365.04188754182996 254.7362397362781,358.46780096774364 249.4769704770087