dpkg: error processing archive ....
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # https://askubuntu.com/questions/856460/using-a-digital-camera-canon-as-webcam | |
| sudo modprobe v4l2loopback | |
| gphoto2 --abilities | |
| gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| from fractions import Fraction | |
| from pprint import pprint | |
| from django.core import exceptions | |
| from django.contrib.postgres.fields import JSONField | |
| from psycopg2.extras import Json | |
| import orjson | |
| from pydantic.json import custom_pydantic_encoder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM traefik:v2.2 | |
| RUN touch acme.json | |
| RUN chmod 600 acme.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Removes old revisions of snaps | |
| # CLOSE ALL SNAPS BEFORE RUNNING THIS | |
| set -eu | |
| snap list --all | awk '/disabled/{print $1, $3}' | | |
| while read snapname revision; do | |
| snap remove "$snapname" --revision="$revision" | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div> | |
| <svg width="100%" viewBox="-2000 -2000 4000 4000" | |
| preserveAspectRatio="xMidYMin meet" | |
| style='stroke-width: 0px; background-color: black;' | |
| > | |
| <g class="g-circles" fill="none" | |
| stroke-width="40" | |
| stroke="url(#paint1)" | |
| stroke-linecap="round" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import requests | |
| import os | |
| import vk_api | |
| # from vk_api import VkUpload | |
| # from vk_api.utils import get_random_id | |
| from vk_api.bot_longpoll import VkBotLongPoll, VkBotEventType | |
| def get_random_id(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.2 in ubuntu 18.04 | |
| ### steps #### | |
| # verify the system has a cuda-capable gpu | |
| # download and install the nvidia cuda toolkit and cudnn | |
| # setup environmental variables | |
| # verify the installation | |
| ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [options] | |
| default_indent = 4 | |
| enable_debug = 1 | |
| enable_ale = 0 | |
| # enable_ycm = 1 | |
| # snippet_engine = "ultisnips" | |
| line_on_the_fly = 0 | |
| realtime_leader_guide = 1 | |
| enable_tabline_filetype_icon = 1 | |
| enable_os_fileformat_icon = 1 |