#Using https
git remote add otheruser https://github.com/otheruser/yourrepo.git
# Or - Using SSH
git remote add otheruser [email protected]:otheruser/yourrepo.git
git fetch otheruser
@rate_limited_retry() | |
def get_search_issues(gh, author, type): | |
return gh.search_issues('', author=author, type=type) |
import sys | |
import operator | |
# Given the data part of an NMEA sentence (Remove the $, remove the * onwards, keep the last comma) | |
# calculates the checksum | |
def checksum_calculate(nmeadata): | |
csum = 0 | |
for c in nmeadata: | |
csum ^= ord(c) |
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 4.0" | |
} | |
} | |
} | |
provider "aws" { |
$rawdisks = gwmi win32_diskdrive | where {$_.partitions -eq 0} | |
foreach ($r in $rawdisks) | |
{ | |
$available=ls function:[d-z]: -n | ?{ !(test-path $_) } | SELECT -First 1 | |
$diskIndex = $r.Index | |
Write-Host "Initializing Disk $diskIndex as $available. This will take a while." | |
(echo "list disk | |
select disk $diskIndex | |
online disk | |
attributes disk clear readonly |
#!/usr/bin/env python | |
""" | |
Very simple HTTP server in python. | |
Usage:: | |
./dummy-web-server.py [<port>] | |
Send a GET request:: | |
curl http://localhost |
#!/usr/bin/python3 | |
""" | |
msysGit to Unix socket proxy | |
============================ | |
This small script is intended to help use msysGit sockets with the new Windows Linux Subsystem (aka Bash for Windows). | |
It was specifically designed to pass SSH keys from the KeeAgent module of KeePass secret management application to the | |
ssh utility running in the WSL (it only works with Linux sockets). However, my guess is that it will have uses for other |
#Using https
git remote add otheruser https://github.com/otheruser/yourrepo.git
# Or - Using SSH
git remote add otheruser [email protected]:otheruser/yourrepo.git
git fetch otheruser
#Source: https://stackoverflow.com/questions/2241063/bash-script-to-setup-a-temporary-ssh-tunnel | |
#SSH feature - control sockets | |
ssh -4 -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa -M -S my-ctrl-socket -fnNT -L 10023:remoteserver.com:8000 [email protected] | |
#Get PID - you'll have to parse this | |
ssh -S my-ctrl-socket -O check [email protected] | |
#Exit | |
ssh -S my-ctrl-socket -O exit [email protected] |
package se.marteinn.ui; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.ScrollView; | |
/** | |
* Triggers a event when scrolling reaches bottom. |
I hereby claim:
To claim this, I am signing this object: