- Boot from Microsoft Windows Server 2012R2 DVD/ISO.
- From the Windows Setup menu, click "Next".
- Select "Repair your computer".
- Click on "Troubleshoot".
- Under Advanced options, click "Command Prompt".
At the command prompt, run the following commands:
If you’re trying to delete a very large number of files at one time (I deleted a directory with 485,000+ today), you will probably run into this error:
/bin/rm: Argument list too long.
The problem is that when you type something like “rm -rf ”, the “” is replaced with a list of every matching file, like “rm -rf file1 file2 file3 file4” and so on. There is a reletively small buffer of memory allocated to storing this list of arguments and if it is filled up, the shell will not execute the program. To get around this problem, a lot of people will use the find command to find every file and pass them one-by-one to the “rm” command like this:
find . -type f -exec rm -v {} \;
My problem is that I needed to delete 500,000 files and it was taking way too long.
/* Simple Social Icons | |
--------------------------------------------- */ | |
.simple-social-icons li.social-dribbble a { | |
border: 2px solid #ea4c89 !important; | |
color: #ea4c89 !important; | |
} | |
.simple-social-icons li.social-dribbble a:hover { | |
background-color: #ea4c89 !important; |
/// <summary> | |
/// Handles the login form when user posts the form/attempts to login | |
/// </summary> | |
/// <param name="model"></param> | |
/// <returns></returns> | |
[HttpPost] | |
public ActionResult HandleLogin(LoginViewModel model) | |
{ | |
if (!ModelState.IsValid) | |
{ |
using FormsControls.Base; | |
using Xamarin.Forms; | |
namespace DemoNavigation | |
{ | |
public partial class RotatePage : ContentPage, IAnimationPage | |
{ | |
public IPageAnimation PageAnimation { get; } = new RotatePageAnimation | |
{ | |
Duration = AnimationDuration.Long, |
string url = "https://myurl.com"; | |
string client_id = "client_id"; | |
string client_secret = "client_secret"; | |
//request token | |
var restclient = new RestClient(url); | |
RestRequest request = new RestRequest("request/oauth") {Method = Method.POST}; | |
request.AddHeader("Accept", "application/json"); | |
request.AddHeader("Content-Type", "application/x-www-form-urlencoded"); | |
request.AddParameter("client_id", client_id); | |
request.AddParameter("client_secret", client_secret); |
--from SO: http://stackoverflow.com/questions/5873170/generate-class-from-database-table | |
declare @TableName sysname = 'TableName' | |
declare @Result varchar(max) = 'public class ' + @TableName + ' | |
{' | |
select @Result = @Result + ' | |
public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; } | |
' | |
from |
Here are a few example use cases, these use cases combine filter with other parameters to make useful API queries. The syntax for any of this may change between now, implementation, and release - they're meant as illustrative examples :)
api.posts.browse({filter: "tags:[photo, video] + id:-5", limit="3"});
GET /api/posts?filter=tags%3A%5Bphoto%2Cvideo%5D%2Bid%3A-5&limit=3
Here are a few example use cases, these use cases combine filter with other parameters to make useful API queries. The syntax for any of this may change between now, implementation, and release - they're meant as illustrative examples :)
api.posts.browse({filter: "tags:[photo, video] + id:-5", limit="3"});
GET /api/posts?filter=tags%3A%5Bphoto%2Cvideo%5D%2Bid%3A-5&limit=3