PowerShell Cheatsheet
This document is getting updated time-to-time. Become a watcher to get updates.
| function Invoke-MetadataSync { | |
| param ( | |
| [Parameter(Mandatory)] | |
| [string]$folder | |
| ) | |
| # Extensiones v谩lidas (en min煤sculas) | |
| $extensions = @(".jpg", ".jpeg", ".png", ".gif", ".heic", ".mp4", ".mov", ".webp") | |
| $notMatched = @() |
| // ==UserScript== | |
| // @name Overleaf Toggle WordWrap | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2024-03-07 | |
| // @description try to take over the world! | |
| // @author nonodev96 | |
| // @match https://www.overleaf.com/project/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=overleaf.com | |
| // @grant none | |
| // ==/UserScript== |
| import npyjs from 'npyjs' | |
| import JSZip from 'jszip' | |
| import JSZipUtils from 'jszip-utils' | |
| const handleClick_debug_npz = async () => { | |
| const file = process.env.REACT_APP_PATH + '/datasets/03-image-classification/kmnist/kmnist-train-imgs.npz' | |
| await JSZipUtils.getBinaryContent(file, async (err, data) => { | |
| if (err) { | |
| throw err // or handle the error |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| <style> | |
| progress { |
| import { | |
| AfterContentChecked, | |
| AfterContentInit, | |
| AfterViewChecked, | |
| AfterViewInit, | |
| Component, | |
| DoCheck, | |
| OnChanges, | |
| OnDestroy, | |
| OnInit |
| export function float32ToBin(float32: number): string { | |
| let str = ""; | |
| const c = new Uint8Array(new Float32Array([float32]).buffer, 0, 4); | |
| for (const element of Array.from(c).reverse()) { | |
| str += element.toString(2).padStart(8, '0'); | |
| } | |
| return str; | |
| } | |
| export function float64ToBin(float64: number): string { |
sudo mkdir -p /var/www/ifridge.dev/public
sudo chown -R $USER:$USER /var/www/ifridge.dev/public
sudo chmod -R 755 /var/www
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/ifridge.dev.conf
# Copy and edit ifridge.dev.conf
sudo nano /etc/apache2/sites-available/ifridge.dev.conf