Skip to content

Instantly share code, notes, and snippets.

@7645re
7645re / JetBrainsActivation.md
Last active May 8, 2024 12:23
JetBrains Activation MacOS/Windows

1. Proxifier method

Right now, the easiest way to activate JetBrains products is to use redirection of all requests from the application to localhost, but then nothing will work for you, neither pull/push git nor other plugins that use Internet access.

There is a better way, we will forward requests only to those that will go to the address account.jetbrains.com. This can be done without using the program, but it seems to me the easiest way to do it is through Proxifier. This program is available for both Windows and macOS.

@v1mkss
v1mkss / JetBrains Activation.md
Last active May 8, 2024 12:23
JetBrains Activation

Choose any IDE from Jetbrains, then the activation window opens, go to the “Proxy Settings” and paste the following:

  • Manual proxy configuration http:
    • Hostname: localhost
    • port: 80
  • No proxy for:
*.apache.org, *.github.com, *.github.io, *.githubusercontent.com, *.gitlab.com, *.google.com, *.gradle.org, *.jetbrains.space, *.maven.org, cache-redirector.jetbrains.com, cloudconfig.jetbrains.com, download-cdn.jetbrains.com, download.jetbrains.com, downloads.marketplace.jetbrains.com, ea-report.jetbrains.com, github.com, gitlab.com, google.com, gradle.org, jcenter.bintray.com, plugins.jetbrains.com, resources.jetbrains.com, www.jetbrains.com

Activation Key:

@xfournet
xfournet / pluginHttp2Proxy.ts
Last active May 8, 2024 12:23
Vite support for HTTP2 and proxy
import proxy from 'http2-proxy';
import type { Plugin, ProxyOptions } from 'vite';
export const pluginHttp2Proxy = (): Plugin => {
let routes: Record<string, string | ProxyOptions>;
return {
name: 'vite-plugin-http2-proxy',
config: (config) => {
const { server } = config;
routes = server?.proxy ?? {};
@alexstandiford
alexstandiford / tailwind.config.js
Created August 27, 2021 17:54
WordPress theme.json that extends Tailwind CSS configs
const fs = require( 'fs' )
const themeJson = fs.readFileSync( './theme.json' )
const theme = JSON.parse( themeJson )
const colors = theme.settings.color.palette.reduce( ( acc, item ) => {
const [color, number] = item.slug.split( '-' )
// If there is a number identifier, make this an object
if(undefined !== number) {
SteamVR System Report created Thu Aug 24 23:22:17 2017
<Report>
SteamVR Version: 1499136050
SteamVR Date: 2017-07-04
Steam: Public
Steam Branch:
Steam AppID: 250820
Tracking: lighthouse
OS: Windows 10
@alfchee
alfchee / git-prune.bash
Created May 3, 2021 16:43
Delete all merged branches in remote, excluding branches `dev` and `main`.
git branch --merged | egrep -v "(^\*|main|dev)" | xargs git branch -d
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@conorbranagan
conorbranagan / gist:4513828
Last active May 8, 2024 12:20
Linux System Metrics

Linux System Metrics

CPU

  • system.cpu.idle: % Idle CPU
  • system.cpu.system: % System CPU
  • system.cpu.user: % User CPU

Disk

@hackinf0
hackinf0 / Connecting Multiple Database in NodeJs with MongoDB and Mongoose
Last active May 8, 2024 12:19
Connecting Multiple Database in NodeJs with MongoDB and Mongoose
Explanation file: db.js
This code imports the mongoose library which allows to connect to a MongoDB database.
There are two URIs defined to connect to two different databases: MONGO_URI and MOBILE_URI.
Each URI contains connection information to a remote MongoDB database, including user credentials.
The connectDBs function uses the mongoose.createConnection method to create connections to these two
databases using the respective URIs. The useUnifiedTopology and useNewUrlParser options are set to enable the new
unified topology policy and use MongoDB's new URL parser, respectively.
The function returns an object that contains the connections to these two databases as qrCodeDb and userDB properties.
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active May 8, 2024 12:18
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S