Skip to content

Instantly share code, notes, and snippets.

View icaoberg's full-sized avatar
:bowtie:
Coding…

icaoberg icaoberg

:bowtie:
Coding…
View GitHub Profile
@icaoberg
icaoberg / remove.sh
Created March 6, 2013 21:32
[Git] Remove all *.pyc files from your git repository
#!/bin/bash
find . -name "*.pyc" -exec git rm {} \;
git commit -m "Removed compiled python files in distribution left after last commit"
@icaoberg
icaoberg / getdata.sh
Created April 4, 2013 18:36
[Human Protein Atlas] Helper script that downloads images from the database given a file with accession ids
#!/bin/bash
# Author: Ivan E. Cao-Berg ([email protected])
#
# Copyright (C) 2013 Murphy Lab
# Lane Center for Computational Biology
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
@icaoberg
icaoberg / killthemall.sh
Last active May 6, 2024 16:37
[PBS] Delete all of the jobs associated to a specific user
#!/bin/bash
USERNAME=icaoberg
#to kill all the jobs
qstat -u$USERNAME | grep "$USERNAME" | cut -d"." -f1 | xargs qdel
#to kill all the running jobs
qstat -u$USERNAME | grep "R" | cut -d"." -f1 | xargs qdel
@icaoberg
icaoberg / listgroups.sh
Created May 25, 2013 17:20
[OMERO.server][OMERO.searcher] List groups using the command line tools
#!/bin/bash
bin/omero group list
@icaoberg
icaoberg / addgroup.sh
Created May 25, 2013 17:23
[OMERO.server][OMERO.searcher] Add a group using the command line tools
#!/bin/bash
GROUPNAME=developers
bin/omero group add $GROUPNAME
@icaoberg
icaoberg / groupid.sh
Created May 25, 2013 17:27
[OMERO.server][OMERO.searcher] Get group id using the command line tools
#!/bin/bash
GROUPNAME=developers
omero group list | grep $GROUPNAME | cut -d"|" -f1
@icaoberg
icaoberg / numberofusers.sh
Created May 25, 2013 17:29
[OMERO.server][OMERO.searcher] Get number of users in a group using the command line tools
#!/bin/bash
GROUPNAME=developers
omero group list | grep $GROUPNAME | cut -d"|" -f5
@icaoberg
icaoberg / adduser2group.sh
Created May 25, 2013 18:31
[OMERO.server][OMERO.searcher] Add a user to an existing group using the command line tools
#!/bin/bash
USERNAME=icaoberg
GROUPNAME=developers
omero group insert $GROUPNAME $USERNAME
@icaoberg
icaoberg / removeuserfromgroup.sh
Created May 25, 2013 18:32
[OMERO.server][OMERO.searcher] Remove a user to an existing group using the command line tools
#!/bin/bash
USERNAME=icaoberg
GROUPNAME=developers
omero group remove $GROUPNAME $USERNAME
@icaoberg
icaoberg / copyallusers.sh
Created May 25, 2013 18:35
[OMERO.server][OMERO.searcher] Copy all the users from one group to another
#!/bin/bash
FIRSTGROUPNAME=developers
SECONDGROUPNAME=murphylab
omero group copyusers $FIRSTGROUPNAME $SECONDGROUPNAME