-
Install
Xquartz
to get X11 support on MacOS. You can googleXquartz
and download it from its official site, or install using HomeBrew.brew cask install xquartz
-
Launch
Xquartz
. Go toPreference
->Security
, click the boxAllow connections from clients
. NOTE: You have to lauchXquartz
withAllow connections from clients
enable everytime you want tossh
to remote server with X11 forwarding support.
This file contains 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
<!-- | |
XSLT for removing unused namespaces from an XML file. | |
Author: Dimitre Novatchev | |
Source: https://stackoverflow.com/a/4594626 | |
License: CC BY-SA, https://creativecommons.org/licenses/by-sa/2.5/ | |
Usage: | |
xmlstarlet tr remove-unused-namespaces.xslt - |
This file contains 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
Special Character | Description | Extra information | |
---|---|---|---|
$_ | Absolute path of the shell binary file that is executing the script | Ex. /bin/bash or /bin.sh | |
$0 | Path of the executing Bash script | Ex. ./my-file.sh | |
$N | Nth argument passed to the executing Bash script | $1 is 'apple' for the command 'bash file.sh apple' | |
$* | All arguments passed to the executing Bash script | expands to a word inside double-quotes | |
$@ | All arguments passed to the executing Bash script | expands to a separate words inside double-quotes | |
$# | Number of arguments passed to the executing Bash script | $# is 3 for the command 'bash file.sh A B C' | |
$? | Exit status code of last executed command in the foreground | returns a decimal number between 0-255 | |
$! | Process ID of last executed command in the background | empty of no background command was extecuted | |
$$ | Process ID of executing Bash script | returns a decimal number |
This file contains 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
import { FormGroup, FormControl, FormArray, Validators } from "@angular/forms"; | |
function testFormGroupTyped() { | |
var frm = new FormGroup({ | |
a: new FormArray([new FormControl(0)]), | |
b: new FormControl(true), | |
c: new FormGroup({ | |
s: new FormControl("abc"), | |
n: new FormControl(123) | |
}) |
This file contains 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
// First, clone the word list project here: https://github.com/dwyl/english-words.git | |
// Then save this file in the same folder and run! | |
open System.IO | |
// Ok... Here's how it works... | |
// First, we load all the words from the Moby text fil | |
let allTheWords = File.ReadAllLines("words.txt") |
Remove SentinelOne agent from Mac
- Boot into Recovery Mode by holding Cmd+R during reboot
- Open Terminal from top menubar
- Run
/Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utility
to open Disk Utility - If your startup disk is encrypted, use Disk Utility to mount it
- In Terminal, run
chroot /Volumes/Macintosh\ HD
- Execute the deletion commands or script
curl -L https://git.io/fx8PT -o increase_osx_max_opened_files.sh
chmod +x increase_osx_max_opened_files.sh
sudo ./increase_osx_max_opened_files.sh
before run this:
SSH into AWS ec2/ Digitalocean droplet/ or else other PAAS, linux machine
- Install Docker
$sudo apt install docker.io
$sudo usermod -aG docker $USER
I already installed docker
This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).
Matrix multiplication is a mathematical operation that defines the product of
This file contains 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 io.github.benas.sbi; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.nio.file.StandardCopyOption; | |
import javax.sql.DataSource; | |
import org.springframework.batch.core.Job; | |
import org.springframework.batch.core.Step; | |
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; |
NewerOlder