Skip to content

Instantly share code, notes, and snippets.

@mikkopitkanen
mikkopitkanen / regression_estimators.py
Created April 18, 2019 06:35
This script demontrates the importance of proper treatment of data uncertainties when performing linear regression for statistical inference (how strongly y depends on x).
"""Demonstrate how to calculate various linear regression estimates.
Copyright (C) 2019 Mikko Pitkanen
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@i-namekawa
i-namekawa / copy2clipboard.py
Created May 19, 2015 22:32
copy a matplotlib figure to clipboard as BMP
from cStringIO import StringIO
from time import sleep
from PIL import Image
import win32clipboard
def copy2clipboard(fig=None):
'''
copy a matplotlib figure to clipboard as BMP on windows
@AndnixSH
AndnixSH / xorg.conf
Last active April 16, 2024 11:41
This config allows you to start desktop environment and enable GPU acceleration without monitor connected. Official Nvidia driver is required if you use Nvidia card. NO DUMMY DISPLAY PLUGS REQUIRED
# By default, desktop environment won't start unless you connect your monitor
# This config allows you to start desktop environment and enable GPU acceleration without monitor connected. Official Nvidia driver is required if you use Nvidia card.
# NO DUMMY DISPLAY PLUGS REQUIRED
# Save the file to /etc/X11/xorg.conf
# Disable "Allow Flipping" in Nvidia settings to fix desktop flickering
# Tested on Linux Mint 21 with AnyDesk remote desktop
# GPU: NVIDIA GeForce GT 710
# nvidia-xconfig: X configuration file generated by nvidia-xconfig

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@joerodgers
joerodgers / Grant-UserPermission.ps1
Last active April 16, 2024 11:37
Example of using the SP.Web.ShareObject REST endpoint to share a file or folder with a user email address.
#requries -modules "PnP.PowerShell"
function Get-PeoplePickerValueForEmail
{
[CmdletBinding()]
param
(
[Parameter(Mandatory=$true)]
[string]
$Email
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
@ayebrian
ayebrian / vmware.md
Last active April 16, 2024 11:36
VMware ESXi 8 / vCenter 8 / Workstation 17 8 license key 2024

Free VMware license keys, they should work. It works for all cores on your host system(ESXi).

vCenter Server 8 Standard

Key Tested
4F282-0MLD2-M8869-T89G0-CF240
0F41K-0MJ4H-M88U1-0C3N0-0A214

ESXi 8

Key Tested
@koshatul
koshatul / README.md
Last active April 16, 2024 11:36
use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 16, 2024 11:36
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example