Skip to content

Instantly share code, notes, and snippets.

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@codyopel
codyopel / WAP.md
Last active August 29, 2015 14:24
Plans for finding WAP to support

Requirements

  • Wireless Chipset
    • Wireless AC
    • Support for at least 3 spatial streams
  • Wireless Router/AP
    • 128F (flash)
    • 256R (ram)
    • ARM processor (maybe mips)

Chipsets by manufacturer

#!/usr/bin/env sh
# Currently only works with single wireless card (picks first one found)
wireless_interface() { # Find wireless interface name
nmcli d | awk '/802-11-wireless/ {print $1}'
}
@codyopel
codyopel / bpp.md
Last active December 9, 2015 05:57
Video bpp
Bits Per Pixel at different Bits Per Channel Color & Chroma Subsamplings
  • 8bit 4:2:0
    (4 * 8) + (2 * 8) + (0 * 8) = 48
  • 8bit 4:2:2
 (4 * 8) + (2 * 8) + (2 * 8) = 64
<?xml version="1.0"?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RespawnShips>
<Ship>
<Id>
<TypeId>RespawnShipDefinition</TypeId>
<SubtypeId>RespawnShip</SubtypeId>
</Id>
<DisplayName>OFSV II</DisplayName>
<Icon>Textures\GUI\Icons\Fake.dds</Icon>
@codyopel
codyopel / ffmpeg-deps.md
Last active August 29, 2015 14:15
FFmpeg Dependencies

FFmpeg Dependencies

  • bs2b
    • refactored
  • celt
    • refactored
    • made generic
  • faac
  • refactored
@codyopel
codyopel / youtube-dl.bat
Last active March 9, 2023 08:34
youtube-dl batch script
ECHO OFF
TITLE youtube-dl
where /q youtube-dl || echo ERROR: youtube-dl not found
CD %userprofile%\Downloads || GOTO:error
CLS
ECHO.
ECHO Download directory: "%CD%"
@codyopel
codyopel / rtorrent-color.patch
Created October 6, 2014 04:49
rTorrent Color Patch
diff --git a/src/command_network.cc b/src/command_network.cc
index c445c38..24ad5c0 100644
--- a/src/command_network.cc
+++ b/src/command_network.cc
@@ -250,6 +250,26 @@
CMD2_VAR_BOOL ("protocol.pex", true);
CMD2_ANY_LIST ("protocol.encryption.set", std::bind(&apply_encryption, std::placeholders::_2));
+ CMD2_ANY ("colors.color_fg_inactive", std::bind(&ui::Root::get_color_fg_inactive, control->ui()));
+ CMD2_ANY_VALUE_V ("colors.color_fg_inactive.set", std::bind(&ui::Root::set_color_fg_inactive, control->ui(), std::placeholders::_2));
@codyopel
codyopel / README.md
Last active August 29, 2015 14:06
readme for music

Proposed Vorbis Comments Fields and Formatting

Field a Description Current Datatype Example
ACCURATERIPDISCID a AccurateRip Disc ID n/a 16-bit int
ACCURATERIPRESULT a AccurateRip Results n/a UTF-8 String
ADVISORY a Content advisory, Explicit lyrics
ALBUM a
ALBUMARTIST a
ALBUMARTISTSORT a