…or create a new repository on the command line
echo "# <reponame>" >> README.md
git init
gitmyname
git add README.md
git commit -m "first commit"
- Answer in English | |
- Do not give high-level responses; your task is to provide concrete, project-applicable solutions | |
- Do not give detailed explanations, but describe the purpose of each change | |
- Before making changes, outline an implementation plan in bullet points, then proceed to implementation | |
- Follow linters when writing code | |
#github.com/QuantGeekDev/docker-mcp |
#!/usr/bin/env bash | |
# Fetch Git configuration values | |
REMOTE_URL=$(git config --get remote.origin.url) | |
USER_EMAIL=$(git config user.email) | |
echo "🔍 Git Hook Running..." | |
echo "➡ Remote URL: $REMOTE_URL" | |
echo "➡ User email: $USER_EMAIL" |
* * * * * cd /var/www/html2/laravel && sleep 5 && ./vendor/bin/sail php artisan queue:work --sleep=3 --tries=2 --max-time=3600 --stop-when-empty >> /var/www/html/laravel/storage/logs/crontab.log 2>&1 |
#!/usr/bin/env sh | |
osascript -e 'tell application "Terminal" to do script "cd /Users/Files/www/work/docker; ./docker/start.sh;"' | |
osascript -e 'tell application "Terminal" to do script "cd /Users/Files/www/work/angular; npm start;"' | |
osascript -e 'tell application "Terminal" to do script "cd /Users/Files/www/work/api; sleep 30; ./scripts/docker/queues.sh;"' | |
exit |
// ==UserScript== | |
// @name Automatically like comments at studio.youtube.com | |
// @namespace https://github.com/Lysak | |
// @version 0.2 | |
// @author Dmytrii Lysak @Lysak | |
// @match https://studio.youtube.com/* | |
// @require https://code.jquery.com/jquery-3.6.3.min.js | |
// @grant none | |
// @run-at document-end | |
// @description Automatically like comments at studio.youtube.com (Code License: MIT License) |
function array_diff_multidimensional($arr1, $arr2): array | |
{ | |
$check = is_array($arr1) && count($arr1) > 0; | |
$result = ($check) ? ((is_array($arr2) && count($arr2) > 0) ? $arr2 : []) : []; | |
if ($check) { | |
foreach ($arr1 as $key => $value) { | |
if (isset($result[$key])) { | |
$result[$key] = array_diff($value, $result[$key]); | |
} else { | |
$result[$key] = $value; |
// ==UserScript== | |
// @name Automatically enable filter "Just my tasks" in Asana project | |
// @namespace https://github.com/Lysak | |
// @version 0.1.5 | |
// @description Automatically enable filter "Just my tasks" in Asana project (Code License: MIT License) | |
// @author Dmytrii Lysak @Lysak | |
// @match https://app.asana.com/* | |
// @icon https://www.google.com/s2/favicons?domain=asana.com | |
// @grant none | |
// @noframes |