Skip to content

Instantly share code, notes, and snippets.

View carlosal1015's full-sized avatar
🇵🇪
Studying mathematics

Oromion carlosal1015

🇵🇪
Studying mathematics
View GitHub Profile
@carlosal1015
carlosal1015 / matlab_substitutes.jl
Created December 24, 2020 20:15 — forked from jcbsv/matlab_substitutes.jl
Somewhat Matlab compatible Julia functions: decimate and cheby1
using DSP
function cheby1(n, r, wp)
# Chebyshev Type I digital filter design.
#
# b, a = cheby1(n, r, wp)
#
# Designs an nth order lowpass digital Chebyshev filter with
# R decibels of peak-to-peak ripple in the passband.
@carlosal1015
carlosal1015 / doom.txt
Created December 10, 2020 01:35 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@carlosal1015
carlosal1015 / compile-ffmpeg.sh
Created November 30, 2020 17:53 — forked from wildrun0/compile-ffmpeg.sh
Compiling ffmpeg for Raspberry Pi 4
#!/bin/bash
# Note that there's no libdrm because this lib cause errors
sudo apt update -y && sudo apt upgrade -y
sudo apt-get -y install \
autoconf \
automake \
build-essential \

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

@carlosal1015
carlosal1015 / .travis.yml
Created October 22, 2020 03:06 — forked from willprice/.travis.yml
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@carlosal1015
carlosal1015 / installing_virt_manager.md
Created September 27, 2020 23:16 — forked from diffficult/installing_virt_manager.md
Easy instructions to get virt-manager qemuv/kvm running on Arch

Easy instructions to get QEMU/KVM and virt-manager up and running on Arch

  1. Make sure your cpu support kvm with below command:

     grep -E "(vmx|svm)" --color=always /proc/cpuinfo
    
  2. Make sure BIOS have enable “Virtualization Technology”.

  3. User access to /dev/kvm so add your account into kvm(78) group:

@carlosal1015
carlosal1015 / LU_decomposition.ipynb
Created August 29, 2020 19:27 — forked from radovankavicky/LU_decomposition.ipynb
A Speed Comparison Of C, Julia, Python, Numba, and Cython on LU Factorization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@carlosal1015
carlosal1015 / install-firacode.sh
Created August 14, 2020 00:05 — forked from nikhita/install-firacode.sh
How to install FiraCode font on Linux
mkdir -p ~/.local/share/fonts
for type in Bold Light Medium Regular Retina; do wget -O ~/.local/share/fonts/FiraCode-$type.ttf "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-$type.ttf?raw=true"; done
fc-cache -f
@carlosal1015
carlosal1015 / git-clearHistory
Last active January 10, 2021 18:31 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
git config --global init.defaultBranch main
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
@carlosal1015
carlosal1015 / PKGBUILD
Created May 26, 2020 03:18 — forked from hadi77ir/PKGBUILD
PKGBUILD for building Arch Linux EasyEDA package (with Electron 3.1.8)
pkgname=easyeda
pkgver=2.0.0
pkgrel=0
pkgdesc="EasyEDA Desktop Client, A Simple and Powerful Electronic Circuit Design Tool"
arch=('x86_64')
license=(custom)
depends=(gconf)
url="https://easyeda.com/page/download"
options=('!strip')
source=('https://image.easyeda.com/files/easyeda-linux-64bit-latest.zip' 'https://github.com/electron/electron/releases/download/v3.1.8/electron-v3.1.8-linux-x64.zip')