Select "Match case", "Regex" and set "File mask" to "*.py"
Search string: ([\n\s,=\+\[\{\(])b('[^\n]*?'|"[^\n]*?")([\n\s,\]\}\)])
Replace string: $1$2$3
| #!/usr/bin/env bash | |
| # add to cron for daily update configs | |
| CFG=/etc/mt-proxy | |
| SECRET=https://core.telegram.org/getProxySecret | |
| CONFIG=https://core.telegram.org/getProxyConfig | |
| mkdir -p $CFG | |
| curl -s $SECRET -o $CFG/proxy-secret |
Select "Match case", "Regex" and set "File mask" to "*.py"
Search string: ([\n\s,=\+\[\{\(])b('[^\n]*?'|"[^\n]*?")([\n\s,\]\}\)])
Replace string: $1$2$3
| #!/usr/bin/env bash | |
| echo "This script setup switch left alt/cmd and set caps-lock to f18 on user login" | |
| cat << 'EOF' | sudo tee /usr/local/bin/me.qnub.pc-to-mac-kb.sh | |
| #!/usr/bin/env bash | |
| hidutil property --set '{"UserKeyMapping": | |
| [{"HIDKeyboardModifierMappingSrc":0x7000000e2, | |
| "HIDKeyboardModifierMappingDst":0x7000000e3}, | |
| {"HIDKeyboardModifierMappingSrc":0x7000000e3, |
Download and install DaVinci with sudo. It'll be installed in /opt/resolve. Executing with resolve bin.
resolve require some additionla libraries to run:
wget http://fr.archive.ubuntu.com/ubuntu/pool/main/g/gst-plugins-base0.10/libgstreamer-plugins-base0.10-0_0.10.36-1_amd64.deb
wget http://fr.archive.ubuntu.com/ubuntu/pool/universe/g/gstreamer0.10/libgstreamer0.10-0_0.10.36-1.5ubuntu1_amd64.deb
sudo dpkg -i libgstreamer*.deb
sudo apt install libssl1.0.0 libssl-dev
cd /lib/x86_64-linux-gnu| #!/usr/bin/env bash | |
| git clone https://github.com/FFmpeg/FFmpeg -b master | |
| cd FFmpeg | |
| git pull | |
| ./configure --enable-shared --enable-gpl --enable-libass --enable-libfreetype --enable-libx264 --enable-libx265 --enable-nvenc --enable-nonfree --enable-libfdk-aac --disable-static | |
| make -j$(nproc) | |
| sudo checkinstall --pkgname=FFmpeg --fstrans=no --backup=no --pkgversion="$(date +%Y%m%d)-git" --deldoc=yes --install=yes -- | |
| showinstall=no | |
| make -j$(nproc) distclean |
| #!/usr/bin/env bash | |
| HTTP_PROXY=$1 | |
| HTTPS_PROXY=$2 | |
| if [ -z "$HTTPS_PROXY" ]; then | |
| HTTPS_PROXY=$HTTP_PROXY | |
| fi | |
| sudo mkdir -p /etc/apt/apt.conf.d |
| #!/usr/bin/env bash | |
| #/ Usage: btsync-secret [option]... | |
| #/ A Bittorrent Sync Secret Generator | |
| set -e | |
| h_flag=false | |
| v_flag=false | |
| e_flag=false | |
| n_flag=false | |
| c_flag=false |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
| <fontconfig> | |
| <match target="pattern"> | |
| <test qual="any" name="family"><string>DejaVu Sans</string></test> | |
| <edit name="family" mode="assign" binding="same"><string>Noto Sans</string></edit> | |
| </match> | |
| <match target="pattern"> | |
| <test qual="any" name="family"><string>FreeSans</string></test> | |
| <edit name="family" mode="assign" binding="same"><string>Noto Sans</string></edit> |
| import os | |
| import httplib | |
| import json | |
| import urllib | |
| import urlparse | |
| from fabric.api import execute, local, run, lcd, cd, task | |
| @task |
angular.module('MyApp').config(function($httpProvider) {
$httpProvider.defaults.xsrfCookieName = 'csrftoken';
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
$httpProvider.defaults.headers
.common['X-Requested-With'] = 'XMLHttpRequest';
$httpProvider.defaults.headers
.post['Content-Type'] = 'application/x-www-form-urlencoded';
});