Skip to content

Instantly share code, notes, and snippets.

View ofarukcaki's full-sized avatar

of ofarukcaki

View GitHub Profile
@ofarukcaki
ofarukcaki / age of empires 3 commands
Created August 22, 2020 20:10
Here you can find (all of?) the commands used in Age of Empires III. I've taken them out of the exe and reorganized them because it was a complete mess (still is). I'd suggest you to search (ctrl+f) instead of browse through them. Anyway, they might be usefull when editing UIs, triggers etc. But most of them are useless for that I think, I don't…
- by Argalius; ordered alphabetically by daoo,
Created: 5th June 2006
Last Edited: 3rd July 2006
Here you can find (all of?) the commands used in Age of Empires III. I've taken them out of the exe and reorganized them because it was a complete mess (still is). I'd suggest you to search (ctrl+f) instead of browse through them. Anyway, they might be usefull when editing UIs, triggers etc. But most of them are useless for that I think, I don't really know exactly to be honest with you, do with it what you want.
ability( int abilityId, int unitID ) : Explorer Abilities use
addAttachment(fromBoneName, toBoneName, protoUnitName)
addImperialArmyUnit( int playerID, long puid ) : Adds an IA Unit
@ofarukcaki
ofarukcaki / default.md
Last active November 29, 2023 12:00
create-react-app with react-router Nginx 404 error solution in page refresh

You need to edit /etc/nginx/sites/available/default file

change the location part as follows

location / { try_files $uri $uri/ /index.html; }

lastly, refresh the Nginx with sudo servuce restart nginx

const puppeteer = require("puppeteer");
(async () => {
const browser = await puppeteer.launch({
headless: false,
defaultViewport: false
});
const page = (await browser.pages())[0];
// imaginary page with a captcha on it
await page.goto(
@ofarukcaki
ofarukcaki / DumpChromePasswords.ps1
Created April 17, 2022 20:01 — forked from K-Mistele/DumpChromePasswords.ps1
@0gtweet's DumpChromePasswords.ps1
$sqlitedll = ".\System.Data.SQLite.dll"
if (!(Test-Path -Path $sqlitedll))
{
Write-Host "Grab your copy of System.Data.SQLite.dll. " -ForegroundColor Yellow
Write-Host "Most likely from https://system.data.sqlite.org/downloads/1.0.113.0/sqlite-netFx40-static-binary-bundle-x64-2010-1.0.113.0.zip" -ForegroundColor Yellow
Write-Host "Your bitness is:" (8*[IntPtr]::Size) -ForegroundColor Yellow
Write-Host "Your .Net version is:" $PSVersionTable.CLRVersion -ForegroundColor Yellow
Write-Host 'No installation needed. Just unzip and update the $sqlitedll variable above.' -ForegroundColor Yellow
return
const puppeteer = require('puppeteer');
// PROXY and PORT
const proxy = 'zproxy.lum-superproxy.io';
const port = 22225;
// USER and PASS
let proxyUsername = 'username';
const proxyPassword = 'password';
@ofarukcaki
ofarukcaki / ffmpeg.sh
Created March 31, 2020 19:17
medium-ffmpeg
ffmpeg.exe -framerate 1 -f image2pipe -i - output.mp4

Keybase proof

I hereby claim:

  • I am ofarukcaki on github.
  • I am ofarukcaki (https://keybase.io/ofarukcaki) on keybase.
  • I have a public key ASAn0XqOvhlUKBynDCTdY7c5D9fIuZl6h5mZlwlQ73WDiwo

To claim this, I am signing this object:

const puppeteer = require("puppeteer");
const captcha = require("async-captcha");
const anticaptcha = new captcha("YOUR_API_KEY", 2, 10); // (api_key, interval(seconds), retry(amount))
(async () => {
const browser = await puppeteer.launch({
headless: false,
defaultViewport: false
});
const page = (await browser.pages())[0];
@ofarukcaki
ofarukcaki / client.js
Created March 23, 2019 00:14 — forked from crtr0/client.js
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});