Skip to content

Instantly share code, notes, and snippets.

@zigomir
zigomir / Dockerfile
Last active December 26, 2020 15:23
Django local dev on docker-compose
FROM python:3
ENV PYTHONUNBUFFERED 1
RUN mkdir /app
WORKDIR /app
COPY requirements.txt /app/
RUN pip install -r requirements.txt
@zigomir
zigomir / vscode-intellisense.md
Last active April 29, 2016 22:41
Visual Studio Code and JS IntelliSense

Visual Studio Code and JS IntelliSense

  • You need to have jsconfig.json in your project root directory
{
  "compilerOptions": {
    "target": "es2015",
    "module": "commonjs",
 "allowSyntheticDefaultImports": true
@zigomir
zigomir / front-end-shortcuts.md
Last active January 16, 2016 17:51
Front End shortcuts

Budo & Browserify in npm scripts:

"scripts": {
  "start": "budo src/main.js:bundle.js --live",
  "build": "browserify src/main.js | uglifyjs -cm > bundle.js"
}
@zigomir
zigomir / devops.md
Last active December 15, 2016 23:09
DevOps helpers

SSH Agent

ssh-add -L # checek if key added
ssh-add # add it

# Permanently add to macOS - http://unix.stackexchange.com/a/140077
ssh-add -K ~/.ssh/id_rsa
@zigomir
zigomir / front_end_hints.md
Last active August 29, 2015 14:00
Frontend hints
@zigomir
zigomir / osx_tricks.md
Last active August 29, 2015 13:59
OS X tricks and tips

Check directory size

du -sh dir-name

Disk usage tool - DiskWave

DiskWave

@zigomir
zigomir / apache_caching.md
Created March 19, 2014 19:56
apache caching

Resource

a2enmod expires
service apache2 restart

vim /etc/apache2/sites-available/site.conf
@zigomir
zigomir / random_c0d3z.md
Last active January 12, 2016 11:24
Random useful commands / code / not structured or categorized