Skip to content

Instantly share code, notes, and snippets.

View dougkusanagi's full-sized avatar
🏠
Working from home

Douglas Lopes dougkusanagi

🏠
Working from home
View GitHub Profile
@dougkusanagi
dougkusanagi / graphql-client-guzzle.php
Last active October 18, 2023 22:12 — forked from mohamedhafezqo/example.php
GraphQL Client For PHP Using Guzzle
<?php
$endPoint = 'https://api.github.com/graphql';
$query = <<<'GRAPHQL'
query getUsers {
user {
id
name
}
@dougkusanagi
dougkusanagi / settings.json
Created March 17, 2023 04:16
vscode-settings
{
"editor.fontFamily": "'Fira Code', 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.lineHeight": 34,
"editor.autoClosingBrackets": "always",
"editor.inlineSuggest.enabled": true,
"editor.cursorBlinking": "expand",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
@dougkusanagi
dougkusanagi / settings.json
Created March 17, 2023 04:15
windows-terminal-json
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
import "./bootstrap";
import "../css/app.css";
import { createApp, h } from "vue";
import { createInertiaApp, Link, Head } from "@inertiajs/inertia-vue3";
import { InertiaProgress } from "@inertiajs/progress";
import { resolvePageComponent } from "laravel-vite-plugin/inertia-helpers";
import { ZiggyVue } from "../../vendor/tightenco/ziggy/dist/vue.m";
import DashboardLayout from "@/Layout/DashboardLayout.vue";
git init
//. para upar tudo
git add .
// ver aquivos modificados
git status
// Fazer o comit e colocar o nome
git commit -m ""
wsl --shutdown // shutdown wsl
wsl -l // list all distros
wslconfig /unregister ubuntu // remove every distro, because for me none of them worked anymore
wsl --install --distribution Ubuntu // reinstall Ubuntu
export default defineConfig({
plugins: [
laravel({
input: 'resources/js/app.js',
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
// create fake php binary
sudo touch /usr/local/bin/php
// open nano editor
sudo nano /usr/local/bin/php
// paste this content
path=$(printf '%s\n' "${PWD##*/}")
command="docker exec ${path}_laravel.test_1 php "$@""
echo "Running php on docker ${path}_laravel.test_1"
@dougkusanagi
dougkusanagi / selenium-php-webdriver-cheatsheet.md
Created October 22, 2021 19:03 — forked from aczietlow/selenium-php-webdriver-cheatsheet.md
Cheat sheet for using php webdriver (facebook/webdriver).

Webdriver PHP API workthough

  • Open a browser

    # start an instance of firefox with selenium-webdriver
    
    $browser_type = 'firefox'
    $host = 'http://localhost:4444/wd/hub'
    

$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);