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
find . -name "node_modules" -exec rm -rf '{}' + |
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
curl -s 'https://api.macapps.link/en/chrome-firefox-torbrowser-github-sequelpro-sublime-vscode-unarchiver-filezilla-tunnelblick-etcher-appcleaner-spotify-openemu-slack-whatsapp-drive-btsync-megasync-etcher' | sh | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
curl -o- -L https://yarnpkg.com/install.sh | bash | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm install 10.15.1 | |
mkdir Projects |
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
sudo apt update | |
sudo apt install curl -y | |
/bin/bash -c "$(curl -sL https://git.io/vokNn)" | |
sudo apt-fast upgrade -y | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm install 20 | |
curl -o- -L https://yarnpkg.com/install.sh | bash |
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
document.querySelectorAll('[data-hovercard-type="pull_request"]').forEach(e => { | |
const win = window.open(e.href); | |
win.onload = () => { | |
const appveyorWin = window.open( | |
win.document.querySelector('[href*="https://ci.appveyor.com/"]').href | |
); | |
win.close(); | |
}; | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Untitled benchmark</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
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 React from "react"; | |
export const Debug = props => ( | |
<pre> | |
{JSON.stringify( | |
props.value, | |
null, | |
2 | |
)} | |
</pre> | |
); |
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
curl -s 'https://macapps.link/en/firefox-chrome-github-sourcetree-sequelpro-robomongo-sublime-androidstudio-espresso-poedit-intellij-docker-zeplin-postman-vscode-transmission-unarchiver-tunnelblick-etcher-coconutbattery-mactracker-spotify-openemu-steam-slack-whatsapp-discord' | sh | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install yarn --without-node | |
brew cask install dnscrypt |
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
(async () => { | |
const numbers = Array.from({ length: 329 }, (v, k) => k + 1); | |
var messageList = document.getElementById("messageList"); | |
while (messageList.firstChild) { | |
messageList.removeChild(messageList.firstChild); | |
} | |
for (const number of numbers) { | |
const res = await fetch( | |
window.location.href.replace("page-329", `page-${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
const blacklisted = ['babel', 'eslint', 'webpack']; | |
const packageJson = require(paths.appPackageJson); | |
const dependencies = Object.keys(packageJson.dependencies); | |
const devDependencies = Object.keys(packageJson.devDependencies); | |
dependencies.concat(devDependencies).forEach(dependency => { | |
blacklisted.forEach(blacklist => { | |
if (dependency.startsWith(blacklist)) { | |
console.log(); | |
console.log('installing', dependency, 'is not supported'); | |
console.log('remove', dependency, 'by running `npm remove', dependency +'`') |
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
process.env.NODE_ENV = 'production'; | |
const config = require('react-scripts/config/webpack.config.prod'); | |
config.module.rules[1].oneOf[1].options.plugins = [ | |
'babel-plugin-styled-components', | |
]; | |
config.resolve.alias['react'] = 'preact-compat'; | |
config.resolve.alias['react-dom'] = 'preact-compat'; | |
// Not necessary unless you consume a module using `createClass` | |
config.resolve.alias['create-react-class'] = | |
'preact-compat/lib/create-react-class'; |
NewerOlder