pactl load-module module-simple-protocol-tcp rate=48000 format=s16le channels=2 source=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor record=true port=server_port listen=ip_address
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
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
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
const fs = require('fs'); | |
// Read the CSV file | |
const data = fs.readFileSync('Untitled spreadsheet - Sheet1.csv', 'utf8'); | |
const parseCsv = (csv) => { | |
// Split the CSV data into lines | |
const lines = csv.split('\n'); | |
// Split the first line to get the headers, and trim each header |
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
const request = require('supertest'); | |
const expect = require('expect'); | |
describe('User Controller', () => { | |
var user; | |
before(async () => { | |
await Users.create({ | |
username: 'testuser1', | |
password: 'testuser1', |
List of files to edit to change/rename your react-native android project. The following constants are used in the files to denote what kind of value should be placed.
APPLICATION_NAME
- this will be used by react-native to identify your application. (settings.gradle, MainActivity.java, etc.)APPLICATION_DISPLAY_NAME
- display name in Android Home Screen.ANDROID_PACKAGE_NAME
- A valid android package name.
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
### Keybase proof | |
I hereby claim: | |
* I am markterence on github. | |
* I am coffeekitkat (https://keybase.io/coffeekitkat) on keybase. | |
* I have a public key ASBjFRg6Z8syIcQdpoIN4puVj-RXo6S-p8qNjQkP79VoJgo | |
To claim this, I am signing this object: |
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
// http://nodejs.org/api.html#_child_processes | |
//Sample1 | |
var sys = require('sys') | |
var exec = require('child_process').exec; | |
var child; | |
// executes `pwd` | |
child = exec("pwd", function (error, stdout, stderr) { | |
sys.print('stdout: ' + stdout); |