Skip to content

Instantly share code, notes, and snippets.

View sachith-1's full-sized avatar
🎯
Focusing

Sachith sachith-1

🎯
Focusing
View GitHub Profile
@JaDogg
JaDogg / new_to_score.md
Last active January 26, 2024 05:08
New to SCoRe Lab 🥳
@harshityadav95
harshityadav95 / script.py
Last active January 15, 2024 09:34
Archived : Initialise CUDA environment on Google Colab
!apt-get --purge remove cuda nvidia* libnvidia-*
!dpkg -l | grep cuda- | awk '{print $2}' | xargs -n1 dpkg --purge
!apt-get remove cuda-*
!apt autoremove
!apt-get update
!wget https://developer.nvidia.com/compute/cuda/9.2/Prod/local_installers/cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64 -O cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64.deb
!dpkg -i cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64.deb
!apt-key add /var/cuda-repo-9-2-local/7fa2af80.pub
!apt-get update
@ahmedengu
ahmedengu / colab_xface_vnc.ipynb
Last active October 24, 2024 05:25
Use google colab as a remote machine with the help of ngrok, vnc server and xface desktop you can change the configurations and desktop environment as you please it's just a start
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@azhe403
azhe403 / kmskeys10.txt
Created November 25, 2017 16:49 — forked from CHEF-KOCH/kmskeys10.txt
Windows 10 KMS Keys
Windows.10.and.Office.2016.gVLK
#####################################################################
# Install/Uninstall keys #
#####################################################################
1.) Uninstall the current product by entering the “uninstall product key” extension:
slmgr.vbs /upk
2.) Install the key that you obtained above for “Windows Srv 2012R2 DataCtr/Std KMS for Windows 10”
@NicolasBizzozzero
NicolasBizzozzero / cp_template.py
Last active October 4, 2021 08:23
Competitive Programming template for Python 3 files, with a GPLv3 header.
""" Answer a specific exercise of a programming contest.
This module contains all the code needed to answer a given exercise during a
programming contest. Due to its quick creation and the fact that it's probably
not following proper Python guidelines (as described in multiples PEP
documents), it shouldn't be used in production.
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
@dssstr
dssstr / vigenere.py
Last active August 18, 2024 00:10
Simple Vigenere Cipher written in Python 3.5.
def encrypt(plaintext, key):
key_length = len(key)
key_as_int = [ord(i) for i in key]
plaintext_int = [ord(i) for i in plaintext]
ciphertext = ''
for i in range(len(plaintext_int)):
value = (plaintext_int[i] + key_as_int[i % key_length]) % 26
ciphertext += chr(value + 65)
return ciphertext
@CMCDragonkai
CMCDragonkai / php_shared_nothing_concurrency_architecture.md
Last active January 8, 2024 16:39
PHP: Shared Nothing Concurrency Architecture

Shared Nothing Concurrency Architecture

Although PHP now has a number of features that allow you to control concurrency, it was designed with the shared-nothing architecture philosophy.

Anything that needed to be shared was intended to be pushed down to a co-ordinated robust database or a network filesystem. All state inside a PHP process was to be short lived and only exist within a single PHP lifecycle, which is also the lifecycle of an HTTP request and response.