/[\u0600-\u06ff]|[\u0750-\u077f]|[\ufb50-\ufbc1]|[\ufbd3-\ufd3f]|[\ufd50-\ufd8f]|[\ufd92-\ufdc7]|[\ufe70-\ufefc]|[\uFDF0-\uFDFD]/
Arabic (0600—06FF, 225 characters)
Arabic Supplement (0750—077F, 48 characters)| import PDFParser from 'pdf2json'; | |
| import { test, expect } from '@playwright/test'; | |
| test.describe('assert PDF contents using Playwright', () => { | |
| let pdfContents: any | |
| test.beforeAll(async () => { | |
| pdfContents = await getPDFContents('./pdf_sample.pdf') | |
| }) | |
| test('pdf file should have 6 pages', async () => { |
| Write-Output "Disabling WinRM over HTTP..." | |
| Disable-NetFirewallRule -Name "WINRM-HTTP-In-TCP" | |
| Disable-NetFirewallRule -Name "WINRM-HTTP-In-TCP-PUBLIC" | |
| Get-ChildItem WSMan:\Localhost\listener | Remove-Item -Recurse | |
| Write-Output "Configuring WinRM for HTTPS..." | |
| Set-Item -Path WSMan:\LocalHost\MaxTimeoutms -Value '1800000' | |
| Set-Item -Path WSMan:\LocalHost\Shell\MaxMemoryPerShellMB -Value '1024' | |
| Set-Item -Path WSMan:\LocalHost\Service\AllowUnencrypted -Value 'false' | |
| Set-Item -Path WSMan:\LocalHost\Service\Auth\Basic -Value 'true' |
| #!/bin/bash | |
| # Purpose: Bulk-delete GitLab pipelines older than a given date | |
| # Author: github.com/chrishoerl | |
| # GitLab API: v4 | |
| # Requirements: jq must be instaled ($ sudo apt install jq) | |
| # API example: https://gitlab.example.com/api/v4/projects | |
| # API example: https://gitlab.example.com/api/v4/projects/<projectid>/pipelines | |
| # | |
| # NOTE: Script is just a dryrun. To really delete pipelines, simply uncomment line 49 to activate | |
| # |
| let isRefreshing = false; | |
| let refreshSubscribers = []; | |
| const instance = axios.create({ | |
| baseURL: Config.API_URL, | |
| }); | |
| instance.interceptors.response.use(response => { | |
| return response; | |
| }, error => { |
| export {} | |
| declare global { | |
| interface Date { | |
| addDays(days: number, useThis?: boolean): Date; | |
| isToday(): boolean; | |
| clone(): Date; | |
| isAnotherMonth(date: Date): boolean; | |
| isWeekend(): boolean; | |
| isSameDate(date: Date): boolean; |
| /* | |
| * Javascript Annotations | |
| * | |
| * Maybe I am ahead of my time, or behind the times (asm.js). | |
| * Either way, this is how they work (or could work) if you aren't afraid of some simple RegExp magic. | |
| * | |
| * @author Nijiko Yonskai | |
| * @license MIT (or whatever college/license/name you prefer ;) | |
| * @copyright 2013 | |
| */ |
| Cypress.Commands.add('retryRequest', (url, options) => { | |
| Cypress._.defaults(options, { | |
| method: 'GET', | |
| body: null, | |
| headers: { | |
| 'content-type': 'application/json' | |
| }, | |
| retries: 0, | |
| function: false, | |
| timeout: 0 |
| /* | |
| * This script will download a package (and all of its dependencies) from the | |
| * online NPM registry, then create a gzip'd tarball containing that package | |
| * and all of its dependencies. This archive can then be copied to a machine | |
| * without internet access and installed using npm. | |
| * | |
| * The idea is pretty simple: | |
| * - npm install [package] | |
| * - rewrite [package]/package.json to copy dependencies to bundleDependencies | |
| * - npm pack [package] |
| Get-Command # Retrieves a list of all the commands available to PowerShell | |
| # (native binaries in $env:PATH + cmdlets / functions from PowerShell modules) | |
| Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft* | |
| Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item" | |
| Get-Help # Get all help topics | |
| Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page) | |
| Get-Help -Name Get-Command # Get help for a specific PowerShell function | |
| Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command |