- Run the binary. You should see
Killed: 9
as output in the terminal. - Once the error happens, open the "Security & Privacy" control panel from System Preferences.
- The
Security & Privacy
panel,General
tab is updated with the info that the binary was prevented from running. ClickAllow Anyway
. - Run the binary again. This time a different prompt is shown. Click
Open
- the binary should run as you expect.
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
$excludedUsers = @("Admin", "Administrator") | |
Function Remove-LocalUser { | |
<# | |
.Synopsis | |
This function deletes a local user | |
.Description | |
This function deletes a local user | |
.Example | |
Remove-LocalUser -userName "ed" |
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
## Remove Windows users script | |
# Initial excluded users list | |
$excludedUsers = @("Admin", "admin", "Administrator", "administrator", "Administrador", "administrador", "Invitado", "DefaultAccount", "WDAGUtilityAccount", "USER", "User", "user", "gaia", "Professorat", "Profesorado", "profesorado", "professor", "profesor", "professorat") | |
# Get existing local users | |
$localUsers = Get-WmiObject -Class Win32_UserAccount -Filter "LocalAccount='True'" | Select-Object -ExpandProperty Name | |
# Filter excluded users that are in the local users list | |
$defaultChoices = $excludedUsers | Where-Object { $localUsers -contains $_ } |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<form id="myForm" action="output.html" method="get"> | |
<label for="method">Choose a method:</label> | |
<select id="method" name="method"> | |
<option value="GET">GET</option> | |
<option value="POST">POST</option> |
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
#!/bin/bash | |
# Converting and rendering web fonts to its base64 @font-face variant | |
# Also posted on StackOverflow! https://stackoverflow.com/a/77929643/4349318 | |
# Initialize a variable to hold all @font-face codes | |
all_font_face_codes="" | |
FONT_DIR="." | |
OUTPUT_DIR="./css" |
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
#!/bin/bash | |
supported_resolutions=("144" "240" "360" "480" "720" "1024") # Supported resolutions | |
supported_extensions=("png" "jpg" "jpeg") # Supported image file extensions | |
selected_output_directory="" | |
# default_output_directory="img" | |
selected_resolution="" | |
while [[ $# -gt 0 ]]; do |
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
#!/bin/bash | |
#================================================================ | |
# HEADER | |
#================================================================ | |
#% SYNOPSIS | |
#+ ${SCRIPT_NAME} [-hv] args ... | |
#% | |
#% DESCRIPTION | |
#% This is a script that erases a disk and then copies a designated source disk into an specified target disk. | |
#% You can run it in one line when connected to the internet like this: |
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
package main | |
import ( | |
"log" | |
"net/http" | |
"os" | |
) | |
const webSiteURL = "http://www.example.com/index.html" |
NewerOlder