Move in "/content"
import os
os.chdir("/content")
Setup git email and username
-- For the latest version: | |
-- https://gist.github.com/parterburn/e832b9090ee35eb830529de8bd978b82 | |
-- Set this property to true to always open in a new window | |
property open_in_new_window : false | |
-- Set this property to false to reuse the current tab | |
property open_in_new_tab : true | |
-- Handlers |
Готовый образ под M1 selenoid dumbdumbych/selenium_vnc_chrome_arm64:91.0.b
docker pull dumbdumbych/selenium_vnc_chrome_arm64:91.0.b
from datetime import datetime, timedelta | |
import functools | |
def timed_cache(**timedelta_kwargs): | |
def _wrapper(f): | |
update_delta = timedelta(**timedelta_kwargs) | |
next_update = datetime.utcnow() + update_delta | |
# Apply @lru_cache to f with no cache size limit |
#!/bin/sh | |
sudo apt-get install -y build-essential git automake | |
mkdir -p "$HOME/liquidsoap-build" | |
cd "$HOME/liquidsoap-build" | |
wget https://github.com/savonet/liquidsoap/releases/download/1.3.0/liquidsoap-1.3.0-full.tar.gz | |
tar xvzf liquidsoap-1.3.0-full.tar.gz |
Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
#!/usr/bin/env python3 | |
import asyncio | |
from asyncio_extras import threadpool | |
from aiohttp import web | |
from pony.orm import * | |
db = Database() | |
obs --startrecording --startstreaming | |
# For OBS Studio, | |
# --collection [scene collection name], | |
# --profile [profile name], | |
# --scene [scene name], | |
# --startstreaming, | |
# --startrecording. | |
# https://obsproject.com/forum/threads/obs-studio-command-line-parameters.56185/ |
dependencies: | |
pre: | |
- sudo apt-get install libxss1 libappindicator1 libindicator7 | |
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
- sudo dpkg -i ./google-chrome*.deb | |
- sudo apt-get install -f |
<hash>
with your gist's hash):
# with ssh
git clone [email protected]:<hash>.git mygist
# with https
git clone https://gist.github.com/.git mygist