Skip to content

Instantly share code, notes, and snippets.

View bberak's full-sized avatar

Boris Berak bberak

  • Sydney, Australia
View GitHub Profile
@MrSmoke
MrSmoke / pant_code.ino
Created February 2, 2023 10:33
Pant code
#define WAIST 2
#define LEFT_LEG 3
#define RIGHT_LEG 4
#define LEFT_SHOE 5
#define RIGHT_SHOE 6
#define W WAIST
#define LL LEFT_LEG
#define RL RIGHT_LEG
#define LS LEFT_SHOE
@sindresorhus
sindresorhus / esm-package.md
Last active November 16, 2024 22:43
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@nicolasdao
nicolasdao / typescript_guide.md
Last active May 2, 2024 02:15
Typescript guide. Keywords: typescript type script ts

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@nicolasdao
nicolasdao / jekyll_guide.md
Last active February 17, 2022 04:44
Jekyll guide. Keywords: jekyll jekyl ruby liquid
@nicolasdao
nicolasdao / css_guide.md
Last active January 24, 2024 02:52
CSS How to. Keywords: css scss animation css-in-js cssinjs emotion styledcomponents styled-components lin linaria font google googlefont fonts

CSS GUIDE

Usefull links

WARNING: Safari is the new IE. If there is a cool feature in CSS, keep your excitement down as Safari probably don't support it yet. Unfortunatelly, this useless piece of shit browser is used a lot thanks to our little friend the iPhone. Safari is a big piece of junk, so please refer to the The million things Safari does not want you to do in CSS section, so that you can find work arounds.

Table of contents

@nicolasdao
nicolasdao / managing_company_australia.md
Last active October 1, 2023 10:41
Managing a company in Australia. Keywords: company setup incorporate mygov tax taxes business asic ato insurance insurances compa

MANAGING A COMPANY IN AUSTRALIA

Though the Governement's efforts to help Australians to manage their businesses and companies online is noble, they pathetically fail at making those tasks easy (though I'm sure it is better than achieving this in Ouzbekistan). To this day (mid-2020) getting things done online with the ATO or ASIC is as easy as navigating the dark web for illegal services. This document is an attempt to shed some light on this age of darkness.

@sebjai
sebjai / PriceLimitSim.ipynb
Last active November 1, 2024 13:54
Algo Trading Book Price Limiter (Chapter 7.2 of of Algorithmic and High-Frequency Trading by Cartea, Jaimungal, Penalva, published by Cambridge University Press)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Farious
Farious / rollback_aab.sh
Last active June 13, 2024 07:39
Script that will use the provided Android App Bundle (.aab) and change its version code and version name to the provided values, avoiding re-building the whole .aab. This enables us to re-submit a previously submited aab to the play store, doing a rollback to the given version.
#!/bin/sh
#
# Script that will use the provided Android App Bundle (.aab) and change its version code and version name to the provided values, avoiding re-building the whole .aab.
# Run this script with: sh rollback.sh your_project.aab android_signing_key.key key_alias key_pwd version_code version_name
#
# Necessary setup:
#
# jarsigner - This binary should exist in the path
#
# Configuration.proto and Resources.proto can be found in aapt2's github
@oleavr
oleavr / QuakeRESTAPIDemo.md
Last active July 6, 2021 19:04
Quake REST API demo

Build

npm install

Run

$ frida QuakeSpasm --enable-jit -l _agent.js
$ curl -s http://localhost:1337/stats | jq
$ curl -s -X POST http://localhost:1337/attack | jq