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
FFMpeg to Icecast2 Streaming Samples | |
==================================== | |
Examples usage of various codecs with FFMpeg. | |
## Samples | |
- flac.sh : An Icecast Source Client | |
- for Windows (Cygwin is required) | |
- and macOS (`brew install ffmpeg`) | |
- another_examples.sh : Samples | |
- FFMpeg can push to Icecast2 in various formats: Opus/Vorbis/AAC/MP3 |
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
curl -- https://gist.githubusercontent.com/vittee/058b1142237fe21a3009b767e429e9bf/raw/7b935c848024c1143940d7a299c0389830c51be7/install.sh | sh |
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
mkdir -p downloads | |
cd downloads | |
yum install epel-release wget net-tools -y | |
yum install vim -y | |
yum install httpd httpd-devel httpd-tools -y | |
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
rpm -Uvh remi-release-7.rpm | |
yum install yum-utils -y | |
yum-config-manager --enable remi-php70 |
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
setenforce 0 | |
sed -i -E s/SELINUX=.+/SELINUX=disabled/g /etc/sysconfig/selinux | |
sysctl -w fs.file-max=500000 | |
echo fs.file-max=500000 >> /etc/sysctl.conf |
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
{ | |
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", | |
"name": "liquidsoap", | |
"patterns": [ | |
{ | |
"include": "#keywords" | |
}, | |
{ | |
"include": "#strings" | |
}, |
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
// Remove the weak linkage | |
PyObject* /*__attribute__((weak))*/ vm_get_mem(JitCpu *self, PyObject* args) |
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
// struct for pin | |
typedef struct { | |
uint8 pin; | |
uint8 state; | |
long lastUpdated; | |
long interval; | |
} pin_info_t; | |
// initialize pin info | |
pin_info_t pin9 = {9, LOW, 0, 1000}; |
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
#pragma once | |
#include <system_error> | |
#include <Windows.h> | |
namespace GameUI { | |
typedef int(__thiscall *noarg_meth_t)(void*); | |
typedef int(__thiscall *onearg_meth_t)(void*, void*); | |
class TaskBar |
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
typedef int(__thiscall *gameui_runcmd)(void* _this, char *cmd); | |
void runSettings() { | |
HMODULE gameui = GetModuleHandle("GameUI.dll"); | |
gameui_runcmd runcmd_func = (gameui_runcmd) ((uintptr_t) gameui + 0x2D1E0); | |
void *gameui_instance = (void*) ((uintptr_t)gameui + 0xC5184); | |
// | |
runcmd_func(gameui_instance, "OpenOptionsDialog"); | |
} |
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 "stdafx.h" | |
#include <stdlib.h> | |
class MyClass { | |
private: | |
int val = 0; | |
public: | |
MyClass(int i) { | |
val = i; |
NewerOlder