GithubHelp home page GithubHelp logo

thekevjames / tools Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 16.0 2.68 MB

collection of tools too small to deserve their own repo

License: Other

Perl 60.21% Shell 12.54% Makefile 1.12% Dockerfile 1.89% JavaScript 0.13% Rust 10.08% Python 4.07% CSS 9.96%
circleci circleci-orb docker mysql renovate slack ubuntu

tools's Introduction

Various Tools

This repository is a collection of tools too small to be worth managing as their own repo. Many of these originally started as an experiment or, before I started trying to organize my GitHub presence, as a couple-line repo I'd completely forgotten about.

Renovate

This repository also contains my Renovate configurations, which are shared across all my projects. You can grab the common "make it work for anything Kevin has done anywhere" config with:

{
    "extends": ["github>thekevjames/tools"]
}

tools's People

Contributors

bartdorlandt avatar dependabot[bot] avatar jeanmercierswile avatar lacarvalho91 avatar pre-commit-ci[bot] avatar renovate-bot avatar renovate[bot] avatar thekevjames avatar tswast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tools's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>thekevjames/tools>trustedpackages). Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

minify: Numeric separators not supported

There appears to be a problem with the Numeric separators support.

Having the file:

// a.js
const x = 10_000;

and running

docker run --rm -it \                                                                                                                                                                                                       
    -v $(pwd):/app \
    thekevjames/minify:2.9.4 \
    minify --output /app/build/ /app/a.js

Results in

ERROR: cannot minify /app/a.js: unexpected identifier after number on line 1 and column 17
    1: const x = 10_000;
                       ^

linter orb: Run pip install as root?

The linter/pre-commit command fails on the official circleci/python image (as opposed to the base python image) due to tighter permissions:

Installing collected packages: pyyaml, cfgv, zipp, importlib-metadata, toml, nodeenv, identify, aspy.yaml, pre-commit
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/site-packages/_yaml.cpython-37m-x86_64-linux-gnu.so'
Consider using the `--user` option or check the permissions.

Exited with code 1

Consider running the pip install step with sudo.

mysql-tuner / perl error message: diagnostics

Hi, thanks for providing the mysql-tuner docker file.

At the moment I am unable to run it, because its seems that some perl dependency is missing:

couldn't find diagnostic data in /usr/share/perl5/core_perl/pods/perldiag.pod /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /mysqltuner.pl at /usr/share/perl5/core_perl/diagnostics.pm line 259, <POD_DIAG> line 711.
Compilation failed in require at /mysqltuner.pl line 45.
BEGIN failed--compilation aborted at /mysqltuner.pl line 45.

All I could find was, that the perl installation would be incomplete. But reinstalling perl did not seem to help.

Maybe it is a problem with the latest alpine version?

Support pubsub push subscriptions through subscription config var

Sorry if this is already supported and I missed it in the documentation, but I don't see any support for push subscriptions with the config vars to set the subscription type to push and provide an endpoint for it to push to. It would be very convenient if this were an option.

Pub/Sub topic and subscription creation timeout

The issue I am seeing is that pubsubc fails to create topics + subscriptions when the container starts up, and when this happens I can just see Operation timed out in the logs. When this happens it doesn't retry or anything. I'm guessing this happens when the server takes too long to start. Here the pubsub client is run in the background before the actual server starts so I guess there is a race.

If I run pubsubc manually after the topics are created fine.

I'm running the image in minikube using onechart.

Subscription is not being created automatically

Hi,

We are currently having an issue with the subscription not being created automatically once we started the docker container. In our docker-compose file, we have a setting for the environment for setting the topics and subscriptions like below
environment: - PUBSUB_PROJECT1=test-project,test_topic:test_sub,prod_topic:prod_sub
Once the container of the emulator is running, I found an issue from our app that the Subscription is unavailable
But, since I kill and start the container, the subscriptions will be available.
Any idea why they are not being created automatically?

Thanks,
Calvin

Unable to execute the java that was found on your PATH

Overview

I tried upgrading from version 9ade2475e2 to 452.0.1 but now the app fails to start and shows the following logs:

Waiting for emulator...
Operation timed out
ERROR: (gcloud.beta.emulators.pubsub.start) Unable to execute the java that was found on your PATH. The Google Cloud Pub/Sub emulator requires a Java 7+ JRE installed and on your system PATH

I've tried version 451.0.0 as well and I'm getting the same error so I'm not sure when this was introduced.

Hmm I've actually just tried version 420.0.0 as well and got the same error ๐Ÿค”

My setup is I'm running the emulator in minikube. I'm on an M1 MacBook Pro, I'm wondering if its because I'm on an M1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.