Skip to content

Instantly share code, notes, and snippets.

View daysm's full-sized avatar
🚀

Dayyan Smith daysm

🚀
View GitHub Profile
#!/bin/bash
# Based on https://unix.stackexchange.com/questions/466593/moving-random-files-using-shuf-and-mv-argument-list-too-long
# Based on https://www.gnu.org/software/coreutils/manual/html_node/Random-sources.html#Random-sources
SOURCE_DIR=$1
TARGET_DIR=$2
TEST_SIZE=$3
RANDOM_SEED=$4
@daysm
daysm / move-files-to-new-directory-based-on-file-name.sh
Last active November 2, 2020 13:32
Move files to (new) directory based on file name
#!/bin/bash
START=$1
END=$2
for file in *; do dir=$(echo $file | cut -c $START-$END); mkdir -p $dir; mv "$file" "$dir"; done

Useful ffmpeg commands

Make video from image and audio

ffmpeg -i image.jpg -i audio.mp3 combined.mp4

@daysm
daysm / rasa-environment.yml
Created January 16, 2018 12:47
A conda environment for rasa.ai
name: rasa-env
channels:
- defaults
dependencies:
- ca-certificates=2017.08.26=h1d4fec5_0
- certifi=2017.11.5=py35h9749603_0
- libedit=3.1=heed3624_0
- libffi=3.2.1=hd88cf55_4
- libgcc-ng=7.2.0=h7cc24e2_2
- libstdcxx-ng=7.2.0=h7a57d05_2
@daysm
daysm / LTP
Last active November 25, 2016 09:52
Toy data set for Database Systems I at LMU Munich
group: LTP
L = {
lnr:string, lname:string, status:number, sitz:string
l1, Meier, 20, Wetter
l2, Mueller, 10, Berlin
l3, Schmidt, 50, Berlin
l4, Schulz, 30, Wetter
l5, Krause, 40, Meschede

Keybase proof

I hereby claim:

  • I am daysm on github.
  • I am daysm (https://keybase.io/daysm) on keybase.
  • I have a public key ASDQT3hJ0BPdurS2Vs-7aWoGHpVZnF1dh0CJ94g1ATNUMwo

To claim this, I am signing this object: