Skip to content

Instantly share code, notes, and snippets.

@yungwarlock
yungwarlock / myschoolng-past-questions.ipynb
Created October 9, 2024 08:18
MySchoolNG Past Questions.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yungwarlock
yungwarlock / outbound-email-with-cloudflare.md
Created October 7, 2024 12:30 — forked from irazasyed/outbound-email-with-cloudflare.md
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@yungwarlock
yungwarlock / learning-pytorch.ipynb
Last active June 26, 2024 10:48
learning-pytorch.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yungwarlock
yungwarlock / sqlite3.bash
Created November 12, 2023 02:26
How to use sqlite3 cli
#!/bin/bash
# Connect to database
sqlite db.sqlite
# Get all tables names
.table
# Get all tables and their information
select * from sqlite_master;
@yungwarlock
yungwarlock / yarn.bash
Last active November 11, 2023 12:21
Yarn workspaces setup
#!/usr/bin/env bash
yarn set version stable
yarn config set nodeLinker node-modules
@yungwarlock
yungwarlock / gist:e91bbf73b8f6d48523d2bc0f1c2cc287
Created October 25, 2023 08:42
How to renable android 12 internet button
#!/bin/sh
settings put global settings_provider_model false
settings put secure sysui_qs_tiles "internet,$(settings get secure sysui_qs_tiles)"
@yungwarlock
yungwarlock / mobile.yaml
Created October 15, 2023 16:54
Simple Github action to build flutter project
name: Mobile
on:
workflow_dispatch:
push:
branches: [master]
permissions:
contents: read
pull-requests: read
@yungwarlock
yungwarlock / globals.css
Last active September 30, 2023 15:18
Tailwind hidescrollbar
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer utilities {
@layer components {
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
@yungwarlock
yungwarlock / main.dart
Last active September 4, 2023 13:26
SchedulerBinding
import 'package:flutter/material.dart';
import "package:flutter/scheduler.dart";
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
/* item.subtitle != null */
/* ? Container( */
/* padding: const EdgeInsets.symmetric( */
/* vertical: 4, */
/* horizontal: 8, */
/* ), */
/* color: Colors.grey[100], */
/* child: Row( */
/* children: [ */
/* CircleAvatar( */