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
@rjescobar
rjescobar / extend-trial-jetbrains-windows.bat
Created August 31, 2021 02:53
JetBrains IDE trial reset windows
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
@philipz
philipz / readme.md
Created June 5, 2021 13:11
Deploy to Kubernetes in Google Cloud: Challenge Lab

Task 1: Create a Docker image and store the Dockerfile

source <(gsutil cat gs://cloud-training/gsp318/marking/setup_marking.sh)
gcloud source repos clone valkyrie-app
cd valkyrie-app

cat > Dockerfile <<EOF
FROM golang:1.10
WORKDIR /go/src/app
COPY source .
@gulrich1
gulrich1 / reset_idea_trial.sh
Created March 22, 2021 13:46
reset intellij trial
#!/bin/sh
#https://github.com/PythonicNinja/jetbrains-reset-trial-mac-osx/blob/master/runme.sh
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine Rider; do
echo "Closing $product"
ps aux | grep -i MacOs/$product | cut -d " " -f 5 | xargs kill -9
echo "Resetting trial period for $product"
@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
@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
@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
@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
@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
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;
/**
@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() {