Skip to content

atifchughtai/UI-IDE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extensions

VS Code

  • Out of box
  • Mac: ~/.vscode/extensions
    • Cmd + Shft + P -> Shell: install 'code' in Path
  • Ubuntu: Home/.vscode/extensions
  • USER SETTINGS: {
    "typescript.tsdk": "${npm list -g | head -n1}/node_modules/typescript/lib",
    "editor.detectIndentation": false,
    "editor.insertSpaces": true,
    "editor.tabSize": 3,
    "editor.fontFamily": "'Andale Mono', 'Lucida Console'",
    "editor.fontSize": 14,
    "editor.fontLigatures": true,
    "git.autofetch": true,
    "terminal.integrated.fontSize": 12,
    "terminal.integrated.fontFamily": "Monaco",
    "window.zoomLevel": -0.5,
    "workbench.colorTheme": "Default Dark+",
    "workbench.iconTheme": "material-icon-theme",
    "javascript.validate.enable": false, // if not using TS
    "flow.enabled": true,
    "flow.useNPMPackagedFlow": true,
    "flow.pathToFlow": "../node_modules/.bin/flow", // or install npm i flow-bin -g
    "gitlens.advanced.messages": {
    "suppressShowKeyBindingsNotice": true
    },
    "files.watcherExclude": {
    "/tmp/": true,
    "/node_modules/": true,
    "/bower_components/": true
    }
    }
  • WORKSPACE SETTINGS: {
    "javascript.validate.enable": false, // if not using TS
    "flow.enabled": true,
    "flow.useNPMPackagedFlow": true,
    "flow.pathToFlow": "${workspaceFolder}/node_modules/.bin/flow" // or install npm i flow-bin -g
    }

Sublime

  • Git
    TypeScript
    Babel ES6/ES7
    JsFormat
    BracketHighlighter
    SideBarEnhancements
    Color Highlighter
    A File Icon
    Seti_UI, Materialize, Tomorrow Color Schemes, Predawn, Monokai - Spacegray

Atom

  • Atom-Typescript: https://github.com/TypeStrong/atom-typescript
    Atom-React: https://github.com/orktes/atom-react (clone into .atom\packages folder)
    Install: file-icons, atom-json-color, atom-bracket-highlight,
    Use: UITheme='One Dark', SyntaxTheme='One Light'
    Stylesheet:
    .tree-view {
    font-size: 10px; }
    atom-text-editor {
    background-color: #f7f3ea;
    font-family: Monaco;
    font-size: 13px;
    }
    .bracket-matcher {
    position: absolute;
    top: -1px;
       border-bottom: 1px solid lime;
    border: 1px solid rgba(0, 255, 0, 0.7);
    // background-color: rgba(150, 255, 150, 0.3);
     }

Boilerplates

Client

Node


# MAC #

MAC

~/.bash_profile

export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
export PATH=~/...../mongodb/bin:$PATH
export PS1='[\033[01;32m]${PWD} [\033[00m]λ '
alias l='ls -CF'
alias la='ls -a'
alias ll='ls -all'
alias ld='ls -l'
alias cls='clear && printf "\e[3J"'
alias pss='ps aux | grep'
alias mongod='mongod --dbpath ~/...../mongodb/data/db'
eval $(/usr/libexec/path_helper -s)

shortcuts

AC2V2zZQ
F11 => Show desktop
Cmd + Shift + . => show hidden files
Cmd + Q => close the application without trace
Cmd + ` => tab between windows of same application
cp -a <_source>/. <_dest> => copy the content of the <_source> into <_dest> recursively(a) including hidden files/folders(.)
ln -s <_source> <_dest> => creates a link of <_source> in the <_dest> folder
chown <_user> <_file> => changes the owner of <_file> to <_user>
defaults write -g com.apple.mouse.scaling -float 10

// MongoDB
$ ./mongod --dbpath ../data/db
$ mongo (another cmd)
$ show dbs
$ use
$ db
$ show collections
$ db..drop()
$ db..insert({…})
$ db..find()

// NPM
$ sudo chown -R $(whoami) | $(npm config get prefix)

// HomeBrew . /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# UBUNTU #

UBUNTU

~/.bashrc

'# alias l='ls -CF'
'# alias la='ls -a'
'# alias ll='ls -all'
alias ld='ls -l'
alias cls='clear && reset'
PS1='[\033[01;32m]${PWD} [\033[00m]$ '

Programs

Gnome Tweaks, Gnome Global Application Menu, Docky (No need for Unity or Dash-to-dock),
GIMP, VLC, K3b,
Terminator,
GParted, KDE Partition Manager, UNetbootin,
https://atom.io,

Scripts

  • sudo apt-get update
  • NodeJs: sudo apt-get install nodejs (may noy install the latest version)
    curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
    sudo apt-get install -y nodejs
     sudo apt-get install nodejs-legacy
  • NPM: sudo apt-get install npm  
  • GIT: sudo apt-get install git
  • Chrome: sudo apt-get install google-chrome-stable
  • D (ntfs):
    sudo mkdir -p /media/c
    sudo fdisk -l (ex: sda3 is our D drive)
    sudo mount -t ntfs -o nls=utf8,umask=0222 /dev/sda3 /media/c
  • if there is a problem w/ icons:
    /usr/share/pixmaps/ or /usr/share/applications/ and open related files.
  • Printer: download drivers from https://support.brother.com/g/b/producttop.aspx?c=eu_ot&lang=en&prod=dcp9055cdn_eu_as
    ipp:https://192.168.1.9/ipp for the URI of the wifi printer (https://localhost:631/printers for administrations)

Terminator

  • Profiles -> default -> Colours -> Built-in Schemes: Gruvbox dark
  • First open terminator and set the window size according to your need and comfort.
    Right click and go to preference and then to layout.
    Click on the terminal name under window and then save the layout.
    Thats it, It will open the terminator in the same size, as you have set up, next time you open it.
  • ~home/.config/terminator/config:
    [global_config] suppress_multiple_term_dialog = True title_font = Sans 8 [keybindings] [layouts] [[default]] [[[child0]]] fullscreen = False last_active_term = 99a44a5b-9cc5-4c49-bdc8-6cac012dcfb8 last_active_window = True maximised = False order = 0 parent = "" position = 0:0 size = 1912, 425 title = /bin/bash type = Window [[[terminal1]]] order = 0 parent = child0 profile = default type = Terminal uuid = 99a44a5b-9cc5-4c49-bdc8-6cac012dcfb8 [plugins] [profiles] [[default]] background_color = "#282828" background_darkness = 0.95 background_type = transparent copy_on_selection = True cursor_color = "#aaaaaa" cursor_shape = ibeam font = Monospace 9 foreground_color = "#ffffff" show_titlebar = False use_system_font = False

Konsole

~/.config/konsolerc
[Desktop Entry] DefaultProfile=Default.profile [Favorite Profiles] Favorites= [MainWindow] Height 1080=480 Width 1920=1298 [TabBar] ShowQuickButtons=true TabBarVisibility=ShowTabBarWhenNeeded

~/.local/share/konsole/Default.profile
[Appearance] ColorScheme=Breeze [General] Name=Default Parent=FALLBACK/

Sublime Text 3

  • sudo add-apt-repository ppa:webupd8team/sublime-text-3
  • sudo apt-get update
  • sudo apt-get install sublime-text-installer

Docky

Open gconf-editor. Navigate to /apps/docky-2/Docky/Items/DockyItem/. Change Hue to 1 DockyItemCommand to gksu nautilus /usr/share/applications. Click on your Docky Anchor. Type in your password. Navigate to the program icon you would like to change.

Plasma

edit /usr/share/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/layout.js:
var panel = new Panel var panelScreen = panel.screen var freeEdges = {"bottom": true, "top": true, "left": true, "right": true}

for (i = 0; i < panelIds.length; ++i) { var tmpPanel = panelById(panelIds[i]) if (tmpPanel.screen == panelScreen) { // Ignore the new panel if (tmpPanel.id != panel.id) { freeEdges[tmpPanel.location] = false; } } }

if (freeEdges["bottom"] == true) { panel.location = "bottom"; } else if (freeEdges["top"] == true) { panel.location = "top"; } else if (freeEdges["left"] == true) { panel.location = "left"; } else if (freeEdges["right"] == true) { panel.location = "right"; } else { // There is no free edge, so leave the default value panel.location = "top"; }

panel.height = gridUnit * 2

var kickoff = panel.addWidget("org.kde.plasma.kickoff") kickoff.currentConfigGroup = ["Shortcuts"] kickoff.writeConfig("global", "Alt+F1")

//panel.addWidget("org.kde.plasma.showActivityManager") panel.addWidget("org.kde.plasma.pager") panel.addWidget("org.kde.plasma.taskmanager")

/* Next up is determining whether to add the Input Method Panel

  • widget to the panel or not. This is done based on whether
  • the system locale's language id is a member of the following
  • white list of languages which are known to pull in one of
  • our supported IME backends when chosen during installation
  • of common distributions. */

var langIds = ["as", // Assamese "bn", // Bengali "bo", // Tibetan "brx", // Bodo "doi", // Dogri "gu", // Gujarati "hi", // Hindi "ja", // Japanese "kn", // Kannada "ko", // Korean "kok", // Konkani "ks", // Kashmiri "lep", // Lepcha "mai", // Maithili "ml", // Malayalam "mni", // Manipuri "mr", // Marathi "ne", // Nepali "or", // Odia "pa", // Punjabi "sa", // Sanskrit "sat", // Santali "sd", // Sindhi "si", // Sinhala "ta", // Tamil "te", // Telugu "th", // Thai "ur", // Urdu "vi", // Vietnamese "zh_CN", // Simplified Chinese "zh_TW"] // Traditional Chinese

if (langIds.indexOf(languageId) != -1) { panel.addWidget("org.kde.plasma.kimpanel"); }

panel.addWidget("org.kde.plasma.systemtray") panel.addWidget("org.kde.plasma.digitalclock")



AWS

Installations

sudo apt-get update
sudo apt-get git
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y nodejs-legacy
sudo apt-get install build-essential
sudo apt-get npm

Deployment

$ ssh -i ~/.ssh/lh-accountancy-dev.pem [email protected]
$ tar -cvzf lh-accountancy.tar.gz lh-accountancy
$ scp -i ~/.ssh/lh-accountancy-dev.pem lh-accountancy.tar.gz [email protected]:~
$ sudo tar -xzvf lh-accountancy.tar.gz
$ npm run build-dev (export NODE_ENV=dev)
$ npm run publish-dev > ../lh-accountancy.log 2>&1 &
$ nohup node ./lh-accountancy/dist/src/index.js > lh-accountancy.log 2>&1 &



COMMON

Git

$ git config credential.helper store
$ git config --global credential.helper cache
$ git push https://example.com/repo.git
Username:
Password:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.3%
  • Smarty 1.7%
  • Shell 1.2%
  • Other 0.8%