LDAP from Linux Command Line

> net group /DOMAIN TLAdmin
> net group /DOMAIN TLAdmin
> NET USER loginname /DOMAIN | FIND /I " name "

$ adquery user -p loginname

$ for i in `cat file.txt` do adquery user -p $i; done

You might try ldapsearch too

# Turn off word wrap with -r switch
$ ldapsearch mail=somone@hotmail.com -r

$ ldapsearch sAMAccountName=userId

Windows 10 Stuck on Update

Refer: http://bootables.net/windows-10-updates-stuck-download/

Open a command terminal as an administrator and shutdown two services:

  • C:>net stop wuauserv
  • C:>net stop bits

Go to the following folder and delete everything, a few folders may stick.

  • C:\Windows\SoftwareDistribution

Reboot your computer and update services should be already restarted, you can restart them manually like this with another admin terminal.

  • C:>net start wuauserv
  • C:>net start bits

Installing Kobi onto Ubuntu 14.04 Media Player

Refer: http://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:team-xbmc/ppa
$ sudo apt-get update
$ sudo apt-get install kodi

Note: To keep the XMBC player from always going full screen, go to:

System, System, Video output, and set Display Mode to Window

WD My Cloud with Ubuntu

smb://192.168.1.18/public

Then XnView can find it here:
Computer/run/user/1000/gvfs/smb-share:server=192.168.1.18

This works much faster locally

While trying to figure this out, installed this, probably not necessary:

$ sudo apt-get install nfs-common

Dust versus AngularJS

JavaScript Framework Dust:
http://akdubya.github.io/dustjs/#guide

AngularJS versus Dust
Refer: http://stackoverflow.com/questions/15336187/what-is-the-difference-between-angularjs-and-dust-js

Dust.js is purely a templating module. So, it allows the combination of json with a template to deliver html output.

Angular.js is client side framework that allows binding of logic to variables defined in a template (your page).

So, with dust.js you are responsible for deciding when to run the json through the template. Typically you feed in the json on the server (or client) and ask it to render the results.

With angular.js when the model (the json) changes the framework re-renders as appropriate. Triggers for that change could be user actions (such as filling a form in) or it could be due to loading some fresh json from a service.

Typically you would use angular.js if you want a single page JS app (think gmail). dust.js is perhaps more akin to a traditional approach with multi pages with content driven by passing in json.

You could even use the both of them in tandem - server side rendering using dust.js with dynamic client side logic in angular.js.

Mount FTP Drive on Ubuntu that’s Anonymous

$ apt-get install curlftpfs
$ sudo /mnt/HS-DHGLF7B

Change the permissions for everyone to add/update/delete

The following command will mount it:
$ sudo curlftpfs -o allow_other 192.168.1.14 /mnt/HS-DHGLF7B/

This is for an FTP with a user account:
$ curlftpfs ftp-user:ftp-pass@my-ftp-location.local /mnt/my_ftp/

Ubuntu Audio-Recorder

Installation

Refer: https://launchpad.net/~osmoma/+archive/ubuntu/audio-recorder

$ sudo add-apt-repository ppa:osmoma/audio-recorder
$ sudo apt-get update
$ sudo apt-get install audio-recorder

User the "Built-in Audio Analog Stereo (Audio output) for Source to record from browser and you can also choose VLC, for example, to record from an application.

Also make sure to go into additional settings to change your target output folder.

 

 

Macbook Show/Hide Hidden Files

Open the Terminal application in your Utilities folder.  At the prompt enter or paste the following command line then press RETURN.

$ defaults write com.apple.finder AppleShowAllFiles TRUE
$ killall Finder

To turn off the display of invisible files and folders enter or paste the following command line and press RETURN.

$ defaults write com.apple.finder AppleShowAllFiles FALSE
$ killall Finder

SNES ROM(s) and Installing Joystick

Install through the software center "higan"

Calibarate the settings for a Gravis GamePad Pro
Settings, Configuration
"Super Famicon", go through all the Key Combinations

Refer: http://airbornesurfer.com/2015/04/how-to-setup-a-generic-joystick-or-gamepad-in-ubuntu-linux/

$ sudo apt-get install joystick
$ sudo apt-get install jstest-gtk

See if it's calibibrated properly
$ jstest-gtk