Skip to content

Instantly share code, notes, and snippets.

View bulletinmybeard's full-sized avatar
🤘

Robin Schulz bulletinmybeard

🤘
View GitHub Profile
@bulletinmybeard
bulletinmybeard / visual-studio-code-user-settings-json.md
Last active April 10, 2023 10:05
Visual Studio Code User Settings JSON

Place your settings in this file to overwrite the default settings

# settings.json
{
    "editor.wordSeparators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
}
@bulletinmybeard
bulletinmybeard / sublime-text-3-user-settings.md
Last active April 10, 2023 10:05
Sublime Text 3 User Settings JSON
# user-settings.json
{
	"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
}
@bulletinmybeard
bulletinmybeard / disable-the-git-integration-in-visual-studio-code.md
Last active August 28, 2024 07:03
Disable The Git Integration In Visual Studio Code (2016)
# settings.json
# Place your settings in this file to overwrite the default settings
{
    ...
    "git.enabled": false,
    "git.path": null,
    "git.autofetch": false
}
@bulletinmybeard
bulletinmybeard / automatic-content-updates-in-a-running-ios-simulator-instance.md
Last active January 8, 2023 05:19
Automatic Content Updates In A Running IOS Simulator Instance

Automatic Content Updates In A Running IOS Simulator Instance

Ionic Test Project

If you are too lazy to install Ionic for a test, you can find here a simple Ionic project which points to the sim-watch-sync task as submodule: sim-watch-sync-ionic-test

Quick Start

1.) Place the sim-watch-sync project in the root folder of your Ionic project

@bulletinmybeard
bulletinmybeard / list-first-level-package-details.js.md
Last active July 26, 2022 21:21
Extract the name, version, homepage, and description of first level Node packages
const { join } = require('path');
const { existsSync } = require('fs');

(async () => {

    const packageJSONPath = join(__dirname, 'package.json');
    const nodeModulesFolder = join(__dirname, 'node_modules');

    if (!existsSync(packageJSONPath)) {
@bulletinmybeard
bulletinmybeard / content-scraping-with-browser-devtools.js.md
Last active July 26, 2022 21:21
Scrab website content from Postmark its API documentation with browser devtools.
// https://postmarkapp.com/developer/api/overview
[].reduce.call(document.querySelectorAll("li[id^='error-code-'] strong:first-child"), (accumulator, item) => {

    let liText = item.outerText;
    let code = '';
    let description = '';

    if (liText.indexOf('-') > -1) {
 [code, description] = liText.split('-');
@bulletinmybeard
bulletinmybeard / quick-guide-publish-npm-packages.md
Last active April 10, 2023 10:04
Quick guide to publish and unpublish NPM packages

Quick guide to publish and unpublish NPM packages

To publish packages, you need to have an NPM user account with an organization set up. If you don't have an NPM account, create one here https://www.npmjs.com/signup, and don't forget about the organization! Mind you, once the organization is set up, you have to contact customer support to make them apply changes to the organization!

  • Open a terminal, type npm login and press enter
  • Provide your account username, password, and email via prompt and hope they see something like Logged in as <your_username> on https://registry.npmjs.org/.

I assume you managed to log into your NPM account via terminal!

  • Install npmrc globally with npm install -g npmrc (npmrc creates configuration files for NPM which define the settings on how NPM should behave when running commands
@bulletinmybeard
bulletinmybeard / list-of-user-agents.md
Last active April 9, 2025 01:08
list of user-agents
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
Mozilla/5.0 (iPad; CPU OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240
@bulletinmybeard
bulletinmybeard / patching-macos-apps-with-working-and-valid-app-signature.md
Last active March 6, 2024 09:41
Patching macOS apps with working and valid app signature

If you can't open apps and get a message like “Sample.app” is damaged and can’t be opened. You should move it to the Bin., do the following:

xattr -p com.apple.rootless "/Applications/Safari.app" > quarantine.attr
xattr -w com.apple.quarantine "`cat quarantine.attr`" "/Applications/Sample.app"

Does not seem to work anymore from macOS Ventura.

@bulletinmybeard
bulletinmybeard / enforce-macos-icloud-sync.md
Last active January 8, 2023 05:24
Enforce macOS iCloud sync
killall bird