One script, two purposes.
- Run
python2 talkwithme.py - Press 1 then hit enter
- Enter your private ip address (it will be printed out)
- Enter any port number (that is not in use)
- Enter the clients ip address
- Enter the clients port number
| // https://www.instagram.com/USER | |
| const observer = new MutationObserver((mutations) => window.scrollTo(0, document.body.scrollHeight)); | |
| const profileNode = document.querySelector('main'); | |
| if (profileNode) { | |
| observer.observe(profileNode, { childList: true, subtree: true }); | |
| window.scrollTo(0, document.body.scrollHeight); | |
| } |
| # frozen_string_literal: true | |
| source 'https://rubygems.org' | |
| gem 'informers', '~> 1.2' | |
| gem 'pry', '~> 0.15.2', group: :development | |
| gem 'solargraph', '~> 0.55.2', group: :development |
| # frozen_string_literal: true | |
| require 'net/http' | |
| require 'uri' | |
| require 'json' | |
| require 'securerandom' | |
| MY_API_KEY = "..." | |
| BEARER = "..." | |
| BAGGAGE = "..." |
| arr = [1, 2, 3] | |
| # => [1, 2, 3] | |
| def power_set(arr) | |
| result = [[]] | |
| arr.each do |element| | |
| result += result.map do |num| | |
| num + [element] | |
| end |
| # frozen_string_literal: true | |
| # Put me in a folder where you want to bulk rename every folder | |
| # In this case, this script will rename every folder from "Photos from YEAR" to "YEAR" only | |
| # Run: ruby bulk_rename.rb | |
| folders = Dir.entries('.').reject { ['.', '..'].include? _1 } | |
| folders.each do |folder| | |
| File.rename(File.join(Dir.pwd, folder), File.join(Dir.pwd, folder.delete_prefix("Photos from "))) | |
| end |
| # frozen_string_literal: true | |
| # Put me in a folder where you want to get rid of all the subfolders | |
| # Run: ruby flatten.rb | |
| def move_and_delete(dir) | |
| puts "Cleaning \"#{dir}\"" | |
| Dir.foreach(dir) do |file| | |
| next if ['.', '..'].include?(file) |
| #include <math.h> | |
| typedef float f32; | |
| typedef struct Vector2 | |
| { | |
| f32 x, y; | |
| } Vector2; | |
| typedef SDL_FRect RectangleF; | |
| typedef struct Circle |
| typedef uint8_t u8; | |
| typedef uint16_t u16; | |
| typedef uint32_t u32; | |
| typedef uint64_t u64; | |
| typedef size_t umax; | |
| typedef int8_t s8; | |
| typedef int16_t s16; | |
| typedef int32_t s32; |
msys2 (because we need mingw64, gcc and libws2_32.a)msys2 or mingw64 and run pacman -S mingw64/mingw-w64-x86_64-mrubymake inside the folder mruby-3.3.0, there will be a new folder called /build after the compilation, we need the file at /build/host/lib/libmruby.agcc main.c -I"mruby-3.3.0/include" "mruby-3.3.0/build/host/lib/libmruby.a" "C:\msys64\mingw64\lib\libws2_32.a" -lm -o main or substitue "C:\msys64\mingw64\lib\libws2_32.a" with -lws2_32main.exe