Skip to content

Instantly share code, notes, and snippets.

View diego351's full-sized avatar

Jakub Nowak diego351

  • delimeo.pl
  • Wrocław, Poland
View GitHub Profile
openapi: 3.0.3
info:
title: Payment Disruption REST API Docs
version: 1.0.0
description: |
# Introduction
## Placeholder
Written API docs for our app visible on the frontend
to_dd_internal_do_not_use() {
input_directory=$(dirname "$1")
output_file="ec3_converted_$(basename "$1")"
output_directory="$input_directory/$output_file"
/usr/bin/ffmpeg -nostdin -y -i "$1" -map 0 -c copy -c:a ac3 -threads 8 $output_directory >/dev/null 2>&1
if [ $? -eq 0 ]; then
chown -R root:debian-transmission "$output_directory"
rm -f "$1"
mv "$output_directory" "$1"
echo -ne '\007'
openapi: 3.0.3
info:
title: CDN
version: 1.0.0
description: |
Welcome to CDN API documentation.
The API documentation provides requests to manage CDN service and get statistics.
{
"telemetry.enableTelemetry": false,
"workbench.statusBar.feedback.visible": false,
"window.zoomLevel": -1,
"workbench.tree.indent": 15,
"files.autoSave": "onFocusChange",
"editor.accessibilityPageSize": 12,
"editor.fontSize": 14,
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
openapi: 3.0.3
info:
title: CDN
version: 1.0.0
description: |
Welcome to CDN API documentation.
The API documentation provides requests to manage CDN service and get statistics.
prod@any_prod [04:18:04] [~]
-> % cat deploy_any.sh
#!/bin/bash
NAME="any" # Name of the application
DJANGODIR=/home/prod/any # Django project directory
SOCKFILE=/home/prod/run/gunicorn.sock # we will communicte using this unix socket
USER=prod # the user to run as
GROUP=prod # the group to run as
NUM_WORKERS=9 # how many worker processes should Gunicorn spawn
upstream app_servers {
server unix:/home/prod/run/gunicorn.sock fail_timeout=0;
}
upstream swampdragon {
server 127.0.0.1:9000;
}
server {
{
"code": 200,
"data": [
{
"default": false,
"id": 1,
"meals": [
{
"meal_label": "breakfast",
"meal_time_offset": null,
num = int(input('Podaj liczbe: '))
dzielniki = []
def prime(x):
not_prime_number = False
for i in range(2, x):
if x % i == 0:
def get_friends(self, limit=5000):
'''
Connects to the facebook api and gets the users friends
'''
friends = getattr(self, '_friends', None)
if friends is None:
friends_response = self.open_facebook.fql(
"SELECT uid, name, sex FROM user WHERE uid IN (SELECT uid2 "
"FROM friend WHERE uid1 = me()) LIMIT %s" % limit)
# friends_response = self.open_facebook.get('me/friends',