Skip to content

Instantly share code, notes, and snippets.

View cecil's full-sized avatar
💭
🤠

cecil cecil

💭
🤠
View GitHub Profile
@FilBot3
FilBot3 / Python_Learning_Path.md
Last active January 20, 2021 15:58
A guided learning path for Python. Doesn't aim to teach directly, but guide you to learning on your own.

Python Learning Path

Overiew

This is a set of links to documentation that I used to learn Python and appreciate what it does.

Python Runtime Managers

Linux/MacOS

@MIvanchev
MIvanchev / article.md
Last active April 4, 2023 13:39
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@BaReinhard
BaReinhard / Blu_R1_HD_ROOT.md
Last active July 5, 2022 00:06
Rooting Amazon Ad Enabled Blu R1 HD 16gb/2gb

Rooting Amazon Ads Enabled Blu R1 HD

Windows

  1. Download drivers here
  2. Install ADB Files here or here
  3. Download Unlock Tool here
  4. Connect Phone to Computer Via USB, unlock phone and allow computer access.
  5. Run dirty-cow-tool.bat
  6. Run options 1,2,3,4, and option 5.1
  7. Enjoy Root
  • What do Etcd, Consul, and Zookeeper do?
    • Service Registration:
      • Host, port number, and sometimes authentication credentials, protocols, versions numbers, and/or environment details.
    • Service Discovery:
      • Ability for client application to query the central registry to learn of service location.
    • Consistent and durable general-purpose K/V store across distributed system.
      • Some solutions support this better than others.
      • Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state.
  • Centralized locking can be based on this K/V store.

These are notes while researching a way to convert a browser/website to a stream. This could be used for Facebook Live or for webrecording. TL'DR:

  • I started with Phantomjs - but that didn't support the html5 video tag
  • SlimerJS supports it, but there is no way to record audio directly (though this might come from desktop audio)
  • So I moved to research ffmpeg/X11/XVFB to record it with linux which works
  • But ffmpeg has no easy way to mix streams/overlays to I moved on to OBS with overlay browser support
  • I started researching options OBS in docker and it needed best a GPU , so I move to nvidia-docker
  • And so came across building game servers on EC2/AWS using GPUs and managed to run OBS inside of GPU g2x.large machine
  • I tried streaming to twich , which works great and managed to restream 4K 60FPS youtube on an AWS instance
  • Remote control works through OBS-Remote but OBS has kinda limit in types of features
@graymouser
graymouser / gist:8771fdcf0d7715929073b4f8b6143b40
Created November 12, 2016 12:47
Setup taskwarrior taskserver on ec2 amazon linux
#A sequence for installing a taskwarrior server on an ec2 amazon linux instance
#hopefully this can save someone a bunch of time
#FIRST go to the ec2 instance management panel,
#edit the security group for the instance and add an inbound rule, custom tcp, port 53589, source anywhere (0.0.0.0/0)
#THEN ssh to the box as ec2-user and run the following
#build taskserver
sudo yum install gcc cmake gnutls-devel gnutls-utils libuuid-devel clang
curl -O http://taskwarrior.org/download/taskd-latest.tar.gz
#include <stdexcept>
#include <cmath>
#include <vector>
#include <Windows.h>
#include <Psapi.h>
#include <detours.h>
#include <d3d9.h>
#include <d3dx9.h>
#define PI 3.14159F
#include <Windows.h>
#include <TlHelp32.h>
#include <Psapi.h>
int main()
{
const auto *exe = "GuiltyGearXrd.exe";
const auto *dll = "ggxrd_hitbox_overlay.dll";
const auto snap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
@mslinn
mslinn / instructions.txt
Created November 13, 2015 21:53
Create a PPA repository on S3
$ # see https://github.com/krobertson/deb-s3
$ sudo apt-get install ruby2.1-dev
$ sudo gem install deb-s3
$ cd ~/pound
$ aws s3api create-bucket --bucket mslinn-ppa --acl public-read
{
"Location": "/mslinn-ppa"
}
$ deb-s3 upload --bucket mslinn-ppa pound_2.7f-0ubuntu1_amd64.deb
$ deb-s3 verify -b mslinn-ppa
@fo-fo
fo-fo / nes-hardware-sprite-visualizer.lua
Created September 15, 2015 14:44
Lua script for NES hardware sprite visualization in BizHawk
-- NES Hardware Sprite Visualizer (for BizHawk)
-- v01
-- by thefox <thefox@aspekt.fi> 2015-09-15
-- NOTE: Requires NesHawk core
-------------------------------------------------------------------------------
-- Memory domains on NES:
-- WRAM, CHR, CIRAM (nametables), PRG ROM, PALRAM, OAM, System Bus, RAM