Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; | |
| http.createServer(function(request, response) { | |
| var uri = url.parse(request.url).pathname | |
| , filename = path.join(process.cwd(), uri); |
| #!/bin/bash | |
| # Alias which allow to "fast" find in current dir. | |
| # Defaults: | |
| # - directory: current | |
| # - case: ignore | |
| find . -iname "*$1*" |
| #!/usr/bin/ruby | |
| if ARGV.length == 0 | |
| puts <<HELP | |
| Script extracts Kindle Clippings for specified book into external file, with formatting: | |
| === location 340 | |
| Clipping content xyz | |
| === page 450 |
| #!/bin/bash | |
| # Recursively resets permissions for current folder and all files inside it to 755 and 644. | |
| # No file will be executable. | |
| find . -type d -exec chmod 755 {} \; | |
| find . -type f -exec chmod 644 {} \; |
| #!/bin/bash | |
| if [ -z "$1" ] | |
| then echo " | |
| File name to process required. File name shouldn't contain any whitespace chars. | |
| If you want to limit cpu use for example: | |
| cpulimit -e ffmpeg -l 200 # every thread has 100 'points' | |
| " | |
| else | |
| # This line is used for testing small chunks of the file |
| #!/bin/bash | |
| if [ -z "$1" ] || [ -z "$2" ] | |
| then echo " | |
| Usage: script [directory] [quality] [change files] | |
| Requirements: ImageMagic (convert, identify), jpegoptim | |
| Arguments: | |
| directory - script take all jpg files from directory | |
| quality - jpg quality value (0-100); if file has higher quality will be processed lossy, otherwise lossless |
| #!/bin/bash | |
| if [ -z "$1" ] | |
| then echo " | |
| Usage: script [directory] [change files] | |
| Arguments: | |
| directory - script take all jpg files from directory | |
| change files - if true files will be changed, otherwise (default) then will not change any files (test run) | |
| Requirements: optipng |
Getting started:
Related tutorials:
| <html> | |
| <head> | |
| </head> | |
| <span> | |
| __APP_VERSION__ | |
| </span> | |
| </html> |
| #!/usr/bin/env python | |
| # | |
| # AccessDump.py | |
| # A simple script to dump the contents of a Microsoft Access Database. | |
| # It depends upon the mdbtools suite: | |
| # http://sourceforge.net/projects/mdbtools/ | |
| import sys, subprocess, os | |
| DATABASE = sys.argv[1] |