| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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
| pdp-mbp: ~ $ cat hostlist.txt | |
| sfo-crawl-4 | |
| sfo-crawl-5 | |
| sfo-crawl-6 | |
| sfo-crawl-7 | |
| sfo-crawl-8 | |
| sfo-crawl-9 | |
| sfo-crawl-11 | |
| sfo-crawl-14 | |
| pdp-mbp: ~ $ csshX --host hostlist.txt |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the\commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
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
| var ldap = require('ldapjs'); | |
| var ssha = require('node-ssha256'); | |
| var BASE = 'ou=Users,dc=example,dc=org'; | |
| // default port for ldaps | |
| var URL = 'ldaps://ldap.example.org/:636'; | |
| // user and pass are for existing user with rights to add a user |
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 | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var sass = require('node-sass'); | |
| var ENV = process.env.SASS_ENV || 'development'; | |
| var file = 'variables.scss'; | |
| //if in dev, directly pass file to sass | |
| if (ENV === "development") { |
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
| package main | |
| import ( | |
| "log" | |
| "net/smtp" | |
| ) | |
| func main() { | |
| send("hello there") | |
| } |
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
| // ./__mocks__/localStorage.js | |
| let mockStorage = {}; | |
| module.exports = window.localStorage = { | |
| setItem: (key, val) => Object.assign(mockStorage, {[key]: val}), | |
| getItem: (key) => mockStorage[key], | |
| clear: () => mockStorage = {} | |
| }; | |
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
| # Requirements | |
| * Python 2.7 | |
| * Google Chrome | |
| * ChromeDriver - WebDriver for Chrome | |
| - Download the latest chromedrive which is 2.28 from here - https://sites.google.com/a/chromium.org/chromedriver/downloads | |
| - Extract and move `chromedriver` file to `/usr/local/bin/chromedriver` | |
| - git clone https://github.com/li-xinyang/OS_FrontendMaster-dl | |
| - cd OS_FrontendMaster-dl |
OlderNewer