Skip to content

Instantly share code, notes, and snippets.

@Issykul
Issykul / Office 2019 ISO Links at Microsoft.md
Last active December 26, 2024 04:58
Office 2019 ISO Download Links at Microsoft
@Alkarex
Alkarex / stop-visibility-tracking.user.js
Last active December 26, 2024 04:57
Greasemonkey user script to stop Web page visibility tracking (e.g. forcing a video to stop if its tab is not in focus)
// ==UserScript==
// @name Stop visibility tracking
// @namespace https://alexandre.alapetite.fr/
// @description Stop Web page visibility tracking (e.g. forcing a video to stop if its tab is not in focus)
// @version 1.0
// @grant none
// @match https://example.net/*
// ==/UserScript==
//NB: You should manually add the Web sites you want to target in your user-specific inclusion list.
const pw = require('playwright');
const UserAgent = require('user-agents');
const uuid = require('uuid');
const tmp = require('tmp-promise');
const UINT32_MAX = (2 ** 32) - 1;
const WEBGL_RENDERERS = ['ANGLE (NVIDIA Quadro 2000M Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (NVIDIA Quadro K420 Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (NVIDIA Quadro 2000M Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (NVIDIA Quadro K2000M Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (ATI Radeon HD 3800 Series Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (AMD Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Direct3D9Ex vs_3_0 ps_3_0)', 'ANGLE (Intel(R) HD Graphics Family Direct3D
@dopey
dopey / main.go
Last active December 26, 2024 04:56 — forked from denisbrodbeck/main.go
How to generate secure random strings in golang with crypto/rand.
package main
import (
"crypto/rand"
"encoding/base64"
"fmt"
"io"
"math/big"
)
@creold
creold / ShowInkList.jsx
Last active December 26, 2024 04:55
Adds colored text labels for cyan, magenta, yellow and black inks, and any additional spot color. Adobe Illustrator script
/*
Adds colored text labels for cyan, magenta, yellow and black inks, and any additional spot color used in each artboard
Discussion: https://community.adobe.com/t5/illustrator-discussions/adding-color-names-instead-of-color-bars/td-p/14718668
Author: Sergey Osokin, email: hi@sergosokin.ru
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin
@creold
creold / AddRectangleAroundObject.jsx
Last active December 26, 2024 04:55
Creates rectangles with specified margins around each selected objects. Adobe Illustrator script
/*
Creates rectangles with specified margins around each selected objects
Version for create squares: https://gist.github.com/creold/b6f2dc2c61d0a497a9264ba114df055a
Author: Sergey Osokin, email: hi@sergosokin.ru
Based on code by Joshb Duncan @joshbduncan
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin
@rubyandcoffee
rubyandcoffee / Bootstrap - Rails 7
Last active December 26, 2024 04:55
Bootstrap with Rails 7
Adding Bootstrap to Rails 7
Reference: https://www.linkedin.com/pulse/rails-7-bootstrap-52-importmap-md-habibur-rahman-habib/
INSTRUCTIONS
1. Add the following to Gemfile:
gem "bootstrap"
gem "sassc-rails"
@creold
creold / AlignSelectionToArtboardContents.jsx
Created May 11, 2024 06:13
Aligns the selected objects to the objects on the artboards as key objects. Adobe Illustrator script
/*
Aligns the selected objects to the objects on the artboards as key objects
Author: Sergey Osokin, email: hi@sergosokin.ru
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin
- via DonatePay https://new.donatepay.ru/en/@osokin
@creold
creold / createArtboardsFromTheSelection.jsx
Last active December 26, 2024 04:55
Added option to remove all previous artboards, support clipping groups size
/*
Author: Alexander Ladygin (i@ladygin.pro)
Program version: Adobe Illustrator CC+
Name: createArtboardsFromTheSelection.jsx;
Copyright (c) 2018
www.ladyginpro.ru
Modification by Sergey Osokin (https://github.com/creold)
Added option to remove all previous artboards
@creold
creold / GroupArtboardContents.jsx
Created June 6, 2024 05:20
Group objects on document artboards. Adobe Illustrator script
/*
Group objects on document artboards. Skips locked or hidden objects
Author: Sergey Osokin, email: hi@sergosokin.ru
Check my other scripts: https://github.com/creold
Donate (optional):
If you find this script helpful, you can buy me a coffee
- via Buymeacoffee: https://www.buymeacoffee.com/aiscripts
- via Donatty https://donatty.com/sergosokin
- via DonatePay https://new.donatepay.ru/en/@osokin