- OS X
- XCode
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
| When download a github content, it thows following error: | |
| "ERROR: certificate ....To connect to raw.github.com insecurely, use `--no-check-certificate'" | |
| Problem: | |
| + Unset valid time/timezone. | |
| + CA Certificate invalid. | |
| Resolve: |
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 momentDateTime() { | |
| var format = "YYYY-MM-DD HH:mm" | |
| //date.isValid() is not enough for strict validation, see moment.js doc | |
| var pattern = /^\s*\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}(:\d{2})?\s*$/ | |
| return { | |
| restrict: 'A', | |
| require: 'ngModel', | |
| link: function (scope, element, attr, ngModel) { | |
| ngModel.$parsers.push(function (text) { | |
| var date = moment(text, format); |
- Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
- Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
- Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
- Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
- Kill switch: If the website
www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.comis up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).
update: A minor variant of the viru
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
| # Heading |
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
| public class CertificateViewModel | |
| { | |
| public int Id { get; set; } | |
| public AccountViewModel Account { get; set; } | |
| public CertificateType Type { get; set; } | |
| public CertificateRegionType Region { get; set; } |
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
| public class CertificateApiEditModel : IValidatableObject | |
| { | |
| [Required] | |
| public CertificateType? Type { get; set; } | |
| [Required] | |
| public CertificateRegionType? Region { get; set; } | |
| //[MustBeTrue] | |
| public bool SignedOff { get; set; } |
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
| Step by step how to pull a private DockerHub hosted image in a Kubernetes YML. | |
| export DOCKER_REGISTRY_SERVER=https://index.docker.io/v1/ | |
| export DOCKER_USER=Type your dockerhub username, same as when you `docker login` | |
| export DOCKER_EMAIL=Type your dockerhub email, same as when you `docker login` | |
| export DOCKER_PASSWORD=Type your dockerhub pw, same as when you `docker login` | |
| kubectl create secret docker-registry myregistrykey \ | |
| --docker-server=$DOCKER_REGISTRY_SERVER \ | |
| --docker-username=$DOCKER_USER \ |
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
| <?php | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); | |
| $DOMAIN = 'api.mixcord.co'; | |
| $site = "https://" . $DOMAIN; | |
| $request = $_SERVER["REQUEST_URI"]; | |
| $url = $site . $request; |
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
| ; Start a new pool named 'www'. | |
| ; the variable $pool can be used in any directive and will be replaced by the | |
| ; pool name ('www' here) | |
| [www] | |
| ; Per pool prefix | |
| ; It only applies on the following directives: | |
| ; - 'access.log' | |
| ; - 'slowlog' | |
| ; - 'listen' (unixsocket) |
OlderNewer