Skip to content

Instantly share code, notes, and snippets.

@ajxchapman
ajxchapman / README.md
Last active April 25, 2024 05:34
Install Windows on Digital Ocean droplet
@rririanto
rririanto / Ghost-Admin-API.py
Last active April 25, 2024 05:33
Python Ghost Insert Posts using Admin API from Ghost Wordpress Plugin
import requests # pip install requests
import jwt # pip install pyjwt
from datetime import datetime as date
import json
import os
CONTENT_API = "<YOUR CONTENT API>"
ADMIN_API = "<YOUR ADMIN API>"
API_URL = "<URL ENDPOINT>"
// ESP32 Guide: https://RandomNerdTutorials.com/esp32-mpu-6050-accelerometer-gyroscope-arduino/
// ESP8266 Guide: https://RandomNerdTutorials.com/esp8266-nodemcu-mpu-6050-accelerometer-gyroscope-arduino/
// Arduino Guide: https://RandomNerdTutorials.com/arduino-mpu-6050-accelerometer-gyroscope/
#include <Adafruit_MPU6050.h>
#include <Adafruit_Sensor.h>
#include <Wire.h>
Adafruit_MPU6050 mpu;
//
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 25, 2024 05:29
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@madkoding
madkoding / playstore-in-chromeos-flex-ESP.md
Last active April 25, 2024 05:29
Obtener PlayStore en ChromeOS Flex

Obtener PlayStore en ChromeOS Flex

Requisitos Básicos

  • Computadora basada en x86_64 con soporte de arranque UEFI.
  • Privilegios administrativos en el dispositivo.
  • Un entendimiento básico del terminal de Linux.

Compatibilidad de CPU

  • CPUs Intel desde Haswell (4ta Gen) / CPUs Celeron desde Braswell.
  • AMD Ryzen.
@jorisvervuurt
jorisvervuurt / opnsense-i226-nic-tunables.txt
Last active April 25, 2024 05:27
OPNsense - Intel i226 NIC tunables
<item>
<tunable>net.inet.icmp.drop_redirect</tunable>
<value>1</value>
<descr/>
</item>
<item>
<tunable>net.isr.bindthreads</tunable>
<value>1</value>
<descr/>
</item>
@koorukuroo
koorukuroo / news_rss.py
Last active April 25, 2024 05:27
Korean News RSS URLs
### 출처
# http://blog.opid.kr/427
# 400, 403, 404 에러가 없는 url만 간추림
### 언론사 리스트
# 중앙일보 | 구글뉴스 | 에이빙뉴스 | 중부매일 | 에버뉴스 |
# 경향닷컴 | 데이터넷 | 세계일보 | 뉴스위드 | 뉴스포스트 |
# 르몽드 디플로마티크 | 컨슈머타임스 | MBC | 한국아이닷컴 | 노컷뉴스 |
# K모바일 | 탑라이더 | 한국경제 | 동아닷컴 | 엑스포저널 |
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Created June 18, 2021 03:56 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@leodevbro
leodevbro / gmail-stats.gs
Last active April 25, 2024 05:21
In Gmail inbox, Find sender with most mail threads
// Original script: https://gist.github.com/leodevbro/2987e8874a18b2086ea6cc1aa3c494e8
// v2.5
// Google Apps Script is a coding language based on JavaScript.
// This Apps Script code helps us to sort addresses by most threads.
// A thread is a group of messages, as a conversation.
const modes = {
inbox: "inbox", // to analyze threads in the "Inbox" folder
outbox: "outbox", // to analyze threads in the "Sent" folder
@OrionReed
OrionReed / dom3d.js
Last active April 25, 2024 05:20
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯