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
var apiRelationalCollection = { | |
method: false, | |
type: false, | |
loading: function (data) { | |
return data; | |
}, | |
data: false, | |
relational: false | |
}; |
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
Install Rails on Ubuntu cheat-sheet: | |
1. install plain ubuntu 14.04 | |
2. if you installing virtual machine like vmware, first thing todo: | |
sudo apt-get install openssh-server | |
3. install next packages: | |
sudo apt-get install git vim g++ make libssh-dev curl libsqlite3-dev | |
4. install ruby version manager rvm: | |
curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash | |
5. install latest ruby version (versions list is available through ```rbenv install -l```). for ex |
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
export VSCALE_TOKEN=your_vscale_token | |
# fetch available configurations | |
curl 'https://api.vscale.io/v1/rplans' -H 'X-Token: '$VSCALE_TOKEN | python -m json.tool | |
# create vscale instance, vscale binary file shuold be available in your $PATH | |
docker-machine create -d vscale --vscale-access-token $VSCALE_TOKEN --vscale-location=msk0 --vscale-rplan small --vscale-made-from ubuntu_16.04_64_001_master machine_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
for(var i = 0; i < 10; i++) { | |
setTimeout(function() { | |
console.log(i); | |
}, 10); | |
} |
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
apt-get install libmp3lame-ocaml-dev libshine-ocaml-dev libaac-tactics-ocaml-dev libogg-ocaml-dev libvorbis-ocaml-dev libspeex-ocaml-dev libtheora-ocaml-dev libopus-ocaml-dev libschroedinger-ocaml-dev libvoaacenc-ocaml-dev libfdkaac-ocaml-dev libfaad-ocaml-dev libflac-ocaml-dev libladspa-ocaml-dev libsoundtouch-ocaml-dev libsoundtouch-ocaml-dev libsamplerate-ocaml-dev libdssi-ocaml-dev libxmlplaylist-ocaml-dev liblastfm-ocaml-dev liblo-ocaml-dev libdtools-ocaml-dev libduppy-ocaml-dev libmm-ocaml-dev |
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
# to install .so files into /usr directory use the following flag: | |
cmake . -DCMAKE_INSTALL_PREFIX=/usr | |
# build .deb file if possible | |
debuild -uc -us |
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 | |
# play YUV444 FULL HD file | |
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \ | |
videoparse width=1920 height=1080 framerate=25/1 format=GST_VIDEO_FORMAT_Y444 ! \ | |
videoconvert ! \ | |
autovideosink | |
# play YUV422 FULL HD file | |
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \ |
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
AUDIO_CAPS="application/x-rtp,media=(string)audio,clock-rate=(int)48000,encoding-name=(string)X-GST-OPUS-DRAFT-SPITTKA-00" | |
# listen | |
gst-launch-1.0 udpsrc caps=$AUDIO_CAPS port=33258 ! \ | |
rtpopusdepay ! opusdec plc=true ! autoaudiosink | |
# stream | |
gst-launch-1.0 -vvvvv audiotestsrc ! audioconvert ! opusenc ! rtpopuspay ! udpsink port=33258 host=<your IP> |
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
# sudo apt-get install openh264-gst-plugins-bad-1.5 | |
gst-launch-1.0 videotestsrc ! x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=9754 | |
sdp <<< EOF | |
v=0 | |
m=video 5000 RTP/AVP 96 | |
c=IN IP4 127.0.0.1 | |
a=rtpmap:96 H264/90000 | |
EOF |
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
# Run Geth with dev network and enable APIs required by truffle | |
geth --dev --rpcapi eth,net,web3,personal --rpc |
OlderNewer