This file contains 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 python3 | |
import argparse, os, sys | |
from os.path import isdir, join, getsize | |
from pprint import pprint | |
def main(): | |
# initiate the parser | |
parser = argparse.ArgumentParser(description="count files in given directory") |
This file contains 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 python | |
import os, sys | |
def countFilesRecursive(dirname): | |
cnt = 0 | |
for file in os.listdir(dirname): | |
fullpath = os.path.join(dirname, file) | |
if os.path.isdir(fullpath): | |
cnt = cnt + countFilesRecursive(fullpath) |
This file contains 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
func ShellExec(args ...string) (string, string, error) { | |
cmd := exec.Command(args[0], args[1:]...) | |
stderr, err := cmd.StderrPipe() | |
if err != nil { | |
return "", "", err | |
} | |
stdout, err := cmd.StdoutPipe() | |
if err != nil { | |
return "", "", err |
This file contains 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
/* | |
* This is only the colors of Materialize CSS Framework | |
* | |
* Materialize v0.98.0 (http://materializecss.com) | |
* Copyright 2014-2015 Materialize | |
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE) | |
*/ | |
.materialize-red{background-color:#e51c23!important}.materialize-red-text{color:#e51c23!important}.materialize-red.lighten-5{background-color:#fdeaeb!important}.materialize-red-text.text-lighten-5{color:#fdeaeb!important}.materialize-red.lighten-4{background-color:#f8c1c3!important}.materialize-red-text.text-lighten-4{color:#f8c1c3!important}.materialize-red.lighten-3{background-color:#f3989b!important}.materialize-red-text.text-lighten-3{color:#f3989b!important}.materialize-red.lighten-2{background-color:#ee6e73!important}.materialize-red-text.text-lighten-2{color:#ee6e73!important}.materialize-red.lighten-1{background-color:#ea454b!important}.materialize-red-text.text-lighten-1{color:#ea454b!important}.materialize-red.darken-1{background-color:#d0181e!important}.materializ |
This file contains 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 | |
import os | |
from os import path, listdir as list_dir, rename as move | |
from os.path import isdir as is_dir, isfile as is_file | |
from pprint import pprint | |
import shutil | |
# global variables | |
#================== |
This file contains 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
Show hidden characters
[ | |
{ "keys": ["alt+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}}, | |
{ "keys": ["alt+x"], "command": "toggle_side_bar" }, | |
{ "keys": ["alt+a"], "command": "focus_side_bar" }, | |
{ "keys": ["f4"], "command": "reindent"}, | |
{ "keys": ["ctrl+e"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} } | |
] |
This file contains 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
{ | |
"bold_folder_labels": true, | |
"caret_extra_width": 2, | |
"caret_style": "wide", | |
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme", | |
"fade_fold_buttons": false, | |
"font_face": "Monaco", | |
"font_size": 12, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, |
This file contains 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
server { | |
listen 80; | |
listen [::]:80; | |
root /home/lenin/dev/devfolderroot/web; | |
index index.php index.html index.htm; | |
server_name domainname; | |
location / { |