Skip to content

Instantly share code, notes, and snippets.

View PandelisZ's full-sized avatar
:shipit:
🔥🔥🔥 Taking working code and making it un-working 🔥🔥🔥🔥

Pandelis Zembashis PandelisZ

:shipit:
🔥🔥🔥 Taking working code and making it un-working 🔥🔥🔥🔥
View GitHub Profile
@PandelisZ
PandelisZ / LoginToGrafana.js
Created June 6, 2024 10:28
Script to have the TV autolog back into the grafana dashboard unattended
// ==UserScript==
// @name LoginToGrafana
// @namespace http://tampermonkey.net/
// @version 2024-06-06
// @description try to take over the world!
// @author You
// @match https://*.grafana-workspace.eu-west-2.amazonaws.com/login
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant none
// ==/UserScript==
[
{
"instance_id": "astropy__astropy-12057",
"model_name_or_path": "astropy",
"model_patch": "diff --git a/astropy/nddata/nduncertainty.py b/astropy/nddata/nduncertainty.py\n--- a/astropy/nddata/nduncertainty.py\n+++ b/astropy/nddata/nduncertainty.py\n@@ -395,6 +395,40 @@ def _propagate_multiply(self, other_uncert, result_data, correlation):\n def _propagate_divide(self, other_uncert, result_data, correlation):\n return None\n \n+ def represent_as(self, other_uncert):\n+ \"\"\"Convert this uncertainty to a different uncertainty type.\n+\n+ Parameters\n+ ----------\n+ other_uncert : `NDUncertainty` subclass\n+ The `NDUncertainty` subclass to convert to.\n+\n+ Returns\n+ -------\n+ resulting_uncertainty : `NDUncertainty` instance\n+ An instance of ``other_uncert`` subclass containing the uncertainty\n+ converted to the new uncertainty type.\n+\n+ Raises\n+ ------\n+ TypeError\n+
import requests
from bs4 import BeautifulSoup
from datetime import datetime
import click
PYPI_URL = "https://pypi.org/project/{project_name}/#history"
def get_releases(request):
@PandelisZ
PandelisZ / myfirstpr.graphql
Created October 1, 2020 14:22
Find your first ever PR :)
query {
viewer {
pullRequests(first: 10) {
edges {
node {
url
repository {
nameWithOwner
}
}
~/go/src/gruvee.com
-> cli
-> auth
-> whatever
the fully qualified package names for these would then be
gruvee.com/cli ... etc
"go.toolsEnvVars": {
"GOFLAGS": "-mod=vendor",
"CGO_ENABLED": "0",
"GO111MODULE": "on",
},
"terminal.integrated.env.osx": {
"GOFLAGS": "-mod=vendor",
"CGO_ENABLED": "0",
"GO111MODULE": "on",
},
@PandelisZ
PandelisZ / wakatime.md
Created May 14, 2019 15:10
🔨 Programming Activity

a

@PandelisZ
PandelisZ / .gitlab-ci.yml
Last active May 8, 2019 14:54
autoMergeRequest.sh
job:autoupdate:
image: php:7.3-cli
only:
- schedules
before_script:
# Install composer dependencies
- apt-get update -y >/dev/null && apt-get install -y libpng-dev git zip unzip >/dev/null
- docker-php-ext-install calendar gd >/dev/null
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php composer-setup.php >/dev/null
@PandelisZ
PandelisZ / composer-link.sh
Last active January 4, 2019 15:58
Composer link command
@PandelisZ
PandelisZ / policy.json
Created December 17, 2018 10:31
Read only S3 access
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "SubstraktS3SingleBucketReadWrite",
"Effect": "Allow",
"Action": [
"s3:PutAnalyticsConfiguration",
"s3:GetObjectVersionTagging",
"s3:ReplicateObject",