Skip to content

Instantly share code, notes, and snippets.

Avatar
🌟
Focusing

Bernhard Millauer SeriousM

🌟
Focusing
View GitHub Profile
View gist:a90d889dc4bf1bf67330700d4f1e0a81

Reset evaluation period of IntelliJ IDEA(Linux)

rm -rf ~/.config/JetBrains/IntelliJIdea*/eval
rm -rf ~/.config/JetBrains/PyCharm*/options/other.xml (if exists)
sed -i -E 's/<property name=\"evl.*\".*\/>//' ~/.config/JetBrains/IntelliJIdea*/options/other.xml
rm -rf ~/.java/.userPrefs/jetbrains/idea

Reset evaluation period PyCharm

@SeriousM
SeriousM / JetbrainsEvaluationReset_2020.py
Created Oct 27, 2020
[Activate] A Python Script To Reset The Evaluation License Of These Jetbrains Products Released In 2020 Or Later (IntelliJIdea, CLion, Rider, PyCharm, RubyMine, GoLand )
View JetbrainsEvaluationReset_2020.py
# Reset Jetbrains 2020 Products
import glob
import os
import winreg
from os import path
from os.path import expanduser
home = expanduser("~")
newJetbrainsHome = path.join(home, "AppData\Roaming\JetBrains")
@SeriousM
SeriousM / gist:34c3701db56292d3353af42e89f0d969
Created Oct 13, 2020
VS2019 Xamarin iOS Development - Storage of Provisioning Certificates
View gist:34c3701db56292d3353af42e89f0d969
C:\Users\<user>\AppData\Local\Xamarin\iOS\Provisioning\Certificates
View GetEveToWork.md

1. Install Game via Steam

  • Set Up Proton Support
  • Install Eve Online

2. Install winetricks

sudo apt install winetricks

3. Get to your game folder

This looks something like this:

View Creating Neat .NET Core Command Line Apps.md

Creating Neat .NET Core Command Line Apps

Every reason to get more HackerPoints™ is a good one, so today we're going to write a neat command line app in .NET Core! The Common library has a really cool package Microsoft.Extensions.CommandlineUtils to help us parse command line arguments and structure our app, but sadly it's undocumented.

No more! In this guide, we'll explore the package and write a really neat console app. We'll get good practices, a help system and argument parsing for free. Oh, it also involves ninjas. Insta-win.

@SeriousM
SeriousM / download_workouts.sh
Created Jan 8, 2018 — forked from scompt/download_workouts.sh
A script to download workouts and exercise alternatives. Prerequisites are GNU Parallel, cURL, and jq.
View download_workouts.sh
#!/bin/bash
USERNAME=d@t.com
PASSWORD=r
LANGUAGES="en fr it ja tr es pt de"
PATHS="v3/coach/workouts v2/coach/workouts v2/coach/exercise_alternatives"
echo "Logging in"
export ID_TOKEN=`curl --silent -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{
@SeriousM
SeriousM / Howto convert a PFX to a seperate .key & .crt file How to convert a .pfx SSL certificate to .crt/key (pem) formats. Useful for NGINX
View Howto convert a PFX to a seperate .key & .crt file
source: http://www.markbrilman.nl/2011/08/howto-convert-a-pfx-to-a-seperate-key-crt-file/
`openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]`
What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file.
Now let’s extract the certificate:
`openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]`
@SeriousM
SeriousM / openssl.MD
Created Oct 31, 2017 — forked from jchandra74/openssl.MD
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window
View openssl.MD

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

@SeriousM
SeriousM / gist:eb7b35bc44c02f1cc1f7e4c80a42eb87
Created Jan 15, 2017 — forked from LukasBombach/gist:2943fc2a1cb5fd4bbd1c3e6b477ce033
Installing Plex Media Server on Debian on a Pine64
View gist:eb7b35bc44c02f1cc1f7e4c80a42eb87
sudo apt-get install apt-transport-https
sudo dpkg --add-architecture armhf
echo "deb [arch=armhf] https://dev2day.de/pms/ jessie main" | sudo tee /etc/apt/sources.list.d/pms.list
sudo apt-get update
sudo apt-get install binutils:armhf plexmediaserver-installer -y --force-yes
You can’t perform that action at this time.