Skip to content

Instantly share code, notes, and snippets.

@alezzigo
alezzigo / youtube.js
Created February 27, 2019 05:42 — forked from max-te/youtube.js
Download Youtube-Video in node.js
var http = require('http')
var fs = require('fs')
var argv = require('optimist').argv
var rxVideoID = /v=([\]\[!"#$%'()*+,.\/:;<=>?@\^_`{|}~-\w]*)/
var link = argv._.toString()
var videoID = link.match(rxVideoID)[1]
http.get("http://www.youtube.com/get_video_info?video_id="+videoID, function(res) {
var chunks = []
<style>
.goog-te-banner-frame.skiptranslate {
display: none !important;
}
body {
top: 0px !important;
}
.select{color:white;background:#0a3f6e;position:fixed;
bottom:0;right:10%;padding-left:0px!important;
@alezzigo
alezzigo / jd-export.jsx
Created September 22, 2020 09:23 — forked from jmsdnns/jd-export.jsx
Illustrator script—Exports CMYK, RGB, and Hex values for all the color swatches in a document. CMYK to RGB conversion using Adobe’s default US Web Coated SWOP2 to sRGB.
/**
* jd-export.jsx
* -------------
* Illustrator script—Exports CMYK, RGB, and Hex values for all the color
* swatches in a document. CMYK to RGB conversion using Adobe’s default US
* Web Coated SWOP2 to sRGB.
*
*
* LICENSE
* -------

I’m looking for any tips or tricks for making chrome headless mode less detectable. Here is what I’ve done so far:

Set my args as follows:

const run = (async () => {

    const args = [
        '--no-sandbox',
        '--disable-setuid-sandbox',
        '--disable-infobars',
@alezzigo
alezzigo / macOS-Catalina-Wifi-Fix.md
Created May 12, 2021 12:03 — forked from raisedadead/macOS-Catalina-Wifi-Fix.md
Wifi interface completely gone after catalina update on 2015 MBP

https://discussions.apple.com/thread/250720965?answerId=251575762022#251575762022

  1. Download the modified files (thanks Alex!) and unzip > you get a folder named WiFi_kexts
  2. Boot into Recovery Mode: restart your computer while pressing and holding cmd-R
  3. Open > Utilities > Terminal via Menu Bar (detailed instructions here)
  4. Type csrutil disable and hit return
  5. Type reboot and hit return > computer reboots normally
  6. Open > Utilities > Terminal and enter cd and hit the space bar (don't hit return)
  7. Drag the folder WiFi_kexts onto the Terminal window and hit return
  8. In Terminal, enter sudo mount -uw / and hit return, then enter your user password and hit return
@alezzigo
alezzigo / AdbCommands
Created July 19, 2021 13:34 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@alezzigo
alezzigo / forminator-add-autocomplete-attr.php
Created December 1, 2021 04:01 — forked from wpmudev-sls/forminator-add-autocomplete-attr.php
[Forminator Pro] - Add "autcomplete" attribute to input fields
<?php
/**
* Plugin Name: [Forminator Pro] - Add "autcomplete" attribute to input fields
* Plugin URI: https://premium.wpmudev.org/
* Description: Add "autcomplete" attribute support to selected form and input fields (as of 1.12.1.1)
* Author: Alessandro Kaounas @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* Task: 0/1135022585412927/1176249490871345
* License: GPLv2 or later
*/