Skip to content

Instantly share code, notes, and snippets.

View wizofe's full-sized avatar
😬
Focusing

Ioannis Valasakis wizofe

😬
Focusing
View GitHub Profile
@yvesh
yvesh / .Xdefaults
Last active August 31, 2018 12:26
URxvt Xdefaults config
URxvt.saveLines: 2000
URxvt.scrollBar: false
URxvt.foreground: #f9f7f1
URxvt.depth: 32
URxvt.secondaryScroll: true
URxvt.font: xft:DejaVu Sans Mono for Powerline:pixelsize=22:antialias=true
URxvt.perl-ext-common: default,matcher,selection-to-clipboard
URxvt.urlLauncher: chromium
URxvt.matcher.button: 1
URxvt.tabbed.saveLines: 2000
@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active November 18, 2024 08:50
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."[email protected]:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@MartyMacGyver
MartyMacGyver / RPi_Kernel_building_with_optional_kmemleak_etc.sh
Last active June 28, 2018 13:57
Building the kernel for the Raspberry Pi/Pi2/Pi3 (with headers and optional memory leak debugging steps)
###############################################################################
# Compiling the RPi kernel in situ, with optional memory leak debugging
#
# Extends https://www.raspberrypi.org/documentation/linux/kernel/building.md
###############################################################################
# On the Raspberry Pi
cd ~/Projects
# Install rerequisites
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active May 7, 2025 16:40
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@luiscape
luiscape / install_packages.sh
Created January 16, 2017 14:36
Install Python dependency packages from requirements.txt using conda.
#
# Original solution via StackOverflow:
# http://stackoverflow.com/questions/35802939/install-only-available-packages-using-conda-install-yes-file-requirements-t
#
#
# Install via `conda` directly.
# This will fail to install all
# dependencies. If one fails,
# all dependencies will fail to install.
@rosghub
rosghub / dotfiles
Created May 20, 2017 01:12
Manjaro i3 Hi-DPI config
#
# Configuration files for Manjaro i3 on Lenovo Yoga 2 pro
# to scale properly on HiDPI (3200x1800)
#
#####################################################
~/.profile #
#####################################################
# UI element scaling, icons
export GDK_SCALE=2
@oiehot
oiehot / composite.py
Created October 1, 2017 06:15
Building Photoshop layers with Python
import os
import comtypes.client
app = comtypes.client.CreateObject('Photoshop.Application.60') # CS6
# maya config
project_path = 'd:/project/alice/maya'
log_path = project_path + '/log'
images_path = project_path + '/images'
layers = ['master', 'prop_matte', 'shadow', 'wall_matte']
passes = ['beauty', 'N']
@mparker2
mparker2 / cluster.py
Last active June 27, 2022 13:26
some numpy functions for dynamic time warping
import numpy as np
from scipy.spatial.distance import cdist
from .dtw import dtw
from .lb import envelope, lb_keogh_cdist, lb_keogh_from_bounds
from .window import window_ts
def dtw_nearest_neighbours(query, db, bound_reach, step_size, subseq=False):
assert query.ndim == 1
assert db.ndim == 2
assert query.flags.contiguous
@glbramalho
glbramalho / __init__.py
Last active September 28, 2019 22:55
SCM / SIM / MIDE
# Structural Cooccurrence Matrix - SCM
# OBS.: implementation of SCM for image analysis
# Geraldo Ramalho v0.8 ago/2016
#
# please cite:
# Ramalho et al. Rotation-invariant Feature Extraction using a Structural Co-occurrence Matrix.
# Measurement, v.94, p.406-415, dec/2016.
# doi:10.1016/j.measurement.2016.08.012
# lapisco.ifce.edu.br/?page_id=191
#
@Mahedi-61
Mahedi-61 / cuda_11.8_installation_on_Ubuntu_22.04
Last active April 25, 2025 18:27
Instructions for CUDA v11.8 and cuDNN 8.9.7 installation on Ubuntu 22.04 for PyTorch 2.1.2
#!/bin/bash
### steps ####
# Verify the system has a cuda-capable gpu
# Download and install the nvidia cuda toolkit and cudnn
# Setup environmental variables
# Verify the installation
###
### to verify your gpu is cuda enable check