Skip to content

Instantly share code, notes, and snippets.

@katalin2003
katalin2003 / azure-ad-connect.php
Created May 26, 2024 21:06 — forked from DragonBe/azure-ad-connect.php
A simple PoC to access Azure AD for authentication
<?php
declare(strict_types=1);
use League\OAuth2\Client\Provider\GenericProvider;
use Microsoft\Graph\Graph;
use Microsoft\Graph\Model;
const APP_SESS_ID = 'AZPHPSID';
const OAUTH_APP_ID = '';
*.*AES256
*.*cry
*.*crypto
*.*darkness
*.*enc*
*.*kb15
*.*kraken
*.*locked
*.*nochance
*.*oshit
@katalin2003
katalin2003 / clean.bat
Last active August 29, 2015 14:28 — forked from zalmyr/clean.bat
BATCH: Clean Windows 7 Temp Files
REM Created by Zalmy Rosenberg © 2015
start /wait taskkill /im iexplore.exe /t /f
start /wait taskkill /im firefox.exe /t /f
start /wait taskkill /im chrome.exe /t /f
set user=C:\Users
set dest2=AppData\Local\Microsoft\Windows\Temporary Internet Files
set ffPath=AppData\Local\Mozilla\Firefox\Profiles
@katalin2003
katalin2003 / DeltaTimer.js
Last active August 29, 2015 14:26
Delta Timing for JavaScript
/**
@author <a href="mailto:[email protected]">Aadit M Shah</a>
@overview Delta Timing for JavaScript.
@copyright 2012
@version 1.0.0
*/
/**
@description Creates a new Delta Timer with start and stop methods.
@constructor
@katalin2003
katalin2003 / Computers.comp
Created April 17, 2015 23:21
Generated by Rotary Heart's Light Controller - On the Alienware Area-51 ALX without an Alienware keyboard
[
{
"Key": "1304",
"Value": {
"productId": "1304",
"deviceName": "Alienware M18x R2",
"leds": [
{
"ledId": "1",
"ledDesc": "Keyboard Right"
@katalin2003
katalin2003 / base64-to-PNG.php
Last active August 29, 2015 14:16 — forked from fazlurr/canvas-upload.php
Save base64 image as PNG with PHP
<?php
// requires php5
define('UPLOAD_DIR', 'images/');
// $img = $_POST['img'];
$img = <<< EOFILE
iVBORw0KGgoAAAANSUhEUgAAAB8AAAAfCAYAAAAfrhY5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
bWFnZVJlYWR5ccllPAAAA2RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdp
bj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6
eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEz

This re-styles your sublime text sidebar to be dark, it fits default Monokai theme.

Monokai sidebar

Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.

Under Windows: %APPDATA%\Sublime Text 3\Packages\Theme - Default

Based on:

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Google Maps JavaScript API v3 Example: Geocoding Simple</title>
<link href="https://developers.google.com/maps/documentation/javascript/examples/default.css" rel="stylesheet">
<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<h1 class="text-center login-title">Sign in to continue to Bootsnipp</h1>
<div class="account-wall">
<img class="profile-img" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=120"
alt="">
<form class="form-signin">
<input type="text" class="form-control" placeholder="Email" required autofocus>
<input type="password" class="form-control" placeholder="Password" required>