This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
srun --account research --gres=gpu:1 --mem=64G --pty bash | |
srun --time 4-00:00:00 --account research --gres=gpu:1 --mem=64G --pty bash | |
#cpus -c cpus | |
srun --time 4-00:00:00 -c 40 --account research --gres=gpu:1 --pty bash | |
pip3 install jupyter --user | |
jupyter-notebook --no-browser --port 8080 | |
ssh -N -f -R 8080:localhost:8080 poojitha@ip | |
#use sublime(https://stackoverflow.com/questions/37458814/how-to-open-remote-files-in-sublime-text-3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
member_permissions = [ | |
"add_meetup_rsvp", | |
"add_supportrequest", | |
"change_supportrequest", | |
"delete_supportrequest" | |
] | |
organizer_permissions = member_permissions + [ | |
"add_meetup", | |
"change_meetup", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Get Question Id, title and Body | |
select Q.Id, Q.Title, G.Body | |
from | |
Posts as G, | |
(select * from Posts | |
where ParentId is null | |
and Title like 'How to%' or Title like 'how to%') | |
as Q | |
where G.ParentId = Q.Id | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script can be used to populate seed content for systers portal. | |
The file goes into systers_portal/meetup/management/commands/populate_meetups.py | |
To run after copying, use: | |
python manage.py populate_meetups | |
""" | |