If you get error:
run npm command gives error "/usr/bin/env: node: No such file or directory
in file watcher
| import {Builder, By, until, Browser, Key, WebDriver, WebElement, ThenableWebDriver} from 'selenium-webdriver'; | |
| import chrome, {Options} from 'selenium-webdriver/chrome'; | |
| const screen: {width: number, height: number} = { | |
| width: 640, | |
| height: 480 | |
| }; | |
| /*let driver = new Builder() |
| import os | |
| import zipfile | |
| def zip_project_subfolders(directory): | |
| # Sub-subfolders to ignore | |
| ignore_folders = {'.idea', '.git', 'env', 'node_modules'} | |
| for item in os.listdir(directory): | |
| item_path = os.path.join(directory, item) | |
| if os.path.isdir(item_path) and item != 'the_project_you_dont_want_to_keep': |
| sv_cheats 1 | |
| This command allows cheat codes to be used on the practice server. | |
| sv_infinite_ammo 1 | |
| This command gives you limitless ammunition and eliminates the need to reload. | |
| sv_grenade_trajectory_prac_pipreview 1 | |
| This command gives you a preview of where the grenade will land. | |
| sv_grenade_trajectory_prac_trailtime 15 |
| ############################### | |
| ##### SNORT rule creator ###### | |
| # http://snorpy.cyb3rs3c.net/ # | |
| ############################### | |
| # Test configuration file | |
| sudo snort -T -i enp0s3 -c /etc/snort/snort.conf | |
| # ping alert #01 |
| to modify lines=> | |
| :<start_line_number>,<end_line_number>s/<regex>/<text> | |
| for example to add comment on start from line 5 to 10: ":5,10s/^/#" | |
| to undo this: ":5,10s/^#//" | |
| @ECHO OFF | |
| if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK | |
| if NOT EXIST Private goto MDPrivate | |
| :CONFIRM | |
| echo Are you sure to lock this folder? (Y/N) | |
| set/p "cho=>" | |
| if %cho%==Y goto LOCK | |
| if %cho%==y goto LOCK | |
| if %cho%==n goto END | |
| if %cho%==N goto END |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| const gulp = require('gulp'); | |
| const plumber = require('gulp-plumber'); | |
| const notify = require('gulp-notify'); | |
| const sass = require('gulp-sass'); | |
| const pug = require('gulp-pug'); | |
| const rename = require('gulp-rename'); | |
| const auto_prefixer = require('gulp-autoprefixer'); | |
| const browser_sync = require('browser-sync').create(); | |
| const _slugify = str => { | |
| str = str.toLowerCase(); | |
| str = str.replace(/[^a-z0-9 -]/g, '') // remove invalid chars | |
| .trim() // remove starting or ending whitespace before replacing whitespace | |
| .replace(/\s+/g, '-') // collapse whitespace and replace by - | |
| .replace(/-+/g, '-'); // collapse dashes | |
| return str; | |
| } |