In your command-line run the following commands:
brew doctor
brew update
In your command-line run the following commands:
brew doctor
brew update
# Currently the embedded terminal of Jetbrains IDEs does not make use of keybindings defined in terminal/iterm on mac | |
# Instead yo get the ring bell and output like [C or [D | |
# | |
# see: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000013224-Alt-key-not-working-in-embedded-terminal | |
# | |
# to fix it and allow ALT + Arrow in the the IDEs embedded terminal just do the following (depending on wich shell you use) | |
# If you use zsh | |
# Add this to ~/.zshrc : | |
bindkey "\e\eOD" backward-word |
Hardware assisted virtualization and data execution protection must be enabled in the BIOS | |
http://stackoverflow.com/questions/39684974/docker-for-windows-error-hardware-assisted-virtualization-and-data-execution-p | |
If the features described are enabled the problem is with Hyper-V that is disabled or Hypervisor agent not running | |
Open PowerShell as administrator and | |
a) Enable Hyper-V with |
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
// ESC[#A moves cursor up # lines | |
// ESC[#B moves cursor down # lines | |
// ESC[#C moves cursor right # spaces | |
// ESC[#D moves cursor left # spaces | |
// Script can be written as is | |
process.stdout.write("\u001b[2J\u001b[0;0H"); | |
process.stdout.write("\u001b[0;30m"); | |
process.stdout.write("Hello there\n"); |
import { Injectable, MiddlewareFunction, NestMiddleware } from '@nestjs/common'; | |
import * as morgan from 'morgan'; | |
import { LoggerService } from './mylogger'; | |
@Injectable() | |
export class MorganMiddleware implements NestMiddleware { | |
constructor(private readonly logger: LoggerService) {} | |
resolve(): MiddlewareFunction { | |
return morgan('combined', { | |
stream: { write: str => this.logger.info(str) }, |
# git clone https://github.com/NVlabs/stylegan2 | |
import os | |
import numpy as np | |
from scipy.interpolate import interp1d | |
from scipy.io import wavfile | |
import matplotlib.pyplot as plt | |
import PIL.Image | |
import moviepy.editor | |
import dnnlib |