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
<!-- Magna Analytics --> | |
<script> | |
(function (w, d, o = {}, a = '$a', u = '/analytics.js?key=164ff908-446c-41d5-a599-81e37b721be5') { | |
t = 'script';r = 'Y31-fNd-LXB-jjn-I8U3'; | |
w[r] = w[r] || {};w[r].o = o; | |
w[a] = w[a] || function () {(w[a].q = w[a].q || []).push(arguments)}; | |
e = d.createElement(t);m = d.getElementsByTagName(t)[0]; | |
e.async = 1;e.src = u;m.parentNode.insertBefore(e, m); | |
})(window, document, { campaignId: 1 }) | |
$a('hit'); |
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
<!-- Magna Analytics --> | |
<script> | |
(function (w, d, o = {}, a = '$a', u = '/analytics.js?key=164ff908-446c-41d5-a599-81e37b721be5') { | |
t = 'script';r = 'Y31-fNd-LXB-jjn-I8U3'; | |
w[r] = w[r] || {};w[r].o = o; | |
w[a] = w[a] || function () {(w[a].q = w[a].q || []).push(arguments)}; | |
e = d.createElement(t);m = d.getElementsByTagName(t)[0]; | |
e.async = 1;e.src = u;m.parentNode.insertBefore(e, m); | |
})(window, document) | |
$a('hit'); |
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 | |
# usage: | |
# checker "https://myapp.com" | |
counter=0 | |
while true | |
do | |
counter=$((counter + 1)) | |
status=$(curl -o /dev/null -s -w "%{http_code}\n" ${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
#!/usr/bin/env bash | |
V_DIR_SQL="/home/sysadmin/data" | |
V_DIR_BACKUP="/home/sysadmin/backup" | |
V_HOST="localhost" | |
V_DATABASE="database" | |
V_USER="root" | |
V_PASSWORD="root" |
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
version: '3' | |
networks: | |
reverse-proxy: | |
external: | |
name: reverse-proxy | |
services: | |
test-app: | |
image: webdevops/php-nginx:7.4 |
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
version: '3.7' | |
# make sure everything is running with: | |
# docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Ports}}\t{{.Status}}" | grep "nginx-" | |
#networks | |
networks: | |
#network reverse-proxy | |
reverse-proxy: | |
external: true |
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
#!/usr/bin/env bash | |
DIR_NAME=$(dirname $(readlink -f ${0})) | |
APP="$(dirname $(readlink -f "${DIR_NAME}/.."))/app" | |
REPO="$(dirname ${DIR_NAME})" | |
BRANCH="main" | |
while read oldrev newrev ref | |
do | |
BRANCH=`echo $ref | cut -d/ -f3` |
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
.css-1dbjc4n.r-13awgt0.r-18u37iz.r-1w6e6rj, | |
[data-testid="unlike"] .css-901oao.css-16my406.r-1qd0xha.r-ad9z0x.r-bcqeeo.r-qvutc0, | |
[data-testid="like"] .css-901oao.css-16my406.r-1qd0xha.r-ad9z0x.r-bcqeeo.r-qvutc0, | |
.css-4rbku5.css-18t94o4.css-901oao.r-hkyrab.r-1loqt21.r-1qd0xha.r-a023e6.r-16dba41.r-ad9z0x.r-bcqeeo.r-qvutc0, | |
.css-901oao.css-16my406.r-4qtqp9.r-ip8ujx.r-sjv1od.r-zw8f10.r-bnwqim.r-h9hxbl > div { | |
display: none; | |
} |
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
<template> | |
<table> | |
<tr> | |
<th>Name</th> | |
<th>Price</th> | |
</tr> | |
<tr | |
v-for="(row, key) in rows" | |
:key="row['id']" | |
> |
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 | |
# allow all methods | |
header('Access-Control-Allow-Methods: POST, GET, PUT, PATCH, DELETE, OPTIONS'); | |
# allow some headers | |
header('Access-Control-Allow-Headers: Authorization, Bearer, Device, Origin, Accept, Content-Type'); | |
# allow expose some headers | |
header('Access-Control-Expose-Headers: Authorization, Bearer, Device'); | |
# get the request method | |
$method = $_SERVER['REQUEST_METHOD'] ?? null; |