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
#!/bin/bash | |
PROFILE=my-profile | |
REGION=us-east-1 | |
CODE_REPOSITORIES=$(aws codecommit list-repositories --no-paginate --profile=$PROFILE --region=$REGION |jq -r .repositories[].repositoryName) | |
for REPO in $CODE_REPOSITORIES; do | |
NEW_REPO_NAME="${REPO}_deprecated" | |
echo "- Reponame: ${REPO}; New name: ${NEW_REPO_NAME}" |
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
#!/bin/bash | |
PERMISSION="push" # Can be one of: pull, push, admin, maintain, triage | |
ORG="orgname" | |
TEAM_SLUG="your-team-slug" | |
# Get names with `gh repo list orgname` | |
# Change "limit" if necessary | |
gh repo list $ORG --limit 1000 --json name --json owner -q '.[] | "\(.owner.login)/\(.name)"' | while read -r REPO; do | |
echo "Repo: ${REPO}\r\n" |
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
#!/bin/sh | |
# @author: Carlos A. Bertholdo Carucce | |
# <https://github.com/carloscarucce> | |
if [[ ! -f "composer.json" ]]; then | |
echo "[Composer] composer.json was not found" >&2 | |
exit 1; | |
fi |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Exemplo Ajax</title> | |
</head> | |
<body> | |
<form action="{{ url('salvar') }}" method="post"> | |
@csrf | |
<button type="button" id="btn_add">Adicionar</button> | |
<table id="partes"> |
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
(function(){ | |
/** | |
* Focus on the next input | |
* | |
* @param current | |
* @param to | |
* | |
* @see https://bartamediagroup.com/auto-tab-html-input-fields/ | |
*/ | |
function tab(current,to){ |
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
php -S localhost:8000 -t htdocs |
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
<?php | |
//PHP 8+ | |
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] | |
class Route | |
{ | |
public function __construct( | |
public string $path, | |
public ?string $method = null, |
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
/** | |
* | |
* Secure Hash Algorithm (SHA256) | |
* http://www.webtoolkit.info/ | |
* | |
* Original code by Angel Marin, Paul Johnston. | |
* | |
**/ | |
function sha256(s) { | |
var chrsz = 8; |
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
sv_cheats 1 | |
bot_kick | |
sv_infinite_ammo 1 | |
ammo_grenade_limit_total 5 | |
sv_grenade_trajectory 1 | |
sv_grenade_trajectory_time 10 | |
sv_showimpacts 1 | |
mp_buytime 9999 | |
mp_buy_anywhere 1 | |
sv_regeneration_force_on 1 |
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
const https = require('https'); | |
/** | |
* Make a request | |
* @param {Object} options | |
* @param {Object|string} data | |
*/ | |
const requestSSL = (options, requestData = null) => new Promise((resolve, reject) => { | |
// eslint-disable-next-line consistent-return |
NewerOlder