Replaces the deprecated ShiftIt app on macOS (works on M1+).
hammerspoon-init.lua→~/.hammerspoon/init.luaShiftIt.spoon-init.lua→~/.hammerspoon/Spoons/ShiftIt.spoon/init.lua
Replaces the deprecated ShiftIt app on macOS (works on M1+).
hammerspoon-init.lua → ~/.hammerspoon/init.luaShiftIt.spoon-init.lua → ~/.hammerspoon/Spoons/ShiftIt.spoon/init.lua| FROM wordpress:latest | |
| # Setup SMTP by running apache2-config.sh | |
| COPY ["apache2-config.sh", "/usr/local/bin/"] | |
| CMD ["apache2-config.sh"] |
| class EventSupport { | |
| constructor(props) { | |
| this.parent = props.parent; | |
| this.name = props.name; | |
| this.eventQueue = {}; | |
| } | |
| trigger(eventName, props) { | |
| if (typeof props === 'undefined') { |
| var slackWebhookPath = '/services/T02N0QWAS/B2N58DH4N/lczo4THnmZvr2sNVMutCGH4P'; | |
| var https = require('https'); | |
| var util = require('util'); | |
| var colorMap = { | |
| 'ALARM': 'danger', | |
| 'OK': 'good', | |
| 'INSUFFICIENT_DATA': 'warning' | |
| }; | |
| exports.handler = function(event, context) { |
| var ViewPagerAndroid = function (_React$Component) { | |
| babelHelpers.inherits(ViewPagerAndroid, _React$Component); | |
| function ViewPagerAndroid() { | |
| var _ref; | |
| var _temp, _this, _ret; | |
| babelHelpers.classCallCheck(this, ViewPagerAndroid); |
| build: | |
| image: node:5-wheezy | |
| commands: | |
| - npm install --silent | |
| - npm test | |
| cache: | |
| mount: | |
| - .git | |
| - node_modules |
Estos son los pasos a seguir para habilitar memoria swap en tu VPS corriendo Ubuntu, probablemente esto sirva para otros VPS
echo "Reemplazar 4G por el doble de memoria ram del sistema, ejemplo si tengo 1gb de ram, entonces colocar 2G)"
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile| // padding/margins helpers | |
| $sizes: (xs: 0.5rem, sm: 1rem, md: 1.5rem, lg: 2rem, xl: 2.5rem); | |
| $properties: ('top', 'right', 'left', 'bottom'); | |
| @each $name, $value in $sizes { | |
| @each $prop in $properties { | |
| .margin-#{$prop}-#{$name} { | |
| margin-#{$prop}: $value; | |
| } |
Config lives in a private repo, orlando/dotfiles, applied with
chezmoi (replaces mackup and iCloud). The app list lives in its Brewfile.
Keep the username orlando so ~/www/<org>/<repo> paths match across machines.
Update macOS and everything in the App Store.
| // Safari blocks the UI as soon as a form is submitted | |
| // This behaviour prevents us from doing animations inside buttons | |
| // This is a workaround to give the render engine some time before blocking | |
| // This depends on jQuery browser to know if the current browser is Safari | |
| // We happened to have that dependency when I implemeneted this workaround | |
| $(function () { | |
| if (!$.browser.safari) { | |
| return; |