You can find the location of a share among your disks by using the following command.
- SSH into your server, then run the following command
ls /mnt/disk*/Backup
Leave a Comment
You can find the location of a share among your disks by using the following command.
ls /mnt/disk*/Backup
Leave a Comment
sudo df -h show system image storage
delete system image
https://help.ubnt.com/hc/en-us/articles/205146110-EdgeRouter-Upgrading-EdgeOS-firmware
Leave a CommentI wanted to record how much bandwidth is being used during the month. I found these instructions to install vnstat, a traffic monitor.
configure set system package repository wheezy components 'main contrib non-free' set system package repository wheezy distribution wheezy set system package repository wheezy url http://http.us.debian.org/debian commit; save; exit
sudo vnstat -i eth0
ln -s /etc/init.d/vnstat /config/scripts/post-config.d/vnstat
More info can be found here:
http://tate.cx/edgeos-data-usage-monitor-using-vnstat https://community.ubnt.com/t5/EdgeMAX-Feature-Requests/vnStat-vnStati-on-ERL/idi-p/819414
Leave a Comment
If you get this error:
modprobe: ERROR: could not insert 'ip_tables': Exec format error
iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
Run this:
$ wget http://last.public.ovh.hdaas.snap.mirrors.ovh.net/ubuntu/pool/main/l/linux-modules-armada375/linux-modules-armada375_4.5.2-4_armhf.deb
$ dpkg -i linux-modules-armada375_4.5.2-4_armhf.deb
Found on: https://www.lowendtalk.com/discussion/comment/2806769/#Comment_2806769
Leave a CommentCreate a windows service using NSSM its as easy as below; download it here https://nssm.cc/download .
nssm install ServiceNameX c:\runme.exe
Leave a Comment I forgot my password to the Ubuntu app in Windows. Here is the way I reset it.
Got the steps here: https://askubuntu.com/questions/772050/reset-the-password-in-linux-bash-in-windows
Leave a CommentOpen up a command prompt windows has an administrator and run the following command
slmgr.vbs -rearm
Leave a Comment
Good article on configuring IIS logs to track the IP address of the client rather than the load balancer IP address.
https://www.loadbalancer.org/blog/iis-and-x-forwarded-for-header/
Leave a CommentWhen installing Sharepoint 2013 on a virtual machine running Windows Server 2012 R2 I keep getting a configuration error for the Application Server Role. After reading a bunch of material and trying to install Windows updates I’ve found that the only thing necessary is to make a copy of C:\Windows\System32\ServerManager.exe and rename the copy to C:\Windows\System32\ServerManagerCMD.exe. This seems to fix my installation problems.
Make sure to close the server manager window as well if you have it open. It seems to make the installation hang if its open.
Leave a CommentWhile doing some software installations for linux I had to shrink my flash drive to a partition of 32GB. The next time I stuck in my laptop I forgot I had done that and needed to use the entire 64GB that was available. Disk management wouldn’t allow me to delete the 32GB partition so I had do the following steps.
RESTORE DATABASE [MyDatabase] FROM DISK = N'E:\MyDatabase.bak' WITH FILE = 1, MOVE N'MyDatabase' TO N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Data\MyDatabase.mdf', MOVE N'MyDatabase_Log' TO N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Data\MyDatabase.ldf', NOUNLOAD, REPLACE, STATS = 10 GO
http://www.codeproject.com/Articles/708720/Solution-The-WITH-MOVE-clause-can-be-used-to-reloc
Leave a Comment
It wasn’t straightforward doing adding a list from my twitter account to a tab in Twidere. So here you go…
From Tabs click the + sign, press List Timeline. Press where it says “Select user list” and search for yourself. Select your account. You should now be displayed your private lists. Just press one and finish the process of adding it.
There you go.
Leave a CommentThis is my first power shell command. I wanted to remove all spaces from the file names in my current directory.
Dir | Rename-Item –NewName { $_.name –replace " ","" }
Here is more information on the Rename-Item command.
http://technet.microsoft.com/en-us/library/hh849763.aspx
Leave a CommentSELECT c.name AS ColName, t.name AS TableName
FROM sys.columns c
JOIN sys.tables t ON c.object_id = t.object_id
WHERE c.name LIKE '%LookingForThisColumn%'
Leave a Comment
I’m new to the SPA303 phone. I had trouble figuring out how to set it up so I don’t have to dial the area code for a phone number within the same area code. Below is an example I found.
Original string: (*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.) Modified string: (lets assume my area code is 999) (*xx|[3469]11|0|00|<:1999>[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)
Leave a Comment
All types and type members have an accessibility level, which controls whether they can be used from other code in your assembly or other assemblies. You can use the following access modifiers to specify the accessibility of a type or member when you declare it:
public
The type or member can be accessed by any other code in the same assembly or another assembly that references it.
private
The type or member can be accessed only by code in the same class or struct.
protected
The type or member can be accessed only by code in the same class or struct, or in a class that is derived from that class.
internal
The type or member can be accessed by any code in the same assembly, but not from another assembly.
protected internal
The type or member can be accessed by any code in the assembly in which it is declared, or from within a derived class in another assembly. Access from another assembly must take place within a class declaration that derives from the class in which the protected internal element is declared, and it must take place through an instance of the derived class type.
http://msdn.microsoft.com/en-us/library/ms173121.aspx
Leave a CommentDECLARE @Search varchar(255) SET @Search='CITERIA' SELECT DISTINCT o.name AS Object_Name,o.type_desc FROM sys.sql_modules m INNER JOIN sys.objects o ON m.object_id=o.object_id WHERE m.definition Like '%'+@Search+'%' ORDER BY 2,1
Leave a Comment
Changing it one by one use the following.
ALTER SCHEMA dbo TRANSFER someschema.someobject;
Changing all stored procedures.
select 'ALTER SCHEMA dbo TRANSFER ' + SPECIFIC_SCHEMA + '.' + ROUTINE_NAME from INFORMATION_SCHEMA.ROUTINES where ROUTINE_TYPE='procedure'
Leave a Comment
https://www.digitalocean.com/community/articles/how-to-protect-ssh-with-fail2ban-on-centos-6
Leave a Comment