Skip to content

Instantly share code, notes, and snippets.

View sQu4rks's full-sized avatar
🚀
To the moon

Marcel Neidinger sQu4rks

🚀
To the moon
View GitHub Profile
@sQu4rks
sQu4rks / Card_Icon.png
Last active November 18, 2021 15:54
PX Bot
Card_Icon.png
@sQu4rks
sQu4rks / deploy.py
Created January 15, 2020 08:28
An example on how to keep your secrets save when deploying to the cloud.
# ToDo
@sQu4rks
sQu4rks / gist
Created December 31, 2019 14:09
Welcome Bot gist
gist
@sQu4rks
sQu4rks / Readme.md
Created November 22, 2019 11:48
Export Webex Teams participant emails into list

How to Use

  1. Set your webex access token (can be found on developer.webex.com) as export WEBEX_TEAMS_ACCESS_TOKEN=<YOUR_TOKEN_HERE>
  2. Run the script and select the number of the space you want to export.
  3. Done.

Requirements

@sQu4rks
sQu4rks / Dockerfile
Last active September 8, 2019 14:10
Deploying to Cisco Crate Example - Based on the [docker-compose example](https://docs.docker.com/compose/gettingstarted/)
FROM python:3.7-alpine
WORKDIR /code
ENV FLASK_APP app.py
ENV FLASK_RUN_HOST 0.0.0.0
RUN apk add --no-cache gcc musl-dev linux-headers
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY . .
CMD ["flask", "run"]
@sQu4rks
sQu4rks / todoist_calculate_time_estimate.py
Last active August 11, 2019 16:45
Calculate estimated time to complete all items due today based on specific labels. Labels should follow this format: 5_min, 15_min, ...
import todoist
from datetime import date
api = todoist.TodoistAPI('<Insert_access_token_here>')
api.sync()
# Get labels
label_time_mapping = {}
for label in api['labels']:
if label['name'].endswith('_min'):
@sQu4rks
sQu4rks / keybase.md
Last active December 29, 2019 14:03

Keybase proof

I hereby claim:

  • I am squ4rks on github.
  • I am squ4rks (https://keybase.io/squ4rks) on keybase.
  • I have a public key whose fingerprint is 0BC6 BBED 121A 0832 2F73 891D 751D ACEA 767A 18ED

To claim this, I am signing this object:

<?php
session_start();
// Datenbankverbindung müsst ihr entsprechend ändern
$host = "127.0.0.1";
$user = "webProjMarius";
$pass = "webProjMarius";
$database = "webProjMarius";
$table = "auth_user"; // Müsst ihr bei euch anlegen
$db_link = mysql_connect($host,$user,$pass);