Skip to content

Instantly share code, notes, and snippets.

View seperman's full-sized avatar
💭
Focusing on Information Retrieval, Search, Personalization and Data ETLs.

Sep Dehpour seperman

💭
Focusing on Information Retrieval, Search, Personalization and Data ETLs.
View GitHub Profile
@seperman
seperman / Flake8Lint.sublime-settings
Created November 6, 2017 23:02
flake8 settings for python flake8 lint
{
// debug mode (verbose output to ST python console)
"debug": false,
// run flake8 lint on file saving
"lint_on_save": true,
// run flake8 lint on file loading
"lint_on_load": false,
// run lint in live mode: lint file (without popup) every XXX ms
<Form onSubmit={handleSubmit(onSubmit)} className='wizardForm'>
<div className="SaveCancelDiv">
<Button primary type='submit'>Resolve</Button>
<Button secondary onClick={() => history.goBack()}>Cancel</Button>
<ErrorBox errors={errors} message={error_msg}/>
</div>
</Form>
@seperman
seperman / nginx.conf
Last active February 14, 2021 19:37 — forked from mikhailov/nginx.conf
echo 'events {
worker_connections 1024;
}
error_log /usr/local/Cellar/nginx/1.5.8/error.log;
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
@seperman
seperman / preferences.sublime-settings
Last active August 19, 2020 23:57
sublime settings user mac
{
"added_words":
[
"json",
"readthedocs",
"datetime",
"pprint",
"Django",
"Lucene",
"elasticsearch",
@seperman
seperman / AutoHotkey_ErgoKeyboard
Last active June 24, 2020 06:22
Auto Hot Key configs to make Windows shortcuts/keyboard like Mac
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments. They are not executed.
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it. You can have as many .ahk
; files as you want, located in any folder. You can also run more than
; one .ahk file simultaneously and each will get its own tray icon.
@seperman
seperman / Default (Linux).sublime-keymap
Created January 27, 2020 07:50
Sublime keybinding for Ubuntu
[
{ "keys": ["ctrl+shift+right"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["ctrl+shift+left"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["super+/"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+super+/"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+g"], "command": "find_next" },
{ "keys": ["ctrl+shift+g"], "command": "find_prev" },
{ "keys": ["alt+ctrl+i"], "command": "find_under" },
{ "keys": ["shift+alt+ctrl+g"], "command": "find_under_prev" },
{ "keys": ["super+shift+up"], "command": "swap_line_up" },
@seperman
seperman / pry.sublime-snippet
Created January 17, 2018 07:44
pry sublime snippet
<snippet>
<content><![CDATA[require 'pry'; binding.pry]]></content>
<tabTrigger>pry</tabTrigger>
<scope>source.ruby</scope>
<description>pry</description>
</snippet>
@seperman
seperman / pdb.sublime-snippet
Created November 7, 2017 19:10
pdb sublime snippet
<snippet>
<content><![CDATA[import pdb; pdb.set_trace()]]></content>
<tabTrigger>pdb</tabTrigger>
<scope>source.python</scope>
<description>pdb</description>
</snippet>
@seperman
seperman / Package Control.sublime-settings
Last active November 6, 2017 23:14
Package Control.sublime-settings for windows
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"BracketHighlighter",
"Git",
"GitGutter",
@seperman
seperman / Mac_bashrc
Last active April 21, 2017 06:45
mac bash profile
alias ll="ls -lah";
alias chrome="open /Applications/Google\ Chrome.app";
alias firefox="open -a Firefox.app";
alias ssh_box="source ~/useful_shell_scripts/ssh_box.sh"
alias kcachegrind="open /Applications/qcachegrind.app";
alias fix_office_borders="~/useful_shell_scripts/fix_office_borders.py";
alias tree="find . -not -name '*.pyc' -not -name '*.pyo' -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'";
alias dsize="du -ch -d 1 2>/dev/null";
alias dsize2="du -ch | tail -n 10";