Skip to content

Instantly share code, notes, and snippets.

View praisegeek's full-sized avatar

Praise-God Emerenini praisegeek

  • Lagos, Nigeria.
View GitHub Profile
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@praisegeek
praisegeek / docker-compose.yml
Created November 17, 2022 23:42 — forked from jahrmando/docker-compose.yml
Docker Compose - Mongo, Redis, Elasticsearch, postgresql96
version: '3'
services:
database:
image: 'mongo:3.6'
command: --serviceExecutor adaptive
container_name: 'mongodb-service'
volumes:
- mongo_data:/data/db
@praisegeek
praisegeek / open_source_licenses.md
Created November 3, 2022 11:14 — forked from nicolasdao/open_source_licenses.md
What you need to know to choose an open source license.
@praisegeek
praisegeek / dnsmasq OS X.md
Created November 2, 2022 15:16 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@praisegeek
praisegeek / dnsmasq_setup_osx.md
Created June 14, 2022 12:05 — forked from eloypnd/dnsmasq_setup_osx.md
wildcard DNS record on OS X in localhost development with dnsmasq

wildcard DNS in localhost development

$ brew install dnsmasq
   ...
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
  • edit /usr/local/etc/dnsmasq.conf
address=/local/127.0.0.1
@praisegeek
praisegeek / auto_resize_webview.dart
Created November 14, 2021 13:25 — forked from ponnamkarthik/auto_resize_webview.dart
Flutter auto resize webview based on its content
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@praisegeek
praisegeek / gist:265ddb05782756c8c7246bcdc82457f6
Created August 26, 2021 11:38 — forked from Mohitsharma44/gist:8d21bbf8efe3bf161b16353e09e99b82
Installing gnuradio, osmosdr and hackrf on mac using mac ports
# Unfortunately this only works with macports for now. I have installed homebrew and macports on my mac
# and use macports explicitly for gnuradio stuff and homebrew as my default package manager. So far
# my system is not broken. I'm considering it as a good sign :p
Steps:
- Install MacPorts (if you havent) following the instructions from here: https://guide.macports.org/#installing
- Install python using Homebrew: brew install python
@praisegeek
praisegeek / how-to-download-from-pan-baidu.md
Created August 21, 2021 03:13
How to download from pan.baidu without account

How to download from pan.baidu.com

Disclaimer:

  • This methods uses a 3rd party website: https://baidu.kinh.cc/.
  • I don't know chinese and after one day of searching for a method I finally found this. I don't know how safe this website is but it does the job.
  • Do it on your own responsibility. I have no idea about possible copyright (if there is such a thing in China) and other stuff regarding to this.

Steps

1. Open the website mentioned above and fill out fields as following:

@praisegeek
praisegeek / user-data.sh
Created February 25, 2021 21:08 — forked from kevupton/user-data.sh
User Data for initializing an EC2 using Ubuntu with Docker GPU
#!/bin/bash
sudo apt-get remove docker docker-engine docker.io
sudo apt-get update -qq
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

How we incorporate next and cloudfront (2018-04-21)

Feel free to contact me at robert.balicki@gmail.com or tweet at me @statisticsftw

This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!

It assumes some knowledge of AWS.

Goals