This file contains hidden or 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
| # to use the "tagged" config on the commandline: | |
| # ssh -P <tagname> example.com | |
| # to reuse the config in a Host block, use as stanza within the Host block | |
| # Tag <tagname> | |
| # see also https://man7.org/linux/man-pages/man5/ssh_config.5.html | |
| # MacOS secure enclave + touchid | |
| # see also https://gist.github.com/arianvp/5f59f1783e3eaf1a2d4cd8e952bb4acf | |
| # requires downloading key first, disable password (it needs touchid anyways) |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| # porting of https://github.com/SchedMD/slurm/blob/master/contribs/seff/seff | |
| # | |
| # sacct -P -n -a --format JobID,State,Cluster,AllocCPUS,REQMEM,TotalCPU,Elapsed,MaxRSS,ExitCode,NNodes,NTasks -j 12655203 | |
| # sacct --format=Jobid,JobName,State,QOS,Partition%5,Timelimit,Elapsed,NCPU,CPUTime,TotalCpu,SystemCPU,UserCPU,ReqMem,MaxRSS,MaxVMSize $@ | |
| import sys | |
| import subprocess | |
| import json | |
| from collections import Counter |
This file contains hidden or 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 is just a test |
This file contains hidden or 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 is just a test |
This file contains hidden or 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 is just a test |
This file contains hidden or 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 is just a test |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import re | |
| node_lists = [ | |
| "clip-g1-[0-1],clip-g2-[2-3]", | |
| "clip-g1-0,clip-g2-0", | |
| "clip-g1-0,clip-g2-1", | |
| "clip-g1-1", | |
| "clip-a-[1,3,5]", | |
| "clip-b-[1-3,5]", |
This file contains hidden or 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
| require 'bunny' | |
| @rabbitmq_host = 'localhost' | |
| # here the default for :tls value is false | |
| def get_connection_options() | |
| opts = { | |
| hosts: [ @rabbitmq_host ], port: 5671, vhost: '/', | |
| pass: 'guest', user: 'guest', ssl: true, |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> | |
| <link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"> | |
| <title>CIR Status Board</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <script type="text/javascript" src="date.js"></script> |
This file contains hidden or 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
| # Adapted from solution provided by http://stackoverflow.com/users/57719/chin-huang http://stackoverflow.com/a/31465939/348868 | |
| # Scenario: You want to add a group to the list of the AllowGroups in ssh_config | |
| # before: | |
| # AllowGroups Group1 | |
| # After: | |
| # AllowGroups Group1 Group2 | |
| - name: Add Group to AllowGroups | |
| replace: | |
| backup: yes |
NewerOlder