Skip to content

Instantly share code, notes, and snippets.

@4aiman
4aiman / readme.md
Created May 2, 2024 09:58
4aiman's card

@4aiman
4aiman / appointment.ts
Created July 26, 2022 09:48 — forked from gautamsi/appointment.ts
Fetch Appointments using ews-javascript-api
import { ExchangeService, ExchangeVersion, WebCredentials, Uri, DateTime, CalendarView, WellKnownFolderName, EwsLogging } from "ews-javascript-api";
import credentials = require("./credentials"); //for username and password
EwsLogging.DebugLogEnabled = false;
var service = new ExchangeService(ExchangeVersion.Exchange2010);
service.Credentials = new WebCredentials(credentials.userName, credentials.password);
service.Url = new Uri("https://outlook.office365.com/Ews/Exchange.asmx");
var view = new CalendarView(DateTime.Now.Add(-1, "week"), DateTime.Now); // appointments in last one week.
@4aiman
4aiman / death.lua
Created March 30, 2022 14:29
OBS death counter
obs = obslua
source_name = ""
death = 0
hotkey_id = obs.OBS_INVALID_HOTKEY_ID
-- Function to set the time text
function set_text()
local source = obs.obs_get_source_by_name(source_name)
if source ~= nil then
local settings = obs.obs_data_create()
@4aiman
4aiman / index.html
Created December 30, 2019 22:29
Vertical Text Slider
<div class="container">
<h1>Find. Connect. Do.</h1>
<h2>Find and do a physical activity with someone in your area.</h2>
<div class="slider">
<h3>Take a leisurely jog in the park…together</h3>
<h3>Try a spin class...together</h3>
<h3>Take a bike ride around the city...together</h3>
<h3>Go for an indoor tennis practice...together</h3>
</div>
</div>
@4aiman
4aiman / debloatNox.md
Created May 24, 2019 14:51 — forked from Log1x/debloatNox.md
Debloating & Optimizing Nox

Debloating Nox

Nox, despite being the most feature-filled Android emulator, has a lot of negativity surrounding it due to their antics when it comes to making income off of their program. It is known for running repeated advertisments in the background, calling home and passing along system information (outside of your Android instance) as well as a vast amount of potentially sensitive data in an encrypted payload back to their multitude of servers. With the following preventitive measures, we can stop a majority of this happening as well as greatly improve the overall performance.

  1. Download and Install a fresh copy of Nox. The latest version is fine (for now). If you already have it installed, that is fine too. No need to reinstall.

  2. Enable Root Mode on Nox by clicking the gear icon and then checking the Root Startup box.

  3. Install a new Launcher from the Play Store. ANYTHING but Nox's default. I suggest [Nova Launcher](https://play.google.com/s

@4aiman
4aiman / distance.lua
Created February 28, 2019 13:47 — forked from AngeloYazar/distance.lua
distance in lua
function distance( x1, y1, x2, y2 )
return math.sqrt( (x2-x1)^2 + (y2-y1)^2 )
end
@4aiman
4aiman / gamelist.md
Last active October 10, 2018 18:57
Gamelist

GOG

  • A.D. 2044
  • Akalabeth: World of Doom
  • Arcanum: Of Steamworks and Magick Obscura
  • Armikrog
  • Bio Menace
  • Carmageddon TDR 2000
  • CAYNE
  • Deponia
@4aiman
4aiman / vot tak.py
Created October 7, 2018 12:58
Скрипт для вытягивания кол-ва фолловеров с твича
# -*- coding: utf-8 -*-
import requests
import time
def main():
header = {"Client-ID": "тут ID клиента"}
url = ("https://api.twitch.tv/kraken/channels/4aiman/follows")
response = requests.get(url, headers = header)
response_json = response.json()
@4aiman
4aiman / MovementSystem.lua
Created January 26, 2018 17:04 — forked from mtdowling/MovementSystem.lua
A slice of some of my collision rounding code
local ecs = require "ecs"
local collision = require "collision"
local components = require "components"
local utils = require "utils"
local clamp = lume.clamp
--- Updates entity physics.
local MovementSystem = ecs.createSystem("Movement", "pos", "motion")
@4aiman
4aiman / vaapi-ffmpeg-build.md
Created November 12, 2017 16:57
Building a VAAPI enabled FFmpeg for use bound to the !/bin prefix

Build FFmpeg and libva with decode and encode hardware acceleration on an Intel-based validation testbed:

Build platform: Ubuntu

Install baseline dependencies first

sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev