🆕 💻 Mac Setup List:
- all
dotfiles
- install
brew
,node
zsh
,python
- sudo-touchid
- iTerm config
- Fonts with ligatures
- Raycast
- Wallpapers
Use Stacks
on Desktop- git's ssh & gpg setup
🆕 💻 Mac Setup List:
dotfiles
brew
, node
zsh
, python
Use Stacks
on Desktop<?php | |
// half-hearted CSS minification | |
$css = preg_replace( | |
array('/\s*(\w)\s*{\s*/','/\s*(\S*:)(\s*)([^;]*)(\s|\n)*;(\n|\s)*/','/\n/','/\s*}\s*/'), | |
array('$1{ ','$1$3;',"",'} '), | |
file_get_contents('linked.css') | |
); | |
// embed as a data: uri | |
$base64css = rtrim(strtr(base64_encode($css), '+/', '-_'), '='); |
// add a cronjob for this | |
import fetch from 'node-fetch'; // for lower node versions | |
const getOrder = () => { | |
const users = ["Jim", "Pam" "Dwight"]; // names of users | |
let shuffled = users | |
.map(value => ({ value, sort: Math.random() })) | |
.sort((a, b) => a.sort - b.sort) | |
.map(({ value }) => `-> ${value}`); |
const sleep = (milliseconds) => { | |
return new Promise((resolve) => setTimeout(resolve, milliseconds)); | |
}; | |
const YOUR_ENTRY_NAME = "Aashutosh"; | |
// Go to NAL Page | |
if (window.location.hash !== "#/security/network/accessList") { | |
window.location.hash = "#/security/network/accessList"; | |
await sleep(1000); | |
} |
def unicodetoascii(text): | |
TEXT = (text. | |
replace('\\xe2\\x80\\x99', "'"). | |
replace('\\xc3\\xa9', 'e'). | |
replace('\\xe2\\x80\\x90', '-'). | |
replace('\\xe2\\x80\\x91', '-'). | |
replace('\\xe2\\x80\\x92', '-'). | |
replace('\\xe2\\x80\\x93', '-'). | |
replace('\\xe2\\x80\\x94', '-'). |
android { | |
... | |
} | |
// Add the below code in android/app/build.gradle after above android block | |
// Provide same version code to all! | |
import com.android.build.OutputFile | |
android.applicationVariants.all { variant -> |
keyboard = "qwertyuiop[]asdfghjkl;zxcvbnm,./" | |
puzzle_by_kushwaha = "o vsmmpy dsu rbrm dpttu yp upi yjod yi,r niy nr;orbr ,r o s, | |
fuomh gtp, omdofr/// s;; o esmy od yp hp nsvl smf trdyptr rbrtuyjomh niy o s, | |
divj s dommrt yjsy o lmpe o eo;; vp,,oy yjr ds,r ,odyslr shon...." | |
solution = "" | |
for letter in puzzle_by_kushwaha: | |
if letter is not " ": | |
index = keyboard.index(letter) |
// [UPDATE] New link https://masteranime.es/masterani.me protects with two layers. | |
// 1. Go to the video page and then paste the following script on console | |
document.querySelector('iframe').src | |
// click on the output link | |
// 2. The new window will open, open dev tools here and paste this in devtools | |
document.querySelector("video").src | |
// 3. Now go to link and press Ctrl + S |
x = document.querySelectorAll('div.f4.lh-condensed.text-bold.text-gray-dark'); | |
for(let i=0; i<x.length; i++) { | |
const [a, b] = x[i].children[0].innerText.split('/'); | |
if(a === b) | |
x[i].parentElement.parentElement.remove(); | |
} |