This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To rename WSL Distros on Windows follow the steps: | |
1. Stop all instances of WSL | |
On PowerShell run the command: wsl --shutdown | |
2. Open Registry Editor and go to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss | |
Each subfolder on Lxss represents a distro | |
3. Locate and rename the distro you want | |
Inside each distro folder you have the DistributionName, change it and click ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Macros.h by Orlando Aleman Ortiz <[email protected]> | |
*/ | |
#define ApplicationDelegate [[UIApplication sharedApplication] delegate] | |
#define Bundle [NSBundle mainBundle] | |
#define DATE_COMPONENTS NSYearCalendarUnit|NSMonthCalendarUnit|NSDayCalendarUnit | |
#define DateString [NSDateFormatter localizedStringFromDate:[NSDate date] dateStyle:NSDateFormatterShortStyle timeStyle:NSDateFormatterNoStyle] | |
#define FlushPool(p) [p drain]; p = [[NSAutoreleasePool alloc] init] | |
#define HexAlphaColor(c, a) [UIColor colorWithRed:((c>>16)&0xFF)/255.0 green:((c>>8)&0xFF)/255.0 blue:(c&0xFF)/255.0 alpha:a] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)closeFramingView | |
{ | |
NSFileManager *fileManager= [NSFileManager defaultManager]; | |
if(![fileManager fileExistsAtPath:USER_PICS_DIRECTORY]) | |
if(![fileManager createDirectoryAtPath:USER_PICS_DIRECTORY withIntermediateDirectories:YES attributes:nil error:NULL]) | |
NSLog(@"Error: Create folder failed %@", USER_PICS_DIRECTORY); | |
NSString *pngPath = [NSString stringWithFormat:@"%@%@.png", | |
USER_PICS_DIRECTORY, [UserPrefsHandler UserPicFileName]]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SPXFrameScroller.h | |
// SmartyPix | |
// | |
// Created by Mike Bobiney on 8/23/11. | |
// Copyright 2011 Tap Through Apps LLC. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |