Unity 3D – Changing color on game object changes color on other objects in scene

Problem: When changing the shader color on a game object, the color on other game objects changes.

Reason: This happens because the other game objects are using the same Mesh Renderer as the game object your modifying.  So when your changing the shader, your actually modifying the Mesh Renderer, not the game object.

Fix: Change the Mesh Renderer for the game object.

In the example picture below, when you change the color on the cube (highlighted red) the color on the capsule changes, because they both are using the same Mesh Renderer (highlighted green).  To fix, change either the Cube or Capsule to a different Mesh Renderer (highlighted green)

Turn on Dell Poweredge PSU without server – A930P

Being able to turn a server power supply on without having it plugged into the server can be super beneficial.  You can use it to power electronics like GPU’s and they are usually really cheap.

The Instructions are for an A930P 930W server power supply.  More detailed information is available at the following couple of links.

http://pinoutguide.com/Power/dell_server_24_6_psu_pinout.shtml

http://static.rcgroups.net/forums/attachments/3/1/3/5/4/3/a4875719-98-pinout%202800%202850%20n%203.jpg

To power on the PSU, wire the pins highlighted with Blue and Green

The two pins highlighted Orange will slow the fan down.

Or by using the numbering from the picture below.

Wire pins A1 to B1 and Pins B6 to D6.

Fan is pin B2 and can be wired to B3 to decrees the fan speed to make it quieter.

http://static.rcgroups.net/forums/attachments/3/1/3/5/4/3/a4875719-98-pinout%202800%202850%20n%203.jpg

You can now run stuff off of the 12 volt output.

Delete SNMPv3 User on Linux

Don’t know if this is the recommended way to delete a user, but it seems to work.

sudo service snmpd stop

Open up the snmpd.conf file in /var/lib and find the line with the SNMP user and delete the line

sudo vi /var/lib/snmp/snmpd.conf

Save, exit, and start snmpd

sudo service snmpd start

These steps work for Ubuntu, but should work for any Debain based distro as well as CentOS, Fedora, RedHat etc.

Setting up Proxy over SSH with Putty on Windows

What we are going to do is create a proxy using ssh so we can tunnel our web traffic in Firefox through it.

First, launch putty and setup a SSH connection like you normally would.

Next, in Putty, go to the Connection, SSH, Tunnels.  Set source port, change to Dynamic, and add.  In this example we are using port 1880.

After you have it set, Open the connection and log in.

Now go to the Proxy settings in Firefox.  You can open new tab, type about:preferences, hit enter, search proxy.

Set to Manual proxy configuration, then under SOCKS Host put localhost and the port number from Putty above, 1880 in our case.

You should now be running over the proxy, can test by running a whats my ip address.

This can be particularly useful in cases where you need to access a local IP address range on something like a Ubiquiti radio or router.  Or you need to check something from a different IP address.

How to Find System Uptime in Windows

There are a few different ways to view the system uptime.   either the Task Manager or the Command Prompt.

Task Manager

Launch the Task manager by using the Ctrl+Shift+ESC Shortcut keys, Right clicking on the Task Bar, or by searching and launching from the start menu.

Go to the Performance tab, view Up time at the bottom (On Windows 10 you may need to hit More “details first”

 

Command Prompt

Launch the Command Prompt.  Can do this by clicking start and searching for cmd.

Then run

 systeminfo | find "System Boot Time"

It’ll show you when the system last started up.

Example:

C:\Users\Owner>systeminfo | find "System Boot Time"
System Boot Time: 6/21/2018, 3:45:12 AM

C:\Users\Owner>

Radio Connectors

List of Common Cable connectors and what they are typically used for.

  • sma (small radio connect, Kenwood antennas)
  • rp-sma (WiFi sma connector, WiFi router antennas, Ubiquiti antennas etc.)
  • RG59 (Older TV systems)
  • RG6 (TV, Dish and Direct TV Satellite)
  • BNC (Security Cameras)
  • N Type (Used on larger WeBoost systems)
  • PL-259-G / SO-239 (VHF/UHF Mobile radio connectors)

PL-259-G

Plugs into a SO-239 connector.  Typically is used in radio communications, like Kenwood Mobile radios.

Remove AirControl provisioning from Ubiquiti radio via SSH

Short version

List AirControl server(s)

mca-provision-list

Remove from AirControl Server

mca-provision-rm http://server-address

 

Expanded Steps

First you’ll need to SSH into your radio

Example:

ssh ubnt@192.168.1.20

Next run “mca-provision-list” to list the connection(s) the radio has, or is trying to connect to.  If you have had the radio connected to multiple AirControl servers it will show more than one entry.

Example:

XM.v6.1.3# mca-provision-list
unknown @ http://192.168.0.1:9081/AC2/report -
XM.v6.1.3#

To remove, run “mca-provision-rm” with the AirControl address.  You can simple use the “http://server-ip”, shouldn’t have to worry about the port number/AC2/report.

Example:

XM.v6.1.3# mca-provision-rm http://192.168.0.1
Found 1 entries matching 'http://192.168.0.1':
Removing: unknown @ http://192.168.0.1:9081/AC2/report ...
Found Backup1 on[1] ...
Found Active on[2] ...
Storing Active[1] ... [%100]
Active->Backup[2] ... [%100]
done.
XM.v6.1.3#

 

Add multiple IP bindings to Mikrotik Hotspot – Bash Script

Copy and paste the following into a file named mtbypass.sh and then “chmod +x mtbypass.sh”  Or download from this direct link.  Be sure to change the username and password

#!bin/bash
filelist="bypasslist.txt"
username="admin"
password="password!"
ip="$1"

for i in `cat ${filelist}`
do
address=`echo $i | cut -d= -f1`
mac=`echo $i | cut -d= -f2`
sshpass -p ${password} ssh ${username}@${ip} "ip hotspot ip-binding add address=${address} mac-address=${mac} type=bypassed"
done

Now create a file named bypasslist.txt and put all the addresses you want bypassed.  You’ll need the Mac Address and the IP Address.

Example file

192.168.88.2=4C:5E:0C:B8:4E:01
192.168.88.3=3E:AA:A1:2D:8B:2C
192.168.88.5=DE:D1:39:65:91:4E

Usage of script is

./mtbypass.sh MikrotikIP

Example:

./mtbypass.sh 192.168.88.1