What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-29 19:59:02
apache basic auth setup
#install apache utilis sudo apt-get install apache2 apache2-utils #add apache user sudo htpasswd -c /etc/apache2/.htpasswd some_username_here #Setup Directory permissions in Apache Config <Directory "/var/www/html"> AuthType Basic AuthN... Add solution -
Javascript 2021-08-29 15:41:02
react strict mode
<React.StrictMode> <div> <ComponentOne /> <ComponentTwo /> </div> </React.StrictMode> // React's StrictMode is sort of a helper component that will help you write better react components, you can wrap a set... Add solution -
Javascript 2021-08-29 14:29:02
jest serializes to the same string
describe("toDate", () => { it("should accept times", () => { const dateTime = new Date(); dateTime.setHours(0); dateTime.setMinutes(30); dateTime.setSeconds(0, 0); // error: serializes to same string ... Add solution -
Shell/Bash 2021-08-29 09:27:02
setup puppeteer centos7
curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash - yum install nodejs 1 2 3 4 5 6 7 curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash - yum install nodejs Step 2 :- Install Puppeteer In CentOS 7 npm i pupeteer 1 npm... Add solution -
TypeScript 2021-08-29 02:12:01
install material ui typescript
// Installation npm install @material-ui/core // or yarn add @material-ui/core // In order for types to work, you have to at least have the following options enabled in your tsconfig.json: { "compilerOptions": { "lib": ["es... Add solution -
Shell/Bash 2021-08-28 20:56:02
bash how to remove all whitespace from a file
# Example usage: awk '{gsub(" ","",$0); print $0;}' input_file # This replaces every space " " with nothing "", thereby eliminating all # whitespace from the file # Basic syntax: awk '{gsub(regex, substitution_text... Add solution