Skip to content

Instantly share code, notes, and snippets.

View icolwell's full-sized avatar
✌️

Ian Colwell icolwell

✌️
View GitHub Profile
@WMP
WMP / Automatical fix ffmpeg in opera on ubuntu 20.04
Last active August 21, 2021 15:16
Automatical fix ffmpeg in opera on ubuntu 20.04
This gist describe how to create apt hook. When you install or upgrade any package,
hook /etc/apt/apt.conf.d/80upgradehook is running.
Hook run script /usr/local/sbin/apt_after_upgrade_hook and this script check if
/usr/lib/x86_64-linux-gnu/opera/libffmpeg.so is symlink,and when not make symlink to newest
libffmpeg fromchromium-ffmpeg snap.
sudo snap install chromium-ffmpeg
sudo echo 'DPkg::Post-Invoke {"/usr/local/sbin/apt_after_upgrade_hook";};' > /etc/apt/apt.conf.d/80upgradehook
@maheshgawali
maheshgawali / bb_pr_checker.py
Created August 10, 2018 09:01
simple python script to check if a PR exists for the current branch in bitbucket pipeline, execute bitbucket pipelines only if a PR is created for a branch
#!/usr/bin/env python3
import requests
import json
import argparse
PAGE_LENGTH = '50'
PR_STATE = 'OPEN'
@Pablohn26
Pablohn26 / urserver.service
Created January 19, 2017 00:12
Unified Remote Server systemd unit
[Unit]
Description=Unified Remote Server
After=syslog.target network.target
[Service]
Type=forking
PIDFile=$HOME/.urserver/urserver.pid
ExecStart=/opt/urserver/urserver-start --no-manager --no-notify
ExecStop=/opt/urserver/urserver-stop