![]() |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare git@github.com:usi-systems/easytrace.git
For verifying the integrity (but not authenticity of data, i.e., who authored it or the origin of the file) of a file, it is necessary to run a checksum function on the file which will output a value and compare it to a previously stored checksum value; if both values match, we can be relatively confident that the file hasn't been tampered with or altered.
You might be asked to verify a file's sha1sum or sha2sum–-all this means is calculating and verifying the cryptographic sha1 or sha2 hash value or digest included in the file.
Organic:
In terminal run:
| private class MyArrayBuffer<Element>: ManagedBuffer<Int,Element> { | |
| func clone() -> MyArrayBuffer<Element> { | |
| return self.withUnsafeMutablePointerToElements { elements -> MyArrayBuffer<Element> in | |
| return MyArrayBuffer<Element>.create(self.allocatedElementCount) { newBuf in | |
| newBuf.withUnsafeMutablePointerToElements { newElems->Void in | |
| newElems.initializeFrom(elements, count: self.value) | |
| } | |
| return self.value |
| 1. Open Terminal | |
| 2. cd to your Xcode project | |
| 3. Execute the following when inside your target project: | |
| find . -name "*.swift" -print0 | xargs -0 wc -l |
| - (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { | |
| UITableViewRowAction *moreAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"More" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath){ | |
| // maybe show an action sheet with more options | |
| [self.tableView setEditing:NO]; | |
| }]; | |
| moreAction.backgroundColor = [UIColor lightGrayColor]; | |
| UITableViewRowAction *blurAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"Blur" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath){ | |
| [self.tableView setEditing:NO]; | |
| }]; |
| <# | |
| .SYNOPSIS | |
| Gets a PowerShell Credential (PSCredential) from the Windows Credential Manager | |
| .DESCRIPTION | |
| This module will return a [PSCredential] object from a credential stored in Windows Credential Manager. The | |
| Get-StoredCredential function can only access Generic Credentials. | |
| Alias: GSC |
| (* | |
| Probe Menu Bar | |
| This script uses UI element scripting to return a list of every menuitem | |
| of every menu for every application currently running. | |
| If "Enable access for assistive devices" is not checked, | |
| this script will open the Universal Access System Preference and ask | |
| the user to check the checkbox. |
| #!/usr/bin/env python | |
| """Command line script to convert a file, usually an image, into a data URI | |
| for use on the web.""" | |
| import base64 | |
| import mimetypes | |
| import os | |
| import sys | |
