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 zsh | |
| for FOLDER in *(/); do | |
| if [[ -d "$FOLDER/.git" ]]; then | |
| cd "$FOLDER" || continue | |
| MODIFIED_FILES=("${(@f)$(git ls-files -m)}") | |
| if (( ${#MODIFIED_FILES[@]} > 0 )); then | |
| echo "Applying chmod 644 in $FOLDER" |
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
| document.addEventListener("DOMContentLoaded", () => | |
| fetch( | |
| "https://gist.githubusercontent.com/angeloevangelista/fc5effcbef0ff83fb02d2ef3a5f1972d/raw/a4cff3e545b8f0fca5d0933de254ada29c71cbd8/script.js" | |
| ) | |
| .then((response) => response.text()) | |
| .then((scriptContent) => { | |
| eval(scriptContent); | |
| login({ | |
| user: "USER", | |
| password: "PASSWORD", |
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
| #!/bin/bash | |
| CREDENTIALS=$(curl -s -H "Authorization: $AWS_CONTAINER_AUTHORIZATION_TOKEN" "$AWS_CONTAINER_CREDENTIALS_FULL_URI") | |
| export AWS_ACCESS_KEY_ID=$(jq -r .AccessKeyId <<< "$CREDENTIALS") | |
| export AWS_SECRET_ACCESS_KEY=$(jq -r .SecretAccessKey <<< "$CREDENTIALS") | |
| export AWS_SESSION_TOKEN=$(jq -r .Token <<< "$CREDENTIALS") | |
| EXPORT_STRING="export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID; export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY; export AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN;" |
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 fs from 'fs'; | |
| import path from 'path'; | |
| const rootPath = "/Users/angelo/www/my-app" | |
| const contextRelativePath = "pkg/some_package" | |
| const fileName = "file_name.go" | |
| const fileLines = fs | |
| .readFileSync(path.join(rootPath, contextRelativePath, fileName)) | |
| .toString() |
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
| { | |
| "breadcrumbs.filePath": "on", | |
| "breadcrumbs.enabled": true, | |
| "languageTool.enabled": true, | |
| "languageTool.language": "en", | |
| "workbench.startupEditor": "newUntitledFile", | |
| "workbench.editor.labelFormat": "short", | |
| "workbench.iconTheme": "material-icon-theme", |
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
| #!/bin/bash | |
| for var in $(printenv); do env_arr="${env_arr}{\"key\":\"${var%%=*}\",\"value\":\"${var#*=}\"},"; done | |
| export ENV_JSON=[${env_arr%,}] | |
| echo "${ENV_JSON}" | jq -r |
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
| const requestData = { | |
| grant_type: 'client_credentials', | |
| client_id: pm.environment.get('bitbucket_client_id'), | |
| client_secret: pm.environment.get('bitbucket_client_secret'), | |
| } | |
| const payload = Object | |
| .entries(requestData) | |
| .map(([key, value]) => `${key}=${value}`,) | |
| .join('&'); |
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
| Write-Output "Gonna press Enter for u 😎" | |
| Timeout /T 1800 | |
| $wshell = New-Object -ComObject wscript.shell; | |
| $wshell.AppActivate('Title') | |
| Sleep 1 | |
| $wshell.SendKeys('~') |
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
| #!/bin/bash | |
| xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
| xrandr --addmode eDP-1 1920x1080 | |
| xrandr --output eDP-1 --mode 1920x1080 |
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
| @echo off | |
| :: BatchGotAdmin | |
| :------------------------------------- | |
| REM --> Check for permissions | |
| IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" ( | |
| >nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system" | |
| ) ELSE ( | |
| >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" | |
| ) |
NewerOlder