Skip to content

Instantly share code, notes, and snippets.

@tobek
tobek / get-image-urls.js
Last active January 1, 2025 17:25
Save images from chrome inspector/dev tools network tab
/* open up chrome dev tools (Menu > More tools > Developer tools)
* go to network tab, refresh the page, wait for images to load (on some sites you may have to scroll down to the images for them to start loading)
* right click/ctrl click on any entry in the network log, select Copy > Copy All as HAR
* open up JS console and enter: var har = [paste]
* (pasting could take a while if there's a lot of requests)
* paste the following JS code into the console
* copy the output, paste into a text file
* open up a terminal in same directory as text file, then: wget -i [that file]
*/
@midwire
midwire / find_duplicate_movies.rb
Last active January 1, 2025 17:24
[Ruby script to find duplicate movies] Edit as necessary for your own needs. #ruby #utils
#!/usr/bin/env ruby
# Find duplicate movies with possible different extensions
require 'fileutils'
require 'colored'
include FileUtils
module FindDuplicateMovies
@koleson
koleson / Future_Experiments.md
Last active January 1, 2025 17:24
PVS6 Notes

Past and Future Experiments

Ideas for profitable investigations and an index of experimental results. Free to a good home; will post results as they come in.

Past Experiments

MQTT reroute - MQTT_Reroute.md

Very fruitful - finally understood how the mySunPower app's SunVault mode changes are communicated to the PVS6, which performs the system control described by the modes, and found a potential method of changing the command and data acquisition server from one in the cloud to one that is locally controlled.

Future Experiments

@makidoll
makidoll / convert-glsl-to-hlsl.md
Last active January 1, 2025 17:20
Convert GLSL to HLSL with 100% precision!

Convert GLSL to HLSL with 100% precision!

Have you tried translating GLSL code to HLSL and for some reason it never works, even through you've gone through it line by line? For example with noise functions.

Then do this!

  • Save your shader to a file and add to the top:
    #version 460

precision mediump float;

@Klerith
Klerith / pasos-node-typescript.md
Last active January 1, 2025 00:00
Configurar proyecto de Node con TypeScript

Pasos para usar Node con TypeScript con Nodemon

Más información - Docs Oficiales

  1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo
npm i -D typescript @types/node
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
@goldsborough
goldsborough / install-gcc.sh
Last active January 1, 2025 17:14
Instructions for installing GCC >= 4.9 for PyTorch Extensions
# Instructions for installing GCC 4.9 on various platforms.
# The commands show instructions for GCC 4.9, but any higher version will also work!
# Ubuntu (https://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu/581497#581497)
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
@adinata-id
adinata-id / bwtest.txt
Last active January 1, 2025 17:13
Public Bandwith Test Mikrotik
New Bandwith test Publik (Datacenter JKT)
IP Address : 103.161.184.37
username : mid
password : midtest
@chirag-chhajed
chirag-chhajed / aab.md
Created June 15, 2024 15:56
Expo APK/AAB Building Tutorial (No EAS Required)

Here's the list with the additional points:

  1. Ensure that you have OpenJDK 17, Android Studio, and its associated tools and NDK (Native Development Kit) installed on your system.

  2. Initialize a new Expo project by executing the following command in your terminal: pnpm create expo-app@latest. This command will prompt you to provide some details about your project, such as the project name and configuration options.

  3. Before building the Android app, you need to prebuild the android directory. Run the command pnpm expo prebuild to generate the necessary files. Additionally, you should provide your app's package name during this step. For example, if your app's package name is com.example.app.

  4. Generate a keystore file. Use an administrator shell to create the keystore. Run the following command: keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000 and enter your password (store it safely somewhere) and details.

@CaptainVincent
CaptainVincent / README.md
Last active January 1, 2025 17:10
Improve your vscode quickinput-widget

Customize your quickinput-widget

This is a small tool designed to emulate the Sublime style Command Palette as follows.

Screenshot

It requires the use of a specific extension to load the js file from this gist.

I'm using the APC extension, and the usage is as follows.

@azu
azu / TypeScriptの設定の良し悪し.md
Last active January 1, 2025 17:03
TypeScriptの設定の良し悪し

tsconfig.json の設定についてのメモ書きです。

Node.jsのバージョンごとの設定

target は 変換後のコードのECMAScriptバージョンを指定する たとえば、Node.js 14はES2020をサポートしている。そのため、Node.js 14向けのコード(サーバなど)ならtarget: "ES2020"を指定することで、余計なTranspileが省かれててコードサイズや実行時間が最適化される。