Skip to content

Instantly share code, notes, and snippets.

@codedecay
codedecay / Preferences.sublime-settings
Last active November 5, 2015 05:48
Sublime Text 3 User Preferences
{
"always_show_minimap_viewport": true,
"auto_complete": true,
"auto_complete_commit_on_tab": false,
"auto_complete_with_fields": true,
"auto_find_in_selected": true,
"auto_match_enabled": false,
"bold_folder_labels": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
@codedecay
codedecay / A.markdown
Created November 5, 2015 07:00 — forked from larrybotha/A.markdown
Monokai Sidebar Theme | Sublime Text

Sublime Text Monokai Sidebar Theme

A theme for the sidebar in Sublime Text to match the workspace of the Monokai theme.

This theme only modifies the sidebar to better match the Monokai theme, without modifying any of the styling elsewhere defined by Monokai.

File location: Packages/User

For a theme that extends beyond just the sidebar, visit https://gist.github.com/umpirsky/5842174

@codedecay
codedecay / RestorePublicShare_WDMyCloud.sh
Created November 5, 2015 18:55
Restore WD MyCloud Public Share
#!/bin/sh
echo "Restoring Scripts"
#Either Restore from your backup files..
#/bin/cp /root/bootscript_005_wd-nas.bkup /etc/wdcomp.d/boot/bootscript_005_wd-nas
#/bin/cp /root/createDataVolume.bkup /usr/local/sbin/createDataVolume.sh
#/bin/cp /root/deleteShare.bkup /usr/local/sbin/deleteShare.sh
#/bin/cp /root/overall_share.bkup /etc/samba/overall_share
#Or undo the comments in the existing files.
@codedecay
codedecay / RemovePublicShare_WDMyCloud.sh
Created November 6, 2015 02:16
Removes Public Share from WD MyCloud - Warning all data in the Public folder will be deleted.
#!/bin/sh
echo "Backing up files"
#Backup Files
cp /etc/wdcomp.d/boot/bootscript_005_wd-nas /root/bootscript_005_wd-nas.bkup
cp /usr/local/sbin/createDataVolume.sh /root/createDataVolume.bkup
cp /etc/samba/overall_share /root/overall_share.bkup
echo "Processing Files"
#Comment out relevant lines in the boot and create script.
@codedecay
codedecay / RemovePublicShare.sh
Last active August 25, 2023 18:03
A Walkthrough explaining the process to remove the Public share from a WD MyCloud Device.
#!/bin/sh
echo "Backing up files"
#Backup Files
cp /etc/wdcomp.d/boot/bootscript_005_wd-nas /root/bootscript_005_wd-nas.bkup
cp /usr/local/sbin/createDataVolume.sh /root/createDataVolume.bkup
cp /etc/samba/overall_share /root/overall_share.bkup
echo "Processing Files"
#Comment out relevant lines in the boot and create script.
@codedecay
codedecay / dopus-utils.jscript
Created February 17, 2016 05:55 — forked from spiralx/dopus-utils.jscript
Collection and debug functions for Directory Opus 11 scripts
@script:jscript
/**
* Return an array of the results of running func on each item in coll e.g.
* map(DOpus.vars, function(v, i) {
* return v + '=' + v.value;
* }
*/
function map(coll, func) {
var res = [];