sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
<a class="pushbullet-subscribe-widget" data-channel="mymy" data-widget="button" data-size="small"></a> | |
<script type="text/javascript">(function(){var a=document.createElement('script');a.type='text/javascript';a.async=true;a.src='https://widget.pushbullet.com/embed.js';var b=document.getElementsByTagName('script')[0];b.parentNode.insertBefore(a,b);})();</script> |
#!/bin/bash | |
# Simple install script for stock RedHat/CentOS 7.x | |
# Allows yum update to pull security & other fixes automatically from MongoDB.com's repos | |
# (versus ancient packages in Red Hat/Cent repos) | |
# To completely purge all remnants of Mongo (repo conf, rpms, yum cache, DB files, kernel tweaks: | |
# sudo service mongod stop ; sudo rm -rf /etc/yum.repos.d/mongo* ; sudo rm -rf /var/lib/mongo/* ; sudo sed -i.`date +%Y-%m-%d_%H-%M-%S`.bak '/^#.*$/!d' /etc/rc.d/rc.local ; sudo rm -rf /var/cach/yum ; sudo yum -y clean all ; sudo yum -y remove mongodb* | |
# Sanity check - are we on a RH family distro? | |
[ -f "/etc/redhat-release" ] || { echo -e "This script requires RedHat or CentOS. Quitting. \n"; exit 1 ;} |
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
sudo apt install curl gnupg2 ca-certificates lsb-release | |
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list | |
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - | |
sudo apt update | |
NGINX_VERSION=$(apt show nginx | grep "^Version" | cut -d " " -f 2 | cut -d "-" -f 1) | |
# take note of the nginx version in the "stable" release. e.g. 1.14.2 | |
echo NGINX version $NGINX_VERSION | |
wget https://hg.nginx.org/pkg-oss/raw-file/default/build_module.sh | |
chmod a+x build_module.sh |
RUN sed -i 's/archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list \ | |
&& apt-get update && apt-get install -y \ | |
...packages-you-want-to-install... \ | |
&& rm -rf /var/lib/apt/lists/* |
# @author: [email protected] | |
filename=/etc/default/grub | |
# Replace GRUB_DEFAULT value to 'saved' | |
echo :: Setting GRUB_DEFAULT=saved | |
sudo sed -i 's/GRUB_DEFAULT=.*/GRUB_DEFAULT=saved/g' $filename | |
# Append GRUB_SAVEDEFAULT=true after deleting old GRUB_SAVEDEFAULT's | |
echo :: Setting GRUB_SAVEDEFAULT=true |
#!/usr/bin/env bash | |
function show_usage() | |
{ | |
echo | |
echo "USAGE" | |
echo "-----" | |
echo | |
echo " SERVER_URL=https://my.mediasoup-demo.org:4443 ROOM_ID=test MEDIA_FILE=./test.mp4 ./gstreamer.sh" | |
echo |
Table of Contents: