Skip to content

Instantly share code, notes, and snippets.

View blackstile's full-sized avatar
🏠
Working from home

William Miranda blackstile

🏠
Working from home
  • Sinqia - SulAmérica Saude
  • Brasil
View GitHub Profile
@P7h
P7h / IntelliJ_IDEA__Perf_Tuning.txt
Last active October 21, 2024 01:10
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 22, 2025 12:03
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@nrollr
nrollr / MongoDB_macOS_Sierra.md
Last active February 13, 2025 10:55
Install MongoDB on Sierra using Homebrew

Install MongoDB on macOS Sierra

This procedure explains how to install MongoDB using Homebrew on macOS Sierra 10.12.
Official MongoDB install documentation: here

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@kasimok
kasimok / IspController.java
Created January 13, 2017 07:51
Spring resttemplate with timeout and accept all certificate(ignore ssl error)
@Autowired
RestTemplate restTemplate;
@Bean
public RestTemplate restTemplate() {
return new RestTemplate(clientHttpRequestFactory());
}
private ClientHttpRequestFactory clientHttpRequestFactory() {
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.type.TypeFactory;
import java.io.IOException;
import java.util.List;
/**
@woutrbe
woutrbe / gist:3dad6d4c39c78d2956e9ae0a7a309112
Last active December 15, 2023 12:27
Deploy to Google Cloud Bucket from Gitlab CI/CD
build app:
image: node:6
stage: build
artifacts:
paths:
- public
script:
- npm install
- npm run build
# Your next stage won't have access to these files again, so copy it to a public directory
@shurajcodx
shurajcodx / jetbrains_trial_reset.sh
Last active September 25, 2024 14:57
reset jetbrains Intellij IDE , WebStorm, PHPStorm - Work 2019.x.x and above vesion evaluation [Linux]
success=false
if [ "$(date +'%d')" = "12" ]; then
# Intellij
ijKeyPath=$HOME/.IntelliJIdea*/config/eval/*.key
ijConfigPath=$HOME/.IntelliJIdea*/config/options/other.xml
if test -f "$ijKeyPath"; then
echo "Resetting Intellij"
rm $ijKeyPath
rm $ijConfigPath
@xiaklizrum
xiaklizrum / reset.sh
Last active March 13, 2025 17:59
Reset jetbrains intellij idea 2020 30-day evaluation period
# linux
rm -rf ~/.config/JetBrains/IntelliJIdea*/eval/*.evaluation.key ~/.config/JetBrains/IntelliJIdea*/options/other.xml ~/.java/.userPrefs/jetbrains/idea
# mac os
rm ~/Library/Application\ Support/JetBrains/IntelliJIdea*/eval/*.evaluation.key ~/Library/Application\ Support/JetBrains/IntelliJIdea*/options/other.xml ~/Library/Preferences/jetbrains.idea.* ~/Library/Preferences/com.apple.java.util.prefs.plist
@AlexRogalskiy
AlexRogalskiy / snippets.txt
Last active April 22, 2025 03:52
IntelliJ Idea trial prolongation
================================================================================
find ~/.IntelliJIdea* -type d -exec touch -t $(date +"%Y%m%d%H%M") {} ;
#!/bin/bash
echo "removeing evaluation key"
rm -rf ~/.IntelliJIdea*/config/eval
rm -rf ~/.GoLand*/config/eval
rm -rf ~/.WebStorm*/config/eval
@shurajcodx
shurajcodx / jetbrain_2020_trial_reset.sh
Created February 9, 2021 05:30
Reset Jetbrains Intellij IDE , WebStorm, PHPStorm - Work 2020.x.x and above version evaluation [Linux]
#!/bin/bash
# Intellij 2020.*
echo "Removing evaluation key for Intellij"
rm $HOME/.config/JetBrains/IntelliJIdea*/eval/*.key
rm $HOME/.config/JetBrains/IntelliJIdea*/options/other.xml
# PHPStorm 2020.*
echo "Removing evaluation key for PHPStorm"
rm $HOME/.config/JetBrains/PhpStorm*/eval/*.key