Skip to content

Instantly share code, notes, and snippets.

View brokeyourbike's full-sized avatar
😵

Ivan Stasiuk brokeyourbike

😵
View GitHub Profile
@brokeyourbike
brokeyourbike / auth1.dart
Last active January 30, 2024 22:33
Flutter Auth Experiments
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_app_check/firebase_app_check.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
await FirebaseAppCheck.instance.activate(
// Default provider for Android is the Play Integrity provider. You can use the "AndroidProvider" enum to choose
// your preferred provider. Choose from:
// 1. Debug provider
@brokeyourbike
brokeyourbike / lb-api-gateway-cloud-run.md
Last active November 5, 2022 21:16
Load Balancer -> API Gateway -> Cloud Run
@brokeyourbike
brokeyourbike / wireless-bridge-on-e2500.md
Last active February 3, 2022 07:59
Wireless Ethernet Bridge on Linksys E2500 router

Wireless Ethernet Bridge on Linksys E2500 router

Setting Up the Primary Router

  1. Change the default gateway of the router to 192.168.1.1 and subnet mask 255.255.255.0
  2. Take note of the Wireless SSID (Name of the WiFi), password and encryption mode (eg. WPA2/Personal TKIP/AES)

Setting Up the Second Router

  1. Navigate to Basic Settings > Network
@brokeyourbike
brokeyourbike / install-fresh-tomato-on-e2500.md
Last active September 8, 2023 16:52
How to install Fresh Tomato on Linksys E2500 router
@brokeyourbike
brokeyourbike / cloud-functions-static-outbound-ip.md
Last active April 21, 2024 00:50
Cloud functions static outbound IP address

Cloud functions static outbound IP address

The guide inspired by Static outbound IP address for Cloud Run.

1. Find the name of your VPC network:

gcloud compute networks list
@brokeyourbike
brokeyourbike / keybase.md
Created September 13, 2020 20:21
keybase proof

Keybase proof

I hereby claim:

  • I am brokeyourbike on github.
  • I am brokeyourbike (https://keybase.io/brokeyourbike) on keybase.
  • I have a public key ASAs428C8XBNtcGS5-wRo-ZXPCZ3tmaEdb88XwP45lZ4uQo

To claim this, I am signing this object:

@brokeyourbike
brokeyourbike / pytorch-with-cuda-on-macos.md
Last active November 14, 2023 09:51
Install PyTorch 1.7 with CUDA 10.1 on MacOS High Sierra 10.13.6 + GTX 1060 6GB

Install PyTorch 1.7 with CUDA 10.1 on MacOS High Sierra 10.13.6 + GTX 1060 6GB

Install web driver for NVIDIA

  1. install webdriver.sh
brew tap vulgo/repo
brew install webdriver.sh
  1. install lastest driver
@brokeyourbike
brokeyourbike / do.sh
Created July 30, 2020 09:09
Run laravel schedule on mac.
while true; do php artisan schedule:run; sleep 60; done
@brokeyourbike
brokeyourbike / overwrite.js
Last active February 15, 2020 16:01
honestysales.com journal3 overwrite
$(function() {
var add_to_c_section = $('.route-product-product:not(.popup) .product-info .product-details .button-group-page ');
if (add_to_c_section.length == 1) {
$('head').append("<style>@media screen and (max-width: 760px) {html.route-product-product iframe.zEWidget-launcher {bottom: "+add_to_c_section.height()+"px !important;}</style>");
}
});
<snippet>
<content><![CDATA[<?php echo "<pre>"; print_r(${1:''}); echo "</pre>"; ?>]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>dump</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>