Make a configuration file like below at /etc/systemd/system/nodejs_www.service.
[Unit]
Description=My Node.js Web Server
[Service]
ExecStart=/usr/bin/yarn start
WorkingDirectory=/home/hotohoto/app
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy] | |
| "Disabled"=dword:00000001 | |
| [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager] | |
| "SubscribedContent-338388Enabled"=dword:00000000 | |
| { | |
| "presets": [ | |
| ["env", { | |
| "targets": { | |
| "node": "6.10" | |
| } | |
| }] | |
| ] | |
| } |
Make a configuration file like below at /etc/systemd/system/nodejs_www.service.
[Unit]
Description=My Node.js Web Server
[Service]
ExecStart=/usr/bin/yarn start
WorkingDirectory=/home/hotohoto/app
| <?php // Don't use this line. | |
| /* | |
| * Add the script below to wherever you store custom code snippets | |
| * in your site, whether that's your child theme's functions.php, | |
| * a custom plugin file, or through a code snippet plugin. | |
| */ | |
| /** | |
| * This function will connect wp_mail to your authenticated |
| <?php | |
| function seo($str) { | |
| $from = array("Á", "À", "Â", "Ä", "Ă", "Ā", "Ã", "Å", "Ą", "Æ", "Ć", "Ċ", "Ĉ", "Č", "Ç", "Ď", "Đ", "Ð", "É", "È", "Ė", "Ê", "Ë", "Ě", "Ē", "Ę", "Ə", "Ġ", "Ĝ", "Ğ", "Ģ", "á", "à", "â", "ä", "ă", "ā", "ã", "å", "ą", "æ", "ć", "ċ", "ĉ", "č", "ç", "ď", "đ", "ð", "é", "è", "ė", "ê", "ë", "ě", "ē", "ę", "ə", "ġ", "ĝ", "ğ", "ģ", "Ĥ", "Ħ", "I", "Í", "Ì", "İ", "Î", "Ï", "Ī", "Į", "IJ", "Ĵ", "Ķ", "Ļ", "Ł", "Ń", "Ň", "Ñ", "Ņ", "Ó", "Ò", "Ô", "Ö", "Õ", "Ő", "Ø", "Ơ", "Œ", "ĥ", "ħ", "ı", "í", "ì", "i", "î", "ï", "ī", "į", "ij", "ĵ", "ķ", "ļ", "ł", "ń", "ň", "ñ", "ņ", "ó", "ò", "ô", "ö", "õ", "ő", "ø", "ơ", "œ", "Ŕ", "Ř", "Ś", "Ŝ", "Š", "Ş", "Ť", "Ţ", "Þ", "Ú", "Ù", "Û", "Ü", "Ŭ", "Ū", "Ů", "Ų", "Ű", "Ư", "Ŵ", "Ý", "Ŷ", "Ÿ", "Ź", "Ż", "Ž", "ŕ", "ř", "ś", "ŝ", "š", "ş", "ß", "ť", "ţ", "þ", "ú", "ù", "û", "ü", "ŭ", "ū", "ů", "ų", "ű", "ư", "ŵ", "ý", "ŷ", "ÿ", "ź", "ż", "ž"); | |
| $to = array("A", "A", "A", "A", "A", "A", "A", "A", "A", "AE", "C", "C", "C", "C", "C", "D", "D", "D", "E", "E", "E", "E |
| package main | |
| import ( | |
| "github.com/gin-gonic/gin" | |
| "github.com/jinzhu/gorm" | |
| _ "github.com/mattn/go-sqlite3" | |
| ) | |
| type Users struct { | |
| Id int `gorm:"AUTO_INCREMENT" form:"id" json:"id"` |
| # 1. extract audio from all videos (assuming .mp4 videos). | |
| for FILE in *.mp4; do ffmpeg -i $FILE ${FILE%%.mp4}.wav; done | |
| # 2. use the first second of the first audio file as the noise sample. | |
| sox `ls *.wav | head -1` -n trim 0 1 noiseprof noise.prof | |
| # Replace with a specific noise sample file if the first second doesn't work for you: | |
| # sox noise.wav -n noiseprof noise.prof | |
| # 3. clean the audio with noise reduction and normalise filters. |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| ### Extract Archives ### | |
| function extract () { | |
| if [ -f $1 ] ; then | |
| case $1 in | |
| *.tar.bz2) tar xjvf $1 ;; | |
| *.tar.gz) tar xzvf $1 ;; | |
| *.bz2) bzip2 -d $1 ;; | |
| *.rar) unrar2dir $1 ;; | |
| *.gz) gunzip $1 ;; | |
| *.tar) tar xf $1 ;; |