-
Restart in Recovery mode
- Shut down the Mac.
-
- Intel Mac: turn it on and hold
Command (β) + Runtil you see the Apple logo. - Mac with Apple Silicon (M1/M2/M3): hold the power button until you see βOptionsβ, then click βOptionsβ β βContinueβ.
- Intel Mac: turn it on and hold
-
Open Terminal in Recovery
- From the top menu bar:
UtilitiesβTerminal.
- From the top menu bar:
-
Command to disable SIP
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
| <% | |
| Function substringFromIndices(String, startIndex, endIndex) | |
| Dim resultString | |
| ' Validate indices | |
| If startIndex < 1 Then | |
| startIndex = 1 | |
| End If | |
| If endIndex > Len(String) Then |
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
| <% | |
| Function get_character(index, text) | |
| If IsNumeric(index) and index < Len(text) and Not(index < 0)Then | |
| get_character = Left(Right(text,(Len(text) - index)), (1)) | |
| End If | |
| End Function | |
| %> |
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
| <% | |
| 'Function to remove double spaces from text | |
| Function remove_double_spaces(ByVal my_string) | |
| Dim temp_string | |
| temp_string = my_string | |
| Do While InStr(1, temp_string, " ") | |
| temp_string= Replace(temp_string, " ", " ") | |
| Loop | |
| temp_string = Trim(temp_string) | |
| remove_double_spaces = temp_string |
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
| <% | |
| Function remove_single_numbers_from_text(ByVal my_string) | |
| Dim temp_string | |
| temp_string = my_string | |
| Dim temp | |
| For Each temp In Split(my_string, " ") | |
| If IsNumeric(temp) Then | |
| temp_string = Replace(temp_string, temp & " ", "") | |
| End If | |
| Next |
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
| <% | |
| Dim my_array | |
| my_array = Array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0") | |
| %> |
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
| <% | |
| Private Function remove_single_letters_from_text(ByVal my_string) | |
| Dim letters_array | |
| letters_array = Array("q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m") | |
| Dim temp_string | |
| temp_string = my_string | |
| Dim temp | |
| For Each temp In letters_array | |
| If InStr(temp_string, " " & temp & " ") <> 0 Then | |
| temp_string = Replace(temp_string, " " & temp & " ", " ") |
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
| <% | |
| Dim my_array | |
| my_array = Array("q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "a", "s", "d", "f", "g", "h", "j", "k", "l", "z", "x", "c", "v", "b", "n", "m") | |
| %> |
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
| <% | |
| Dim my_array | |
| my_array = Array(".", ",", ":", ";", "`", "/", "\", "|", "_", "-", "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "+", "=", "{", "[", "}", "]", "'", "<", ">") | |
| %> |
NewerOlder