Skip to content

Instantly share code, notes, and snippets.

View tenshiAMD's full-sized avatar
🎯
Focusing

Angel Aviel Domaoan tenshiAMD

🎯
Focusing
View GitHub Profile
@WorkingRobot
WorkingRobot / gitea-actions.py
Created May 1, 2022 08:01
Link your GitHub Actions to Gitea's CI API
#!/usr/bin/python3
import hashlib, hmac
import humanize
import json
import requests
from dateutil import parser
from http.server import HTTPServer, BaseHTTPRequestHandler
BIND_IP = "127.0.0.1"
@tlylt
tlylt / add-all-contributors.py
Created January 10, 2022 15:57
Automatically add all existing GitHub repo contributors with all-contributors-cli
import subprocess
import shlex
import sys
def init():
print("Initialize all-contributors")
subprocess.run(shlex.split("npx all-contributors-cli init"), shell=True)
@neilsmithdesign
neilsmithdesign / swift-ui-protocol-view-models.swift
Last active April 27, 2024 17:13
SwiftUI views with protocol interfaces to view models.
import SwiftUI
/// View model protocol
protocol ViewModel: ObservableObject {
var count: Int { get }
func increase()
}
/// Concrete implementation
class MyViewModel: ViewModel {
@tenshiAMD
tenshiAMD / cleanup.sh
Last active September 14, 2023 18:31
Clean up
docker system prune --force
docker rmi $(docker images -q)
gem cleanup
brew cleanup
rm -rf ~/Library/Caches/*
rm -rf ~/.cocoapods/repos/*
xcrun simctl delete all
rm -rf ~/Library/Developer/CoreSimulator/Caches/dyld/*
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Developer/XCPGDevices/*
@mrbar42
mrbar42 / README.md
Last active May 22, 2024 19:06
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster
@lokimeyburg
lokimeyburg / pm-interview-questions.md
Last active May 1, 2024 06:07
Product Manager Interview Questions

Product Manager Interview Questions

General Questions:

  • Tell me about yourself.
  • Tell me about the most boring job you have ever had.
  • What changes would you make if you came on board?
  • What would you say to your boss if he is crazy about an idea, but you think it stinks?
  • Assuming that you are selected, what will be your strategy for next 60 days?
  • why are not you earning more money at this stage of your career?
@keithweaver
keithweaver / s3-upload-via-form.php
Created July 18, 2017 11:33
Upload image using form submission to AWS S3 with PHP
<?php
// This file demonstrates file upload to an S3 bucket. This is for using file upload via a
// file compared to just having the link. If you are doing it via link, refer to this:
// https://gist.github.com/keithweaver/08c1ab13b0cc47d0b8528f4bc318b49a
//
// You must setup your bucket to have the proper permissions. To learn how to do this
// refer to:
// https://github.com/keithweaver/python-aws-s3
// https://www.youtube.com/watch?v=v33Kl-Kx30o
@keithweaver
keithweaver / put-object-on-aws-s3.php
Last active May 18, 2023 19:20
Upload an image/object to an AWS S3 Bucket using PHP
<?php
// Installed the need packages with Composer by running:
// $ composer require aws/aws-sdk-php
$filePath = "https://example.com/test.png";
require 'vendor/autoload.php';
$bucketName = 'YOUR_BUCKET_NAME';
$filePath = './YOUR_FILE_NAME.png';
@patpohler
patpohler / Big List of Real Estate APIs.md
Last active June 6, 2024 01:03
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@kn9ts
kn9ts / GPLv3.md
Last active March 8, 2024 07:26
GPLv3 explained

GPL3 LICENSE SYNOPSIS

TL;DR* Here's what the license entails:

1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.