Install watchdog
# pacman -S watchdog
>
This file contains 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
local platform = script.Parent | |
local isTouched = false | |
local function fade(fadeDuration: number, reaperance: number) | |
local fadeIntervals = 29 | |
local intervalFraction = fadeDuration / fadeIntervals | |
return function () | |
if not isTouched then |
Command | Shortcut |
---|---|
xfce4-screenshooter --fullscreen --clipboard |
Ctrl + PrtScrn |
xfce4-screenshooter --fullscreen --save /home/dianjuar/Pictures |
PrtScrn |
xfce4-screenshooter --region --clipboard |
Ctrl + Shift + PrtScrn |
xfce4-screenshooter --region --save /home/dianjuar/Pictures |
Shift + PrtScrn |
xfce4-screenshooter --window --clipboard |
Ctrl + Super + PrtScrn |
xfce4-screenshooter --window --save /home/dianjuar/Pictures |
Super + PrtScrn |
To init the server
npm run sonar:init-server
To run the analysisnpm run sonar:analysis
To inspect the analysis, go to http://localhost:9000. The credentials are admin
and password 12345
This file contains 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
# Pull Request ID | |
export BC_PR_ID="${BC_PR_ID:-${CI_PULL_REQUEST##*/}}"; | |
REPO=$CI_PULL_REQUEST; | |
REPO=${REPO##https://github.com/}; | |
REPO=${REPO%%/pull/$BC_PR_ID}; | |
# Repo Slug | |
export BC_REPO_SLUG=$REPO; |
This file contains 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 the image | |
docker pull sonarqube | |
docker pull sonarsource/sonar-scanner-cli | |
# Create the container | |
docker run --name=sonarqube -p 9000:9000 sonarqube | |
# Star the stoped container | |
docker start sonarqube --interactive |
This file contains 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
nx run your-project:executor |
This file contains 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 { TreeNode } from './node'; | |
export class PerfectBinaryTree<T> { | |
/** | |
* The height or levels the binary tree | |
*/ | |
private _height: number; | |
public get height(): number { | |
return this._height; | |
} |
Verify what Postgres extension belongs to what schema
SELECT
e.extname AS "Name",
e.extversion AS "Version",
n.nspname AS "Schema",
c.description AS "Description"
FROM pg_catalog.pg_extension e
LEFT JOIN pg_catalog.pg_namespace n