Skip to content

Instantly share code, notes, and snippets.

View Quadriphobs1's full-sized avatar
:shipit:

Quadri A. Adekunle Quadriphobs1

:shipit:
View GitHub Profile
@Quadriphobs1
Quadriphobs1 / fixnet.sh
Created September 10, 2025 01:22
Command to fix internet connection when Ollama reset the dns setting and can't access the internet
#!/bin/zsh
networksetup -setwebproxystate Wi-Fi off
networksetup -setsecurewebproxystate Wi-Fi off
networksetup -setsocksfirewallproxystate Wi-Fi off
networksetup -setautoproxystate Wi-Fi off
unset http_proxy https_proxy
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder
echo "✅ Network settings reset. Relaunch apps if needed."
@Quadriphobs1
Quadriphobs1 / function1.py
Created May 1, 2021 16:47
Quadri<>Raimot: Python Practice
def print_hello_world():
print("Hello world")
print_hello_world()
def calculate_100_x_200():
ans = 100 * 200
print("The value is ", ans)
print_hello_world()
@Quadriphobs1
Quadriphobs1 / 3x3 matrix data
Created March 8, 2020 20:06
A list of all arrangement of 3x3 matix
data = [
[8, 3, 4, 1, 5, 9, 6, 7, 2],
[4, 3, 8, 9, 5, 1, 2, 7, 6],
[8, 1, 6, 3, 5, 7, 4, 9, 2],
[6, 1, 8, 7, 5, 3, 2, 9, 4],
[2, 9, 4, 7, 5, 3, 6, 1, 8],
[4, 9, 2, 3, 5, 7, 8, 1 ,6],
[2, 7, 6, 9, 5, 1, 4, 3, 8],
[6, 7, 2, 1, 5, 9, 8, 3, 4],
];
@Quadriphobs1
Quadriphobs1 / 06.png
Created December 28, 2019 16:46 — forked from mfd/06.png
Gilroy font
06.png
@Quadriphobs1
Quadriphobs1 / Form.js
Last active June 17, 2019 18:42
React Form State Management
// @flow
import React, { Fragment } from "react";
import FormContext from "./FormContext";
const Form = () => (
<FormProvider>
<FormContext.Consumer>
{({ email, password, handleChangePassword, handleChangeEmail, handleSubmit }) => (
<form
onSubmit={handleSubmit}
>
@Quadriphobs1
Quadriphobs1 / README-Template.md
Created March 24, 2019 22:17 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@Quadriphobs1
Quadriphobs1 / styles.css
Created March 11, 2019 13:12
Centering image in its contaner
object-position: center;
object-fit: cover;
height: auto;
min-height: 100%;
@Quadriphobs1
Quadriphobs1 / DragDrop.jsx
Created February 5, 2019 17:22
React Image Drag Drop Implementation
import React, { Component } from 'react'
class DragAndDrop extends Component {
state = {
drag: false
}
dropRef = React.createRef()
handleDrag = (e) => {
e.preventDefault()
e.stopPropagation()
}
@Quadriphobs1
Quadriphobs1 / object-resolver.js
Created January 23, 2019 12:46
Object key resover
function resolve(path, obj=self, separator='.') {
var properties = Array.isArray(path) ? path : path.split(separator)
return properties.reduce((prev, curr) => prev && prev[curr], obj)
}
@Quadriphobs1
Quadriphobs1 / babel.rc
Created January 15, 2019 12:30 — forked from abhishekgargx/babel.rc
react native build.gradle patch for Android . FIX for duplicate resources found error in react native release or signing app.
{
"presets": ["react-native"]
}