Skip to content

Instantly share code, notes, and snippets.

@nwgat
nwgat / gist:38f571ce23a6c526f454
Created July 21, 2015 13:03
removing seafile file limit
Fixing file size limit
edit seahubsettings.py to allow bigger sizes
echo "FILEPREVIEWMAXSIZE = 30 * 1024 * 1024" >> seahub_settings.py
@nwgat
nwgat / nwgatdaenc.sh
Last active August 29, 2015 14:26
daala simple encoder
#!/bin/bash
clear
echo ""
echo "### nwgat.ninja simple daala encoder ###"
echo ""
echo "File to encode (use tab to select)"
read -e file
echo "Video Quality (0-511, where 0 is best quality)"
read vq
echo "Video Complexity (0-10, where 10 is best quality)"
@nwgat
nwgat / gist:ed0067c86f96ccb1dd8c
Created August 1, 2015 23:13
seafile seahub Fixing file size limit
edit seahubsettings.py to allow bigger sizes
echo "FILEPREVIEWMAXSIZE = 30 * 1024 * 1024" >> seahub_settings.py
@nwgat
nwgat / gist:13184197590130099602
Last active August 29, 2015 14:26
bash menu work in progress
!/bin/bash
# Bash Menu Script Example
echo ""
echo "### nwgat.ninja ffmpeg toolkit ###"
echo ""
PS3='Please enter your choice: '
options=("Crop to 3840x2160" "Resize to 1080p" "Resize to 720p" "Quit")
select opt in "${options[@]}"
do
case $opt in
#############################################
Nwgat.Ninja DigitalOcean Network Benchmark v3
http://nwgat.ninja/dotest
#############################################
Digitalocean NYC1 (New York City, United States)
104875384 bytes transferred in 2 seconds (41.40M/s)
Digitalocean NYC2 (New York City, United States)
104898960 bytes transferred in 7 seconds (14.02M/s)
Digitalocean NYC3 (New York City, United States)
#############################################
Nwgat.Ninja DigitalOcean Network Benchmark v3
http://nwgat.ninja/dotest
#############################################
Digitalocean NYC1 (New York City, United States)
104901448 bytes transferred in 2 seconds (46.40M/s)
Digitalocean NYC2 (New York City, United States)
104863800 bytes transferred in 3 seconds (31.23M/s)
Digitalocean NYC3 (New York City, United States)
@nwgat
nwgat / chocoinstall.md
Last active February 26, 2016 06:43
useful choco install

Install Chocolately

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

choco feature enable -n allowGlobalConfirmation

Full

choco install everything opera googlechrome firefox foobar2000 mpc-be xnview libreoffice treesizefree notepadplusplus 7zip putty sumatrapdf ccleaner paint.net Inkscape curl winscp imgburn steam

@nwgat
nwgat / After Install Windows 10 tweaks.md
Last active February 21, 2016 09:54
After Install Windows 10 tweaks

Press Win + R keyboard accelerator to open Run dialog box. Type GPedit.msc and hit Enter or OK to open Local Group Policy Editor.

Disable Windows Defender Computer Configuration > Administrative Templates > Windows Components > Windows Defender Click “ Turn off Windows Defender" set it to Enabled

Disable Windows Firewall Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Windows Firewall with Advanced Security -> Windows Firewall with Advanced Security Properties

@nwgat
nwgat / strm mapping.md
Last active October 16, 2015 01:15
The Big Bang Theory Playlist Mapping

Season 1 (Disc 1)

  • 00051.pls (1x01)
  • 00052.pls (1x02)
  • 00053.pls (1x03)
  • 00054.pls (1x04)
  • 00055.pls (1x05)
  • 00056.pls (1x06)
  • 00057.pls (1x07)
  • 00058.pls (1x08)
  • 00059.pls (1x09)
@nwgat
nwgat / letsencrypt.yourdomain.conf
Last active April 4, 2017 20:09
lighttpd letsencrypt ssl conf
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/letsencrypt/live/yourdomain/ssl.pem"
ssl.ca-file = "/etc/letsencrypt/live/yourdomain/fullchain.pem"
ssl.dh-file = "/etc/ssl/certs/dhparam.pem"
ssl.ec-curve = "secp384r1"
ssl.honor-cipher-order = "enable"
ssl.cipher-list = "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"
ssl.use-compression = "disable"
setenv.add-response-header = (