- Download iTerm2 3.1 beta version (https://iterm2.com/downloads/beta/iTerm2-3_1_beta_8.zip)
- Use Dracula theme for iTerm2 https://draculatheme.com/iterm/
- Install oh-my-zsh https://github.com/robbyrussell/oh-my-zsh
- Install Dracula there for zsh https://draculatheme.com/zsh/
- Set pane margins:
iTerm2 -> Preferences -> AdvancedGeneralsection
- Set
Width of left and right margins in terminal panesto 12
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 | |
| # Check if a GitHub URL is provided as an argument | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <github_url>" | |
| exit 1 | |
| fi | |
| # Store the GitHub URL | |
| GIT_URL="$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
| import { Provider } from 'mobx-react/native'; | |
| const SPECIAL_REACT_KEYS = { children: true, key: true, ref: true }; | |
| export default class MobxRnnProvider extends Provider { | |
| props: { | |
| store: Object | |
| }; | |
| context: { |
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
| post_install do |installer| | |
| installer.project.targets.each do |target| | |
| target.build_configurations.each do |config| | |
| if config.name == 'BREnterprise' | |
| config.build_settings['CODE_SIGN_IDENTITY[sdk=iphoneos*]'] = 'iPhone Distribution: The Carter Group LLC' | |
| config.build_settings['PROVISIONING_PROFILE'] = '${BR_ENTERPRISE_PROVISIONING_PROFILE}' | |
| end | |
| end | |
| end |
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
| Critter:lib critter$ brew install node | |
| ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/node-0.12.0.yosemite.bottle.1.tar.gz | |
| ######################################################################## 100.0% | |
| ==> Pouring node-0.12.0.yosemite.bottle.1.tar.gz | |
| ==> Caveats | |
| If you update npm itself, do NOT use the npm update command. | |
| The upstream-recommended way to update npm is: | |
| npm install -g npm@latest | |
| Bash completion has been installed to: |
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
| app.factory('csrfRequestInterceptor' , function($q , $injector){ | |
| var _token = false; | |
| return { | |
| request : function(config){ | |
| var CSRF_URL = '/csrfToken'; | |
| if(config.url == CSRF_URL || config.method == "GET"){ | |
| return config; | |
| } | |
| // sailsjs hasn't time limit for csrf token, so it is safe to cache this | |
| // remove this to request a new token |
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 sh | |
| # first check to see if mongo service is running. you can't delete any files until the service stops so perform a quick check. | |
| launchctl list | grep mongo | |
| # NOTE: the pipe | symbol means the commands on the right performs on the output from the left | |
| # grep is a string search utility. `grep mongo` means search for the substring mongo | |
| # use the unload command to end the mongo service. this is required to 'unlock' before removing the service. | |
| # first look for the file to delete | |
| MONGO_SERVICE_FILE=$(ls ~/Library/LaunchAgents/*mongodb*) |
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
| find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \; |
NewerOlder


