sudo lsblk
This file contains 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 | |
#since slack 2.6.3 there is some hack in that file, so make sure this piece of code goes before the: | |
#start(assignIn({}, require('electron').remote.getGlobal('loadSettings'), { windowType: 'WEBAPP' })); | |
#..line | |
# since 3.0.5 | |
# or before the 'const loadSettings = ...' line | |
cat << 'EOF' >> /usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js |
This file contains 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
All files\s*\|\s*([0-9.]+) |
This file contains 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
### No longer needed as of nginx-1.13.6-1.el7_4.ngx.x86_64.rpm from nginx.org | |
### it was compiled against OpenSSL 1.0.2 from CentoOS 7.4 so it supports ALPN (HTTP2 works) | |
yum -y groupinstall 'Development Tools' | |
yum -y install wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel rpmdevtools | |
OPENSSL="openssl-1.0.2l" | |
NGINX_VERSION="1.13.5-1" | |
NJS_VERSION="1.13.5.0.1.13-1" |
This file contains 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
aws support describe-trusted-advisor-check-result --check-id eW7HH0l7J9 --query 'result.sort_by(flaggedResources[?status!="ok"],&metadata[2])[].metadata' --output table --region us-east-1 |
This file contains 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
" Notes: | |
" (1) To enhance the ergonomics of this sufficiently to make it practical, at | |
" least, until your brain grows a new lobe dedicated to counting line offsets | |
" in the background while you work, you should either make sure you have | |
" something like the following in your `~/.vimrc`: | |
" | |
" set number | |
" if has('autocmd') | |
" augroup vimrc_linenumbering | |
" autocmd! |
This file contains 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
KEY=$(xauth list |grep $(hostname) | awk '{ print $3 }' | head -n 1) | |
DCK_HOST=docker-skype | |
xauth add $DCK_HOST/unix:0 . $KEY | |
docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix \ | |
-v $HOME/.Xauthority:/tmp/.Xauthority \ | |
-v /dev/snd:/dev/snd \ | |
-e DISPLAY=unix$DISPLAY \ | |
-e XAUTHORITY=/tmp/.Xauthority \ | |
-h $DCK_HOST \ |
This file contains 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
#!KAMAILIO | |
# | |
# Kamailio (OpenSER) SIP Server v4.1 - default configuration script | |
# - web: http://www.kamailio.org | |
# - git: http://sip-router.org | |
# | |
# Direct your questions about this file to: <[email protected]> | |
# | |
# Refer to the Core CookBook at http://www.kamailio.org/wiki/ |
This file contains 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 | |
# Encrypt existing hard drive in place. | |
# Requires a second physical drive to temporarily store data. This drive will be erased. | |
# This script is meant to be run on Clonezilla 1.2.9-19 or later. | |
# The cryptsetup syntax is different in Clonezilla than in Red Hat. | |
# --- Variables --- # |