- SSH to EC2 then exec
sudo visudo
then add linecentos ALL=(ALL) NOPASSWD:ALL
- exec
sudo su - root
- exec
sudo vi /etc/ssh/sshd_config
then edit/uncomment line
This file contains hidden or 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 | |
# https://gist.github.com/hellstad | |
# This is a script I use to automate deploying my meteor app from my git repository to my server running: | |
# CentOS 6 x86_64 | |
# nginx 1.4.7 | |
# node 0.10.33 | |
# forever 0.13.0 | |
# npm 1.4.28 |
This file contains hidden or 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 | |
# Automates letsencrypt SSL cert generation/installation on CentOS 7 w/nginx | |
# MIT, use at your own risk blabla | |
[email protected] | |
DOMAIN_NAME=foo.bar.com | |
sudo su - root | |
cd ~ | |
git clone https://github.com/letsencrypt/letsencrypt |
This file contains hidden or 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
/** | |
* Global helper for applying parent state to current template. | |
* Usage: | |
* Invoke superstate(this); in a Template.onCreated callback to inherit parent state. | |
* @param templateInstance {Object} The current Blaze.View object to pass in. | |
* @returns {Object} The state object. | |
*/ | |
superstate = (templateInstance, stateProp) => { | |
// defaults to Template.instance().state | |
if (!stateProp) stateProp = 'state'; |
I hereby claim:
- I am hellstad on github.
- I am kevincharm (https://keybase.io/kevincharm) on keybase.
- I have a public key ASABXcIa-0dHMdXEp7DcmVmYhgOipLUfPWrEhKIegl_SFAo
To claim this, I am signing this object:
This file contains hidden or 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
/** | |
* bitarray.js | |
* | |
* Utility for working with JS TypedArrays at bit level. (Angular Service) | |
* | |
* @author kevincharm | |
* @license MIT | |
*/ | |
angular |
This file contains hidden or 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
# /usr/lib/systemd/system/cassandra.service | |
[Unit] | |
Description=Cassandra | |
After=network.target | |
[Service] | |
PIDFile=/var/run/cassandra/cassandra.pid | |
User=cassandra | |
Group=cassandra |
This file contains hidden or 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
#!/usr/bin/env node | |
'use strict' | |
const childProcess = require('child_process') | |
function bash() { | |
return new Promise((resolve, reject) => { | |
const terminal = childProcess.spawn('bash') | |
resolve(terminal) | |
}) |
I hereby claim:
- I am kevincharm on github.
- I am kevincharm (https://keybase.io/kevincharm) on keybase.
- I have a public key whose fingerprint is BCF1 8249 4254 7EFE EC77 D14C 1843 EB66 5597 F727
To claim this, I am signing this object:
This file contains hidden or 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 cloneFbx = (fbx) => { | |
const clone = fbx.clone(true) | |
clone.animations = fbx.animations | |
clone.skeleton = { bones: [] } | |
const skinnedMeshes = {} | |
fbx.traverse(node => { | |
if (node.isSkinnedMesh) { | |
skinnedMeshes[node.name] = node |
OlderNewer