Skip to content

Instantly share code, notes, and snippets.

View croqaz's full-sized avatar
:bowtie:
This is a status

Cristtÿ Constantin croqaz

:bowtie:
This is a status
View GitHub Profile
@croqaz
croqaz / .p10k.zsh
Last active May 29, 2023 12:08
ZSH config
# Based on romkatv/powerlevel10k/config/p10k-pure.zsh, checksum 35142.
# Wizard options: nerdfont-v3 + powerline, small icons, pure, snazzy, 1 line, compact,
# instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config file for Powerlevel10k with the style of Pure (https://github.com/sindresorhus/pure).
#
# Differences from Pure:
#
# - Git:
@croqaz
croqaz / .fonts.conf
Last active September 17, 2021 12:57 — forked from dcrystalj/.fonts.conf
fonts.conf file
//Updated version of the fonts.conf file mentioned in http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/ in order to get rid of most of the fontconfig warnings (mostly the "Having multiple values in <test> isn't supported and may not work as expected")
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
@croqaz
croqaz / easing.js
Created December 21, 2019 09:27 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity

Keybase proof

I hereby claim:

  • I am croqaz on github.
  • I am croqaz (https://keybase.io/croqaz) on keybase.
  • I have a public key whose fingerprint is 4413 4EC9 2155 87FD 88CA 1DCA 9FF8 3DA7 0244 7B8F

To claim this, I am signing this object:

@croqaz
croqaz / Timelapse.md
Last active November 3, 2016 13:02 — forked from porjo/timelapse.md
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

ffmpeg -r 30 -start_number 100 -i frame%d.JPG -s hd1080 -vcodec libx264 timelapse.mp4

  • -r 30 - output frame rate
  • -start_number 100 - if filenames don't start at 0000, then specify start number
  • -i frame%d.JPG - e.g. frame333.JPG
  • -s hd1080 - 1920x1080 resolution

Slower, better quality

@croqaz
croqaz / Unix SSH
Last active May 14, 2018 08:38
Useful SSH commands
ls : list files/directories in a directory, comparable to dir in windows/dos ;
ls -lha : shows all files (including ones that start with a period), directories, and details attributes for each file.
cd : change directory ;
cd ~ : go to your home directory
cd ~user : go to another user's home directory
cd - : go to the last directory you were in
cd .. : go up a directory