-
Boot to Recovery Mode by holding
command-Rduring restart -
Open Tools → Terminal and type
$ csrutil disable
$ reboot
| // Sample code to perform I/O: | |
| process.stdin.resume(); | |
| process.stdin.setEncoding("utf-8"); | |
| var stdin_input = ""; | |
| process.stdin.on("data", function (input) { | |
| stdin_input += input; // Reading input from STDIN | |
| }); | |
| const assert = require('assert'); | |
| function fnc() { | |
| assert.deepEqual(arguments?.[0], { 'c': 3 }) | |
| assert.deepEqual(arguments?.[1], { 'a': 1, 'b': '2' }) | |
| assert.ok(arguments?.[2] === 3, '!= 3') | |
| assert.ok(arguments?.[3] === 5, '!= 5') | |
| } | |
| const object = { 'a': 1, 'b': '2', 'c': 3 }; |
| const quotes = [ | |
| { | |
| quote:"Every person who wins in any undertaking must be willing to cut all sources of retreat. Only by doing so can one be sure of maintaining that state of mind known as a burning desire to win - essential to success.", | |
| source:"Napoleon Hill", | |
| citation: "Brainyquote", | |
| year: 2020 | |
| }, | |
| { | |
| quote:"Fear is the main source of superstition, and one of the main sources of cruelty. To conquer fear is the beginning of wisdom.", |
| // Sample code to perform I/O: | |
| process.stdin.resume(); | |
| process.stdin.setEncoding("utf-8"); | |
| var stdin_input = ""; | |
| process.stdin.on("data", function (input) { | |
| stdin_input += input; // Reading input from STDIN | |
| }); |
| process.stdin.resume(); | |
| process.stdin.setEncoding("utf-8"); | |
| var stdin_input = ""; | |
| process.stdin.on("data", function (input) { | |
| stdin_input += input; // Reading input from STDIN | |
| }); | |
| process.stdin.on("end", function () { | |
| main(stdin_input); // Execute our entrypoint when we've finished reading the input |
| #!/bin/bash | |
| # IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
| # IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS. | |
| # This script needs to be run from the volume you wish to use. | |
| # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh | |
| # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
| # Get active services: launchctl list | grep -v "\-\t0" | |
| # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents |
SSH into AWS ec2/ Digitalocean droplet/ or else other PAAS, linux machine
$sudo apt install docker.io
$sudo usermod -aG docker $USER
I already installed docker
| # Auto Start Tmux (must be last) | |
| if [[ -z "$TMUX" ]] then | |
| tmux_session='default' | |
| terminal_slug="`echo $TERM_PROGRAM | iconv -t ascii//TRANSLIT | sed -E 's/[^a-zA-Z0-9-]+/-/g' | sed -E 's/^-+|-+$//g' | tr A-Z a-z | head -c 7`" | |
| if [[ $TERM_PROGRAM == 'vscode' ]]; then | |
| tmux_session="$terminal_slug-`pwd | sha1sum | head -c 8`" | |
| fi | |
| tmux new-session -A -d -s "$tmux_session" |
| import {Link} from 'gatsby' | |
| import {cx, css} from 'linaria' | |
| import React from 'react' | |
| import BlogPostPreview from './blog-post-preview' | |
| const grid = css` | |
| display: grid; | |
| grid-template-columns: 1fr; | |
| grid-column-gap: 2em; | |
| grid-row-gap: 2em; |