-
ssh-add -K ~/.ssh/id_rsaNote: change the path to where your id_rsa key is located. -
ssh-add -A -
Create (or edit if it exists) the following ~/.ssh/config file:
Host * UseKeychain yes
AddKeysToAgent yes
| awk '!visited[$0]++' your_file > deduplicated_file |
| [ | |
| { | |
| "text_eng": "primary school", | |
| "text_spa": "escuela primaria" | |
| }, | |
| { | |
| "text_eng": "teacher", | |
| "text_spa": "profesor / profesora" | |
| }, | |
| { |
| function getAudioData (url, time) { | |
| return new Promise(function (resolve, reject) { | |
| var context = new AudioContext(); | |
| var track = new Audio(url); | |
| var bufferLength = time * context.sampleRate; | |
| var buffer = new Float32Array(bufferLength); | |
| var collector = context.createScriptProcessor(0, 1); | |
| var audioSource = context.createMediaElementSource(track); | |
| var samplesCollected = 0; |
ssh-add -K ~/.ssh/id_rsa
Note: change the path to where your id_rsa key is located.
ssh-add -A
Create (or edit if it exists) the following ~/.ssh/config file:
Host *
UseKeychain yes
AddKeysToAgent yes
| /** @jsx React.DOM */ | |
| var HelloMessage = React.createClass({ | |
| render: function() { | |
| return <div>{'Hello ' + this.props.name}<div>; | |
| } | |
| }); | |
| React.renderComponent(<HelloMessage name="John" />, document.getElementById('container')); |
| var BudgetApp = React.createClass({ | |
| mixins: [Reflux.connect(EntryStore, 'entries')], | |
| render: function() { | |
| return ( | |
| ); | |
| } | |
| }); |
| // Check swap | |
| $ sudo swapon -s | |
| Filename Type Size Used Priority --> empty | |
| // Create and enable swap file | |
| $ sudo dd if=/dev/zero of=/swapfile bs=1024 count=512k | |
| $ sudo mkswap /swapfile | |
| Setting up swapspace version 1, size = 262140 KiB | |
| no label, UUID=103c4545-5fc5-47f3-a8b3-dfbdb64fd7eb |
| # /spec/support/mock_geocoder.rb | |
| # Used with ffaker | |
| RSpec.configure do |c| | |
| class MockResult < ::Geocoder::Result::Base | |
| def initialize(data = []) | |
| super(data) | |
| end | |
| end |
| cat /var/log/apache2/access.log |grep " 404 " | awk '{print $1}' | sort -n | uniq -c | sort -nr |
| require 'spec_helper' | |
| describe MyMiddleWare do | |
| let(:app) { ->(env) { [200, env, ""] } } | |
| let :middleware do | |
| MyMiddleWare.new(app) | |
| end | |
| let(:params) do | |
| { | |
| input: data |