Skip to content

Instantly share code, notes, and snippets.

@oorkan
oorkan / mautic--deactivate-all-campaigns.js
Created January 28, 2024 17:10
Mautic - Deactivate all campaigns
const nodes = [];
document.querySelectorAll(".toggle-publish-status").forEach(e => { e.classList.contains("fa-toggle-on") ? nodes.push(e) : ""});
function* getNode(nodes) {
for (let index = 0; index < nodes.length; index++) {
yield nodes[index];
}
}
const gengetNode = getNode(nodes);
@oorkan
oorkan / grep_occurences_count.txt
Created September 5, 2021 20:54
Count all occurences of the string in the file
grep -o 'needle' file | wc -l
@oorkan
oorkan / docker-system-prune.txt
Created September 2, 2021 20:21
Docker: remove all images and containers
docker system prune -a
@oorkan
oorkan / win10colors.cmd
Created August 24, 2021 23:09 — forked from mlocati/win10colors.cmd
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m
@oorkan
oorkan / gist:cba6beb238ff947647ffa93c504b1892
Created August 6, 2021 23:43 — forked from icoxfog417/gist:ebaaac8779dc235d176e
Git ignore file mode (chmod) changes
git config core.fileMode false
@oorkan
oorkan / dateFormat.js
Created July 6, 2021 13:23 — forked from micah1701/dateFormat.js
Replicate PHP's native date() formatting in JavaScript for many common format types
/**
* Return a formated string from a date Object mimicking PHP's date() functionality
*
* format string "Y-m-d H:i:s" or similar PHP-style date format string
* date mixed Date Object, Datestring, or milliseconds
*
*/
function dateFormat(format,date){
if(!date || date === "")
@oorkan
oorkan / woeusb-debian.sh
Created May 7, 2021 17:12
How to install WoeUSB on Debian
# requires sudo
apt update
apt install git p7zip-full python3-pip python3-wxgtk4.0
pip3 install WoeUSB-ng
@oorkan
oorkan / jss.py
Last active April 29, 2021 19:22
Download 'JavaScript's from the website
# HOW TO USE
# Be sure you have python3 (>=3.8) installed in your system
# Be sure you have pip3 installed in your system
# Run "pip3 install wget" (use virtual environment if needed)
# Assign your domain name to the domain variable, for example: domain = "mydomain.com"
# Assign the set of urls to the jss variable, for example:
# jss = """
# files/some_file.js
# https://some-external-resource.com/files/some_file.js
# ...

Disable

  1. Start -> Edit Group Policy
  2. Computer Configuration -> Administrative Templates -> Windows Components -> Search
  3. Find "Allow Cortana"
  4. Edit -> Disable
  5. Restart

 

Uninstall

NodeSource Node.js Binary Distributions

NodeSource

CircleCI

This repository contains documentation for using the NodeSource Node.js Binary Distributions via .rpm, .deb and Snap packages as well as their setup and support scripts.

If you are looking for NodeSource's low-impact Node.js performance monitoring platform, please get started here.