Works great in combination with yajs, really makes for a very good JS development experience in VIM. In combination with syntastic/eslint/eslint-plugin-react, neocomplete, tern_for_vim, and javascript-libraries-syntax.vim it get's pretty near to perfect for me.
This file contains hidden or 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 python script encodes all files that have the extension mkv in the current | |
working directory. | |
Sources: | |
http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide | |
""" | |
import subprocess, os | |
#------------------------------------------------------------------------------- |
This file contains hidden or 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
#!/bin/bash | |
# Replace <yourCA> with the filename | |
# The output will be in the same format as ones in ca-bundle.crt | |
openssl x509 -in <yourCA>.crt -text >> /usr/share/ssl/certs/ca-bundle.crt |
This file contains hidden or 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
# Feel free to change this path of course (and keys_zone value as well, but also change the usage of it below). | |
proxy_cache_path /var/www/cache/resized levels=1:2 keys_zone=resizedimages:10m max_size=1G; | |
# Gzip was on in another conf file of mine...You may need to uncomment the next line. | |
#gzip on; | |
gzip_disable msie6; | |
gzip_static on; | |
gzip_comp_level 4; | |
gzip_proxied any; | |
# Again, be careful that you aren't overwriting some other setting from another config's http {} section. |
This file contains hidden or 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
######################################## | |
# | |
# Nginx 1.8.0 | |
# Pagespeed v.1.9.32.6 | |
# OpenSSL 1.0.2d | |
# - Tested on Ubuntu 14.4.2 | |
# | |
######################################## | |
#######Compiling nginx with pagespeed and GeoIP module
As root execute below commands
# yum install gcc-c++ pcre-devel pcre-devel zlib-devel make unzip openssl-devel
And then download PageSpeed with below commands
# mkdir -P /opt/nginx; mkdir -P /opt/nginx/modules/;
# cd /opt/nginx/modules
# NPS_VERSION=1.9.32.3
# wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip
# unzip release-${NPS_VERSION}-beta.zip
This file contains hidden or 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
#!/bin/bash | |
# Full path to tc binary | |
TC=$(which tc) | |
# | |
# NETWORK CONFIGURATION | |
# interface - name of your interface device | |
# interface_speed - speed in mbit of your $interface | |
# ip - IP address of your server, change this if you don't want to use |
You can use the -U option (--database-root PATH)
updatedb -l 0 -U /home/user/music -o /home/user/databasefile
-o writes to the output file
-l 0 makes that you can read it, otherwise it is only accessible for locate
Then you can then use it like:
This file contains hidden or 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
@echo off | |
echo Preparing video for Fast Start... | |
IF EXIST "Output" ( | |
echo Output directory is present | |
) else ( | |
echo Writing Output directory | |
mkdir "Output" | |
) |