Skip to content

Instantly share code, notes, and snippets.

View luatnd's full-sized avatar
:octocat:
πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹

Neo Mxn0 luatnd

:octocat:
πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹ πŸ¦‹
View GitHub Profile
@ehsan18t
ehsan18t / processor-boost-mode.md
Last active May 21, 2025 07:33
Enable Processor Boost Mode Control in Advanced Power Settings

Enable Processor Boost Mode Control in Windows

Disable Turbo Boost to Reduce Power Consumption and Heat

Why Do We Need It?

If your laptop’s CPU is running very hot and you’ve tried to undervolt it, you’ve probably discovered there’s no easy way to do soβ€”especially on laptops whose BIOS doesn’t expose those controls. I ran into the same issue with my Ryzen 7 5800H, despite numerous attempts, I couldn’t undervolt because the firmware simply wouldn’t allow it. While it may seem drastic, disabling Turbo Boost is one workaroundβ€”and you might be surprised how little real-world performance you lose by turning it off.

@Linch1
Linch1 / tokenPriceApi.js
Last active April 20, 2025 18:46
Retrive the price of any bsc token from it's address without using external service like poocoin/dextools
let pancakeSwapAbi = [
{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},
];
let tokenAbi = [
{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},
];
const Web3 = require('web3');
/*
Required Node.js
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 16, 2025 12:31
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android πŸ‹πŸ“±

Edit πŸŽ‰

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@jojosati
jojosati / appsscript.json
Last active March 27, 2023 20:26
MongoDB connector for Google Data Studio
{
"exceptionLogging": "STACKDRIVER",
"dataStudio": {
"name": "MongoDB via mlab API - acc40",
"company": "Account 4.0",
"companyUrl": "https://acc40.com",
"logoUrl": "https://next-scraft.appspot.com/images/scraft.ico",
"addonUrl": "https://medium.com/@jsat66/mongodb-connector-for-google-data-studio-part-1-%E0%B8%AA%E0%B8%B3%E0%B8%A3%E0%B8%A7%E0%B8%88-c35eac7f2bf4",
"supportUrl": "https://gist.github.com/jojosati/89652770b39fd147a2484e4baf13a5ee",
"description": "Universal MongoDB connector."
@sorenlouv
sorenlouv / determine-changed-props.js
Last active April 18, 2024 16:21
Determine which props causes React components to re-render
import React, { Component } from 'react';
export default function withPropsChecker(WrappedComponent) {
return class PropsChecker extends Component {
componentWillReceiveProps(nextProps) {
Object.keys(nextProps)
.filter(key => {
return nextProps[key] !== this.props[key];
})
.map(key => {
@Rebolon
Rebolon / vue.debug.js
Created November 5, 2016 20:50
A solution to use debugger in v-for for VueJS
<ul id="pages-block">
<li v-for="page in pages">
<a v-bind:href="page.url">{{page.name}}</a>
<debug :item="page"/>
</li>
</ul>
...
Vue.component('debug', {
@vasanthk
vasanthk / System Design.md
Last active May 20, 2025 01:58
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@wzup
wzup / .bashrc
Last active May 17, 2023 00:49
alias for Git Bash on Windows
# create a file C:\Users\[user]\.bashrc
# add this content
# add your onw aliases or changes these ones as you like
# to make a dot (.bashrs) file in windows, create a file ".bashrs." (without extention) and save. windows will save it as ".bashrc"
alias ls='ls -alh'
alias cdnginx='cd /c/nginx && ls'
alias cdmcga='cd /c/Users/[user]/sbox/node/mcga && ls'
alias cdfood9='cd /c/Users/[user]/sbox/node/food9 && ls'
alias cdmysql='cd /c/nginx/mysql/bin && ls'
@afolarin
afolarin / docker-log-gist.md
Last active March 16, 2023 13:02
docker-logs