This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /usr/lib/systemd/system/asus-kbd-backlight.service | |
| [Unit] | |
| Description=Asus Keyboard Backlight | |
| Wants=systemd-backlight@leds:asus::kbd_backlight.service | |
| After=systemd-backlight@leds:asus::kbd_backlight.service | |
| [Service] | |
| Type=oneshot | |
| RemainAfterExit=yes | |
| ExecStart=/bin/chown root:backlight /sys/class/leds/asus::kbd_backlight/brightness |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ffprobe -v quiet \ | |
| -print_format json \ | |
| -select_streams v:0 \ | |
| -show_entries stream_tags=creation_time \ | |
| -show_entries stream=height,width \ | |
| -show_entries format=size,creation_time \ | |
| -show_entries format=duration $1 \ | |
| | jq "{file: \"$1\", size: .format.size|tonumber, duration: .format.duration|tonumber, width: .streams[0].width, height: .streams[0].height, time: .streams[0].tags.creation_time }" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| #include <fcntl.h> | |
| #include <linux/fb.h> | |
| #include <sys/mman.h> | |
| #include <sys/ioctl.h> | |
| #include <stdint.h> | |
| #include <stdbool.h> | |
| #include <linux/input.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/time.h> | |
| #include <glib.h> | |
| #define GST_USE_UNSTABLE_API | |
| #include <gst/gst.h> | |
| #include <gst/rtsp-server/rtsp-server.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| audio gstreamer dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| echo 'usage: ./ffmpeg_to_gif.sh ~/Downloads/test.mov ~/Downloads/test.gif' | |
| palette="/tmp/palette.png" | |
| filters="fps=15,scale=1000:-1:flags=lanczos" | |
| ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
| ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| export CCPREFIX="/usr/bin/arm-linux-gnueabihf-" | |
| # Get the FFMPEG source | |
| git clone git://source.ffmpeg.org/ffmpeg.git | |
| cd ffmpeg | |
| # Get library dependency sources |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| struct functions { | |
| const char *name; | |
| int (*func)(const char *arg); | |
| }; | |
| int dog_func(const char *arg) | |
| { | |
| printf ("dog %s\n", arg); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * ArcUtils.java | |
| * | |
| * Copyright (c) 2014 BioWink GmbH. | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| void hexDump (char *desc, void *addr, int len) { | |
| int i; | |
| unsigned char buff[17]; | |
| unsigned char *pc = (unsigned char*)addr; |