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
| Go to onedrive folder in your pc and create a folder for git repository. | |
| Usually onedrive resides in `C:\Users\%username%\OneDrive` | |
| Open GitBash | |
| cd ~/OneDrive | |
| mkdir git | |
| cd git | |
| mkdir myproject | |
| cd myproject |
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
| download PsExec from this URL : https://technet.microsoft.com/en-us/sysinternals/bb897553 | |
| execute this command : psexec -s -i “%programfiles%\Internet Explorer\iexplore.exe” | |
| IE will open | |
| make IE happy | |
| close it | |
| never touch it again | |
| https://rostacik.net/2017/06/12/my-karma-tests-are-failing-in-ie-on-my-jenkins-and-i-dont-know-why/ |
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
| cd C:\Users\%username%\AppData\Local | |
| rmdir /S /Q Temp | |
| del C:\Windows\Prefetch\*.* /Q | |
| del C:\Windows\Temp\*.* /Q | |
| del C:\Users\%username%\AppData\Local\VSEQT\QTAgent\*.* /Q | |
| del C:\Users\%username%\AppData\Local\VSEQT\QTController\*.* /Q |
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
| Run Tsung | |
| -------------------------------- | |
| tsung -f /root/tsung-scenarios/basic2.xml -l /root/tsung-scenarios/log/ start | |
| tsung-recorder record_tag "<transaction name='groups'>" | |
| plot | |
| -------------------------------- | |
| /usr/lib/tsung/bin/tsung_stats.pl | |
| /usr/local/lib/tsung/bin/tsung_stats.pl |
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
| import { Selector } from 'testcafe'; | |
| var textract = require('textract'); | |
| fixture `File read and assert` | |
| .page(about:blank); | |
| test('test file content', async t => { | |
| const fullFilePath = 'c:\\temp\\test.pptx'; | |
| const stringToSearch = 'ABCDXYZ1234'; |
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
| Get-ChildItem -r -Depth 1 -include "web.config" | | |
| foreach-object { $a = $_.fullname; ( get-content $a ) | | |
| foreach-object { $_ -replace "oldstring","newstring" } | | |
| set-content $a } |
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
| // RHEL, Fedora and CentOS based distributions | |
| sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc | |
| sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' | |
| yum check-update | |
| sudo yum install code |
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
| $webhook = "SLACK INCOMING WEBHOOK URL" | |
| $attachments = @(@{ | |
| "pretext" = "Lab 7 Smoke Test" | |
| "color"="danger" | |
| "text"= "14/43 failed (5 mins)" | |
| }) | |
| $payload = | |
| @{ | |
| "attachments" = $attachments |
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 csv | |
| import Queue | |
| import threading | |
| import ystockquote as ys | |
| def gen_info_list(tickers, start, end): | |
| ''' |
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
| import numpy | |
| import pandas as pd | |
| import math as m | |
| #Moving Average | |
| def MA(df, n): | |
| MA = pd.Series(pd.rolling_mean(df['Close'], n), name = 'MA_' + str(n)) | |
| df = df.join(MA) | |
| return df |