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 | |
# Script to losslessly copy all the tracks on an audio CD to a folder | |
# named the same as the album. | |
# | |
# System Requirements: Mac OS X, cdrom drive, cdparanoia. | |
# | |
# Patrick Moffitt October 8, 2017. | |
# | |
CDPARANOIA=$(which cdparanoia) |
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
#!/usr/bin/env bash | |
# first, we need to determine type of disk | |
# this can be achieved by trying first mount_cd9660 and checking error | |
# if it returns "Device not configured" - we need to wait, | |
# otherwise its not CD9660 fs and we can move to next | |
# | |
# try mounting UDF, if it returns "Invalid argument" - it's not an UDF | |
# | |
# the last remaining disc type is CD audio disc, that we must |
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
;Where you have local httpd and client machines receiving domain-name via DHCP, following addition to nginx config | |
;would often be useful. | |
;For clarification, client machines get domain-name specified as 'intra.example.com' via DHCP in this example. | |
;BTW this type of setup is often found in situations where hostname-only name resolution would make things easier, say where | |
;you have Windows Active Directory in place, or local resources available, like network printers, NAS and so on. | |
;Whils specifying local domain over DHCP serves well for simple name-resolution applications that does not require FQDN, | |
;virtual-hosts as typically found configured on web servers would not favor that. | |
;Specifically, requests to something like 'http://www' must be redirected to 'http://www.intra.example.com', the proper FQDN. | |
; | |
;As per nginx documentation, you may have multiple server_name directives each specifying different host-only part of fqdn. |
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
rem @echo off | |
if "%PROCESSOR_ARCHITECTURE%" equ "AMD64" ( | |
rem x64 | |
if not exist "%ProgramFiles%\Common Files\VST2" ( | |
mkdir "%ProgramFiles%\Common Files\VST2" | |
) | |
if not exist "%ProgramFiles%\Common Files\VST3" ( | |
mkdir "%ProgramFiles%\Common Files\VST3" |
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
@echo off | |
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve | |
reg add "HKCU\Software\Classes\CLSID\{d93ed569-3b3e-4bff-8355-3c44f6a52bb5}\InprocServer32" /f /ve | |
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Start_ShowClassicMode" /t REG_DWORD /d 1 | |
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarSi" /t REG_DWORD /d 0 | |
exit |
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 | |
for file in `find /etc/bird*.conf /etc/config/ -type f`; do | |
sed -i 's/\(10\.255\.53\.\)0/\1100/g' "${file}" | |
sed -i 's/\(10\.255\.53\.\)90/\1110/g' "${file}" | |
sed -i 's/\(10\.1\.1[4,5]\.\)90/\130/g' "${file}" | |
done; \ | |
for service in network bird4 bird6; do | |
"/etc/init.d/${service}" restart | |
done |
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
[Unit] | |
Description=Disable Wi-Fi power management on wls1 | |
Requires=sys-subsystem-net-devices-wls1.device | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/usr/sbin/iwconfig wls1 power off | |
ExecStop=/usr/sbin/iwconfig wls1 power on |
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
*** dslite.sh.orig 2019-09-13 16:50:15.182508583 +0900 | |
--- dslite.sh 2019-09-13 16:51:34.557074668 +0900 | |
*************** | |
*** 1,3 **** | |
--- 1,4 ---- | |
+ | |
#!/bin/sh | |
# dslite.sh - IPv4-in-IPv6 tunnel backend | |
# Copyright (c) 2013 OpenWrt.org | |
*************** proto_dslite_setup() { |
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 | |
temp="node.def" | |
interface_templates_dir=/opt/vyatta/share/vyatta-cfg/templates/interfaces | |
ip4ip6_dir=`find ${interface_templates_dir} -type d -name node\.tag | egrep '\/ipv6-tunnel\/node\.tag$'` | |
ip4ip6_encaplimit_dir="${ip4ip6_dir}/encaplimit" | |
ip4ip4_dir=`find ${interface_templates_dir} -type d -name node\.tag | egrep '\/tunnel\/node\.tag$'` | |
ip4ip4_encaplimit_dir="${ip4ip4_dir}/encaplimit" | |
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 | |
wrapper_op=/opt/vyatta/bin/vyatta-op-cmd-wrapper | |
wrapper_cfg=/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper_cfg | |
function write_update_main(){ | |
local temp_upgrade_scr=/config/update.sh | |
echo '#!/bin/bash' | sudo tee ${temp_upgrade_scr} | |
echo 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' | sudo tee -a ${temp_upgrade_scr} | |
cat << EOF | while read line; do echo "${wrapper_cfg} ${line}" | sudo tee -a ${temp_upgrade_scr}; done |
NewerOlder