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
| -server | |
| -Xms8192m | |
| -Xmx8192m | |
| -XX:+UnlockExperimentalVMOptions | |
| -XX:+UseLargePages | |
| -XX:+UseStringDeduplication | |
| -XX:+CMSClassUnloadingEnabled | |
| -XX:+UseParallelOldGC | |
| -XX:ParallelGCThreads=8 | |
| -XX:+AggressiveOpts |
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 | |
| # sudo apt-get install cpufrequtils | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "sudo me" | |
| exit 1 | |
| fi | |
| command -v cpufreq-info >/dev/null 2>&1 || { echo >&2 "cpufrequtils not found"; exit 1; } |
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
| // ============================================================================ | |
| // (adapted from https://github.com/tvcutsem/proxy-handlers) | |
| // ============================================================================ | |
| // (copied from reflect.js) | |
| function isStandardAttribute(name) { | |
| return /^(get|set|value|writable|enumerable|configurable)$/.test(name); | |
| } | |
| // Adapted from ES5 section 8.10.5 |
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
| import { DelegatingHandler } from './proxy-handlers'; | |
| import _ from 'lodash'; | |
| function GhostObject<T>(thunk: () => T) { | |
| // @ts-ignore | |
| this.thunk = thunk; | |
| // @ts-ignore | |
| this.val = undefined; | |
| } |
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 caller = require('caller'); | |
| const sqlString = require('sequelize/lib/sql-string'); | |
| const _ = require('lodash'); | |
| const fs = require('fs'); | |
| const Path = require('path'); | |
| function clean(sql) { | |
| return _.chain(sql).trim().trim(';').trim() |
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 | |
| # 1) Set New Defaults | |
| # ======================================== | |
| defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add \ | |
| '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=org.vim.MacVim;}' | |
| # 2) Profit | |
| # ======================================== | |
| # $$$ acquire currency $$$ |
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
| // ============================================================================ | |
| // Author: Arleigh Dickerson | |
| // (adapted from https://github.com/eliaslfox/lazy-chain) | |
| // ============================================================================ | |
| const _ = require('lodash'); | |
| const Deferred = require('./Deferred'); | |
| const pipe = Symbol('asyncBuilder.lazyHander.pipe'); | |
| const lazyHandler = app => ({ |
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 | |
| # ============================================================================ | |
| # entrypoint.sh | |
| # | |
| # An entrypoint that blocks until one or more TCP hosts become availabile | |
| # ============================================================================ | |
| set -e |
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 | |
| # ======================================== | |
| # For /dev/sdXn, | |
| # X is one of a,b,c,... | |
| # n is one of 1,2,3,... | |
| # ======================================== | |
| # see https://wiki.archlinux.org/index.php/USB_flash_installation_media#Using_manual_formatting |
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
| hhvm.log.level = Warning | |
| hhvm.log.always_log_unhandled_exceptions = true | |
| hhvm.log.runtime_error_reporting_level = 8191 | |
| hhvm.mysql.typed_results = false | |
| hhvm.php7.all = true | |
| hhvm.php7.builtins= true | |
| hhvm.jit_enable_rename_function = true | |
| xdebug.idekey = PHPSTORM | |
| xdebug.enable = 1 |