How to link to specific line number on AWS CodeCommit - aws-codecommit

I know you can link to a specific line number on GitHub using the syntax #L55 where 55 is the line number. How do you link to a specific line number in AWS CodeCommit? Thanks.

AWS CodeCommit doesn't support linking to line numbers at this time.

Related

Cloudflare Bulk domain Add Automation

Looking for cloudflare solution.
trying to bulkonbaord 20 domains into CF account.
I am on Windows 10 running flarectl package for Windows.
I was able to set the necessary keys and env.
Now I want to add more domains in bulk from a txt file.
The solution provided here is containing only the linux commands.
https://support.cloudflare.com/hc/en-us/articles/360000841472-Adding-Multiple-Sites-to-Cloudflare-via-Automation
unable to execute or convert into windows.
for domain in $(cat domains.txt); do flarectl zone create --zone=$domain --jumpstart=false; done
Can anybody tell me the changes needed for Windows?
Kind regards and many thanks
Create a comma separated file "domains.txt" with the domains you plan to add to CloudFlare.
Open the command line and type (replacing path_to_file and path_to_flarectl accordingly):
set /P domains=<path_to_file\domains.txt
for %d in (%domains%) do (
path_to_flarectl\flarectl.exe zone create --zone=%d --jumpstart=false
)
Obs.: I've noticed a 50 entries limit.

Delete artifacts which are not downloaded for 6 months

In JFrog Artifactory, I need to delete the artifacts which are not downloaded for a period of 6 months. I have gone through the JFrog repository. It is mentioned to run via REST API, but I am not pretty sure how to use it.
How can we implement this? or if there is some other way?
I would recommend to refer to this user plugin, artifactCleanUp plugin can be used to delete artifacts which are not downloaded for certain days/months.
The easiest way would be to use the delete command of the JFrog CLI.
The command accepts a file spec.
Write an AQL query with Relative Time Operators, and pass it in the aql field of the file spec.

Identifying all unix commands from a file

I need to scan through a file which has some unix shell commands and its output. I need to extract the list of unix commands mentioned throughout the file and list them down onto a different file. One way to achieve it to scan through the file for some specific list of commands and if present to redirect them to a different file. But this gets difficult as the list kept growing. Any other ideas in this line.
TIA
You can get a list of all commands available in bash with compgen. If you want to use a whitelist approach, you could store the output of compgen -ac (aliases and commands) in a file and then check each token in your input file against that list.
More details on usage of compgen can be found on this answer.

How run multiple meteor servers on different ports

How can meteor run on multiple ports.For example if the meteor run on 3000 i need another meteor app run on the same terminal.Please help me.
You can use the --port parameter:
`meteor run --port 3030`
To learn more about command line parameters, run meteor help <command>, e.g. meteor help run.
I see you've tagged your question meteor-up. If you're actually using mup, check out the env parameter in the config file.
I think the OP was referring to the exceptions caused because of locks on the mongo db. I am only on this platform for last week - and am learning as quick as I can. But when I tried running my application from the same project directory as two different users on two different ports - I got an exception about MongoDB :
Error: EBUSY, unlink 'D:\test\.meteor\local\db\mongod.lock'
The root of the issue isn't running on different ports - it is the shared files between the two instances - Specifically the database.
I don't think any of your answers actually helped him out. And .. neither can I yet.
I see two options -
First -
I am going to experiment with links to see if I can get the two users to use a different folder for the .meteor\local tree ... so both of us can work on the same code at the same time - but not impact each other when testing.
But I doubt if that is what the OP was referring to either (different users same app)...
Second - is trying to identify if I can inject into the run-mongo.js some concept of the URL / port number I am running on, so the mongodb.lock (and db of course) ... are named something like mongodb.lock-3000
I don't like the 2nd option because then I am on my own version of standard scripts.
B
No, it is mainly used the default port of 3000 or any state at the start, and the following (+1) to Mongo.
That is, the following application can be run through a 2-port, already in 3002, hence the previous 2-port as before - it is 2998.
Check can be very simple (Mac, Linux):
ps|grep meteor

Nexus: How many artifacts do we have?

At work, we have been using Nexus OSS 1.8.0 for a few years now. Recently, I (as a Nexus admin) have been asked how many artifacts are in our instance. It's a very simple question, but I can't for the life of me find an answer anywhere:
I couldn't find it in Nexus' UI, Google or here;
Looking at Nexus' REST API, there is a search endpoint (two, actually, although data_index is now deprecated), which also returns how many results the query yielded (field totalCount), except that I haven't figured out how to just search for everything: providing an empty parameter yields a 400 response.
I provided a reasonable estimate of many artifacts we have, and that's good enough for now, but I had more work than I felt I should've had... Did anybody have the same problem?
Update:
I needed to know how many internal artifacts we have (as opposed to external dependencies from Maven Central and the like), so I ended up GET-ing:
http://<OUR-NEXUS>/service/local/lucene/search?q=*&repositoryId=<OUR-REPO>
for every hosted repository and adding up the totalCount fields.
For the full count, searching for q=* yielded too many results, so I ran:
find $PATH_TO_SONATYPE_HOME | grep sha1 | egrep -v 'nexus-maven-repository-index|repository-metadata|maven-metadata|\.pom\.sha1' | wc -l
But I'm still surprised this type of information isn't readily available...
Try the following:
find $PATH_TO_SONATYPE_HOME -name "*.jar" | wc -l
It will only count JAR artfacts but that normally accounts for the bulk of files stored in Nexus
What Mark suggested is ok, but if you count sha1 files instead, you'll get a more accurate count as nexus will create that file on upload of every artifact.

Resources