Skip to content

Instantly share code, notes, and snippets.

View saylestyler's full-sized avatar
🥰
= )

Tyler Sayles saylestyler

🥰
= )
View GitHub Profile
@pmarquees
pmarquees / editPage.js
Last active May 4, 2024 20:30
Edit page (bookmarklet)
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
@lhorie
lhorie / longest-keyword-sequence.md
Last active November 14, 2022 23:21
What's the longest keyword sequence in Javascript?
{
"working": {
"https://www.sitespeed.io": [
{
"metric": "firstPaint",
"type": "timings",
"value": 351,
"friendlyValue": "351 ms",
"limit": 1000,
"friendlyLimit": "1.000 s",
@Toosmo
Toosmo / user.js
Last active November 4, 2020 11:26
Firefox user.js
user_pref("browser.aboutConfig.showWarning", false);
user_pref("services.sync.prefs.sync.browser.aboutConfig.showWarning", true);
user_pref("media.peerconnection.enabled", false);
user_pref("services.sync.prefs.sync.media.peerconnection.enabled", true);
user_pref("media.peerconnection.turn.disable", true);
user_pref("services.sync.prefs.sync.media.peerconnection.turn.disable", true);
user_pref("media.peerconnection.use_document_iceservers", false);
@mkhamat
mkhamat / firefox-userjs-generator.js
Last active October 21, 2020 19:34
Firefox User.js Generator
/**
* This is script for https://gist.github.com/0XDE57/fbd302cef7693e62c769
* remove descriptions and leave only config lines!
* put it in txt file and pass path to it through arg
* example: node index.js ./config.txt
*
* user.js will appear in the same directory
*
*/
import Foundation
import PlaygroundSupport
/// A thread-safe array.
public class SynchronizedArray<Element> {
private let queue = DispatchQueue(label: "io.zamzam.ZamzamKit.SynchronizedArray", attributes: .concurrent)
private var array = [Element]()
public init() { }
"stick this shit in a markdown ftplugin
"
"Usage:
"
"Open a markdown file.
"Use the :MdLive command.
"Save the file and it will update
command MdLive call s:InitMarkdownHacks()
autocmd bufwritepost <buffer> call s:CheckToBuildMd()

Comparison of configuration file languages

We need to PEPify a static format for writing down bootstrap information in Python source trees. The initial target is a list of PEP 508 package requirement strings. It's possible that in the future we might want to add more features like a build system backend specification (as in PEPs 516, 517), or an extension namespace feature to allow third-party developer tools (flit, pytest, coverage, flake8, etc.) to consolidate their configuration in this file in a systematic

@kawaz
kawaz / install_neovim_to_amazonlinux.sh
Last active April 6, 2024 13:57
install neovim to amazonlinux
#!/usr/bin/env bash
sudo yum groups install -y Development\ tools
sudo yum install -y cmake
sudo yum install -y python34-{devel,pip}
sudo pip-3.4 install neovim --upgrade
(
cd "$(mktemp -d)"
git clone https://github.com/neovim/neovim.git
cd neovim
make CMAKE_BUILD_TYPE=Release