Skip to content

Instantly share code, notes, and snippets.

View sheecegardezi's full-sized avatar

Sheece Gardezi sheecegardezi

View GitHub Profile
@sheecegardezi
sheecegardezi / README-Template.md
Created June 25, 2018 02:49 — forked from PurpleBooth/README-Template.md
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

@sheecegardezi
sheecegardezi / bobp-python.md
Created June 29, 2018 01:43 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@sheecegardezi
sheecegardezi / README.md
Created April 9, 2020 13:38
Setup Vue project

npx create-nuxt-app projectName

@sheecegardezi
sheecegardezi / .conkyrc
Last active June 23, 2021 14:44
Conky config for 4 GPU 24 CPU
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
class XGBQuantile(XGBRegressor):
def __init__(self,quant_alpha=0.95,quant_delta = 1.0,quant_thres=1.0,quant_var =1.0,base_score=0.5, booster='gbtree', colsample_bylevel=1,
colsample_bytree=1, gamma=0, learning_rate=0.1, max_delta_step=0,max_depth=3, min_child_weight=1, missing=None, n_estimators=100,
n_jobs=1, nthread=None, objective='reg:linear', random_state=0,reg_alpha=0, reg_lambda=1, scale_pos_weight=1, seed=None,silent=True, subsample=1):
self.quant_alpha = quant_alpha
self.quant_delta = quant_delta
self.quant_thres = quant_thres
self.quant_var = quant_var
super().__init__(base_score=base_score, booster=booster, colsample_bylevel=colsample_bylevel,
@sheecegardezi
sheecegardezi / gist:f9e168ca476b11b48ffd17b7e1a45ba4
Created August 27, 2021 15:12
Run AOE 2 DE on Ubunutu 20.04
# Activating Proton with Steam Play
# https://www.linuxjournal.com/content/introduction-linux-gaming-thanks-protondb
# Select Proton Version 6.3-6
# Install AOE DE from steam
# Download vc_redist.x64.exe from Microsoft
# https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0
cd /home/$USER/.steam/steam/steamapps/compatdata/813780/pfx/drive_c/windows/system32
@sheecegardezi
sheecegardezi / gist:b811f9f8563dfe88bb90ee3de6698adb
Created February 10, 2022 08:08
add icons to context menu in Ubuntu
sudo apt install filemanager-actions # To install
fma-config-tool # To run the configuration tool
# set working dir too, use the dir of right click
Working directory: %d/%b
# install Nautilus Actions package
sudo apt-get install nautilus-actions
nautilus -q
@sheecegardezi
sheecegardezi / Vue 3, Nuxt 3, Pinia, TailwindCSS V3
Last active May 28, 2022 14:01
Vue 3, Nuxt 3, Pinia, TailwindCSS Setup
---------------------------------
Create Nuxt 3 App
npx nuxi init nuxt3app
cd nuxt3app
yarn install
----------------------------------------
Install Pinia Store
@sheecegardezi
sheecegardezi / Microsoft Dangling Credential Manager
Created May 16, 2022 01:38
Delete Microsoft Dangling Credential Manager
Update the Microsoft in Credential Manager and re-build the Autodiscover.xml file
1. Navigate to your Windows Control Panel > Credential Manager > Windows Credentials
2. Select any record(s) associated with your Exchange mailbox.
3. Click Remove just below the entry.
@sheecegardezi
sheecegardezi / install python package in qgis
Created February 4, 2023 09:31
install python package in qgis
# open python terminal in qgis
import pip
pip.main(['install', 'my-package-name'])