Skip to content

Instantly share code, notes, and snippets.

View jwtea's full-sized avatar

Jack Taylor jwtea

View GitHub Profile
@jwtea
jwtea / README.md
Last active August 28, 2020 14:45
Migrating Bitbucket repository to Github
  • Create new repository on github
  • From your local copy add the new repository as remote upstream git remote add upstream <new repo ssh url>
  • For each branch that needs to be copied (i.e master, develop and any active non merged branches) check out the latest to your local and rungit push upstream <branch name>
  • Push any tags git push --tags upstream
  • Check that everything has been brought across
  • Set the origin url to the new repository git remote set-url origin <new repo ssh url>
  • Delete the upstream remote git remote remove upstream
  • Open in github desktop and all should be gravy
@jwtea
jwtea / tmux-cheatsheet.markdown
Created January 3, 2018 10:06 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3DLwtAbCK7EBr5mt9du+wU1KWipZ/CLOfLzGH+dvZSeOYYEUQn+HJyAHzlPhqVhDqRWPvbgqfttNn7O8Cp3Rz27ee3uTifbgH1dvnTeYu3jtIYxoStlJuaK+CIntuvM2jUv5Vewb/s7B5yQ2kyajs3T/9hiRAPoA2wi4ogPdru13Y+ro4EDNzoXQYNaQe07+YAEdCSsLJC2g549kuf7W6oYS9/YAVz24plcEeZmro7QD6Xwp4jP46C2tUUvakTfUAbWurAy62B2LTpf4CF8bE+PQA4YEflTIQOZQc5VuvvpvZ5cLP6c2PHVWmV2iuECW7XhsyPwxmx6sr1fZDtmOD jack@Jacks-iMac.local
### Keybase proof
I hereby claim:
* I am jwtea on github.
* I am jwtea (https://keybase.io/jwtea) on keybase.
* I have a public key ASAeZEsnJyV9ANWG2NcIbpzVG9QGy3RMXOYb6OURggNg_Ao
To claim this, I am signing this object:
public function getTeamRepoList()
{
$repository = new Repository();
$repository->getClient()->addListener(
new \Bitbucket\API\Http\Listener\OAuth2Listener(
array('access_token' => Session::get('oauth_access_token'))
)
);
$return = json_decode($repository->get('genecommerce','?pagelen=100')->getContent(),true);
//fix this properly
package wiflyServer;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class Server {
static gui goo; //Create a new Gui object
public static Socket socket; //Create a new socket object
public static void conn(){
try {
ServerSocket clientSocket = new ServerSocket(2042); //Set up a server socket listening on the port 2042
package wiflyServer;
import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.net.Socket;
public class gui {
def openCsvDebug(filename):
data = {}
with open("C:/Python27/pythoncbr/data/"+filename,"rb") as f:
reader = csv.DictReader(f)
for row in reader:
if row['Customer ID'] != "":
key = row['Customer ID']
temp = (row['prodID'],row['Amount'])
data.setdefault(key, [])
data[key].append(temp)
data = {}
with open("C:/Python27/pythoncbr/data/"+filename,"rb") as f:
reader = csv.DictReader(f)
for row in reader:
if row['Customer ID'] != "":
key = row['Customer ID']
data.setdefault(key, [])
data[key].append(row['prodID'])
if row['Customer ID'] == "":
data[key].append(row['prodID'])