sudo apt install git gnupg gpg -y
Why I put this together? These informations came from different places, but I didnt find them all in one place, so I added them all here. I take no credit for it.
const arrayToFlat = [[1, 2, [3]], 4]; | |
const arrayToFlat2 = [[1, 2, [3, [4]]], 5]; | |
const arrayToFlat3 = [[1, 2, [3, [4, [5, 6, [7]]]]], 8]; | |
const flatArray = arr => { | |
return arr.reduce( | |
(acc, curr) => | |
Array.isArray(curr) ? acc.concat(flatArray(curr)) : acc.concat(curr), | |
[] | |
); |
const ascendingOrderFrequency = arr => { | |
const convertObjToArray = obj => Object.keys(obj).map(key => [key, obj[key]]); | |
const frequencyOrderedObj = arr.reduce((acc, curr) => { | |
acc[curr] ? (acc[curr] += 1) : (acc[curr] = 1); | |
return acc; | |
}, {}); | |
return convertObjToArray(frequencyOrderedObj); | |
}; | |
const numbersMultipleOf = () => { |
1- Create Github account. | |
2- Create your private repo and push your files. | |
3- Login into Netlify with Github and add your repo there. | |
4- Given that you have your netlify.toml in your project already configured. Keep Post Process disabled. | |
5- Add your domain to Netlify, but do not configure the DNS nor Alias. | |
6- Create a Cloudflare account. | |
7- Add your domain there and configure the DNS to theirs where you bought your domain. | |
8- Configure the DNS adding CNAME @ with generated Netlify URL from your project in target and CNAME www with @ in target. Both with orange cloud activated (proxified). | |
9- SSL > Full. | |
10- Speed > Optimization, Activate Brotli and Rocket Loader and Minify all 3 options. |
function App() { | |
return ( | |
<RadioButton | |
name="type" | |
options={OPTIONS} | |
defaultValue={"Initial Value"} | |
isLoading={!!"Initial Value already loaded"} | |
/> | |
) | |
} |
const getCountryFlagEmoji = countryCode => String.fromCodePoint(...[...countryCode.toUpperCase()].map(x => 0x1f1a5+x.charCodeAt(0))) | |
getFlagEmoji('GB') // 🇬🇧 | |
getFlagEmoji('JP') // 🇯🇵 | |
getFlagEmoji('ZA') // 🇿🇦 |
import got from "got"; | |
import tunnel from "tunnel"; | |
const PROXY_LIST = [ | |
{ ip: "", port: 80 }, | |
{ ip: "", port: 80 }, | |
{ ip: "", port: 80 }, | |
{ ip: "", port: 80 }, | |
]; |
const puppeteer = require("puppeteer"); | |
const Xvfb = require("xvfb"); | |
async function getDataFromProtectedUrl({ url, operationName, query, variables }) { | |
const xvfb = new Xvfb({ | |
silent: true, | |
xvfb_args: ["-screen", "0", "1280x720x24", "-ac"], | |
}); | |
xvfb.start((err) => { | |
if (err) console.error(err); |
In the screen with the Install button, do not press it.
Shift+F10
to open cmdREG ADD "HKLM\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f
REG ADD "HKLM\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f
REG ADD "HKLM\SYSTEM\Setup\LabConfig" /v BypassRAMCheck /t REG_DWORD /d 1 /f
REG ADD "HKLM\SYSTEM\Setup\LabConfig" /v BypassStorageCheck /t REG_DWORD /d 1 /f
REG ADD "HKLM\SYSTEM\Setup\LabConfig" /v BypassCPUCheck /t REG_DWORD /d 1 /f
delete
, e.g., delete firewall all-ping
.