Skip to content

Instantly share code, notes, and snippets.

View wizofe's full-sized avatar
😬
Focusing

Ioannis Valasakis wizofe

😬
Focusing
View GitHub Profile
@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
@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
@raullenchai
raullenchai / compare_dir.py
Created November 28, 2012 20:46
Compare the lay out of dir1 and dir2, ignore the content of files
import os
def compare_dir_layout(dir1, dir2):
def _compare_dir_layout(dir1, dir2):
for (dirpath, dirnames, filenames) in os.walk(dir1):
for filename in filenames:
relative_path = dirpath.replace(dir1, "")
if os.path.exists( dir2 + relative_path + '\\' + filename) == False:
print relative_path, filename
return
@todgru
todgru / gist:4128695
Last active April 12, 2019 00:45
Git Keeps asking for username password clone ssh git https
@smoitra87
smoitra87 / python2pdf.sh
Last active August 15, 2019 15:02
Convert python files to pdf and concatenate all pdfs. Requires pygmentize, pdflatex and pdftk
#!/bin/sh
allpdfs=""
for f in "$@" ; do
filename=$(basename "$f")
filename="${filename%.*}"
pygmentize -f tex -O linenos -O title=$( echo $filename | tr '_' '-').py -O full -O style=default -o /tmp/$filename.tex $f
pdflatex -jobname=$filename -output-directory=/tmp /tmp/$filename.tex
allpdfs="$allpdfs /tmp/$filename.pdf"
@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
#
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mkitti
mkitti / napari.jl
Last active December 28, 2020 19:31
Invoking Napari from Julia Language 1.3.1
"""
napari.jl
Test using PyCall.jl to invoke Napari ( http://github.com/napari ) from
the Julia language ( https://julialang.org/ ) 1.3.1
Mark Kittisopikul
January 29th, 2020
"""
@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']
@andyweizhao
andyweizhao / cuda_installation_on_ubuntu_18.04
Last active October 11, 2021 17:56 — forked from Mahedi-61/cuda_11.8_installation_on_Ubuntu_22.04
cuda 9.0 complete installation procedure for ubuntu 18.04 LTS
#!/bin/bash
## This gist contains step by step instructions to install cuda v9.0 and cudnn 7.3 in ubuntu 18.04
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###