Skip to content

Instantly share code, notes, and snippets.

wesruv wesruv

Block or report user

Report or block wesruv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vscodeprefs.json
// Place your settings in this file to overwrite the default settings
"editor.fontSize": 19,
"editor.lineHeight": 29,
"editor.tabSize": "2",
"editor.insertSpaces": "true",
"editor.renderWhitespace": "all",
"files.eol": "\n",
"editor.renderIndentGuides": true,
"files.exclude": {
View gist:e87f2c670d64cf68967e7f02fc9bdc64
elasticsearch_1 | ... 5 more
elasticsearch_1 | Caused by: java.nio.file.FileSystemException: /usr/share/elasticsearch/data/elasticsearch/nodes/0/indices/lullabot/3/translog/translog.ckp -> /usr/share/elasticsearch/data/elasticsearch/nodes/0/indices/lullabot/3/translog/translog-1158164249911420948.tlog: No space left on device
elasticsearch_1 | at sun.nio.fs.UnixException.translateToIOException(
elasticsearch_1 | at sun.nio.fs.UnixException.rethrowAsIOException(
elasticsearch_1 | at sun.nio.fs.UnixCopyFile.copyFile(
elasticsearch_1 | at sun.nio.fs.UnixCopyFile.copy(
elasticsearch_1 | at sun.nio.fs.UnixFileSystemProvider.copy(
elasticsearch_1 | at java.nio.file.Files.copy(
elasticsearch_1 | at org.elasticsearch.index.translog.Translog.recoverFromFiles(
elasticsearch_1 | at org.elasticsearch.index.tran
View gist:57b928ec9e1eb0b4f113032e50e6867e
root@c59867f065b6:/var/www/html# make clean && make install
curl -XDELETE 'http://couchdb:5984/lullabot/' \
&& curl -XDELETE 'http://couchdb:5984/lullabot_preview/' \
&& curl -XDELETE 'http://elasticsearch:9200/lullabot/' \
&& echo "DROP database IF EXISTS lullabot" | mysql -u root -proot -h mysql \
&& chmod 755 docroot/sites/default \
&& chmod 755 docroot/sites/default/settings.php \
&& rm -f settings.php \
&& echo "\n"
View gist:5395b6d0bf3b85d4960994a3d1a0889f
~/lullabot/ (master)
$ yarn run start:dev
yarn run v0.17.10
$ yarn run clean && yarn upgrade && yarn run build && npm-run-all --parallel reload build:server:watch build:client:watch build:styleguide:watch start:nodemon
yarn run v0.17.10
$ find dist -type f -not -name '.gitignore' -print0 | xargs -0 rm --
rm: missing operand
Try 'rm --help' for more information.
error Command failed with exit code 123.
info Visit for documentation about this command.
wesruv / function.js
Last active Oct 31, 2016
Clean CSS identifier from string
View function.js
// In a perfect world, you'd never have to do this. Wish I lived in a perfect world.
* Convert a string to a usable class name
* @param {string} stringToConvert String of text
* @return {string} Usable class name
function convertStringToClassName(stringToConvert) {
if (typeof stringToConvert === 'string') {
return stringToConvert.trim().replace(/[\s-_]+/g, '-').replace(/[^\w-]|^-|-$/g, '').replace(/-+(?=-)/, '').toLowerCase();
View console output
~/lullabot/ (1903-remove-abs-paths)
$ git st
## 1903-remove-abs-paths...origin/1903-remove-abs-paths
~/lullabot/ (1903-remove-abs-paths)
$ npm i
> fsevents@1.0.14 install /home/wesruv/lullabot/
> node-pre-gyp install --fallback-to-build
View gitdiff.txt
This file has been truncated, but you can view the full file.
diff --git a/node_modules/acorn-jsx/node_modules/acorn/.travis.yml b/node_modules/acorn-jsx/node_modules/acorn/.travis.yml
index f50c379..d9ee88b 100644
--- a/node_modules/acorn-jsx/node_modules/acorn/.travis.yml
+++ b/node_modules/acorn-jsx/node_modules/acorn/.travis.yml
@@ -1,6 +1,7 @@
language: node_js
sudo: false
- - '0.10'
View Preferences.sublime-settings
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 3,
"caret_style": "phase",
"color_scheme": "Packages/User/SublimeLinter/Oceanic Next (SL).tmTheme",
"default_line_ending": "unix",
"draw_white_space": "all",
View console.log
~/projects/ (master)
$ docker-compose up
Creating lullabotcomwww_web_1
Attaching to lullabotcomwww_web_1
web_1 | npm info it worked if it ends with ok
web_1 | npm info using npm@3.8.6
web_1 | npm info using node@v5.11.1
web_1 | npm info lifecycle
web_1 | npm info lifecycle
web_1 |
View .env
# Production #
#NODE_ENV = production
#PORT = 80
You can’t perform that action at this time.