sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
import datetime | |
from service.time_converter import iso_format_to_unix_time | |
DAYS_OF_THE_WEEK = 7 | |
def current_week_start(of = None): | |
date_to_compare = datetime.datetime.now() |
# see rkengler.com for related blog post | |
# https://www.rkengler.com/how-to-capture-network-traffic-when-scraping-with-selenium-and-python/ | |
import json | |
import pprint | |
from selenium import webdriver | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
capabilities = DesiredCapabilities.CHROME |
tap 'homebrew/cask' | |
tap 'homebrew/cask-drivers' | |
tap 'homebrew/cask-fonts' | |
tap 'homebrew/cask-versions' | |
tap 'homebrew/core' | |
tap 'homebrew/boneyard' | |
tap 'homebrew/dev-tools' | |
tap 'homebrew/bundle' | |
tap 'homebrew/services' |
There are many ways to test Jenkins...
Jenkins Pipeline Unit is great but it's generally recommended to keep all of your logic with stages and not get too crazy with custom Groovy in your pipeline. Though, it's a great option if you have a very advanced use-case and want to make sure your code is reliable.
The Replay Pipeline Run Option is awesome if you want to verify a quick change or iterate quickly on a previously setup pipeline. But it only allows for altering Jenkinsfile Code and runs against the production Jenkins Instance.
package com.jivimberg.sqs.published | |
import kotlinx.coroutines.CancellationException | |
import kotlinx.coroutines.CoroutineScope | |
import kotlinx.coroutines.isActive | |
import kotlinx.coroutines.yield | |
import java.lang.Thread.currentThread | |
suspend fun CoroutineScope.repeatUntilCancelled(block: suspend () -> Unit) { | |
while (isActive) { |
#debugging shellscripts -x would show the scrips line by line and output followed by | |
#!/bin/bash -x | |
TEST_VAR="test" | |
echo "$TEST_VAR" | |
#custom | |
#set -x / start debugginh | |
#set +x / stop | |
#-ex exit on stop | |
#-v prints shell before substitution are applied | |
#-vx |
Only add the xdebug.remote_log
line if you need to troubleshoot.
FROM php:7.1-apache
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_autostart=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...