Skip to content

Instantly share code, notes, and snippets.

View mishazawa's full-sized avatar
🎩
because white is boring

mishazawa

🎩
because white is boring
View GitHub Profile
@brayevalerien
brayevalerien / monokai.md
Last active October 16, 2024 11:45
Monokai theme color codes

Monokai theme color codes

Intro

This document lists the colors used in the Monokai Pro theme with the Classic filter. Please check the Monokai Pro website for more informations.

Colors

Monokai Pro with Classic filter colors:

Preview Hexadecimal RGB
Activity Bar Background activity bar background preview #272822 (39, 40, 34)
Activity Bar Foreground activity bar foreground preview #f8f8f2 (248, 248, 242)
@mraleson
mraleson / fernet.js
Last active March 14, 2024 16:24
Untested Javascript Fernet Decrypt
const crypto = require('crypto');
function base64UrlDecode(value) {
const translated = value.replace(/-/g, '+').replace(/_/g, '/');
const padding = translated.length % 4;
const padded = translated + '='.repeat(padding);
return Buffer.from(padded, 'base64');
}
function decrypt(secret, token, ttl) {
@Igneous01
Igneous01 / factorio_headless_aws_guide.md
Last active November 10, 2024 03:22 — forked from othyn/factorio_headless_guide.md
How to setup a Factorio Headless Server

[LINUX] Factorio Headless Server Guide for AWS EC2

So, with credit to the Factorio wiki and cbednarski's helpful gist, I have been able to successfully setup a Factorio headless server on AWS EC2 using the Amazon Linux 2 AMI (HVM), SSD Volume Type AMI.

This guide was done using the Amazon Linux 2 AMI image for EC2, and Factorio 1.19.0. However it is possible for this guide to also work on other linux AMI images.

Prerequisites

  • AWS Account
  • Licensed copy of factorio
  • That's it!
@roaldnefs
roaldnefs / mac-docker-gui.txt
Created December 22, 2019 10:27
Running GUI application in Docker on MacOS
# Install XQuartz
brew cask install xquartz
# Restart MacOS
# Open XQuartz
open -a XQuartz
# Ensure the "Allow connections from network clients" option in Preferences >> Security is turned on
using System;
using System.IO;
using System.Runtime.CompilerServices;
using UnityEditor;
using UnityEngine;
using UnityEngine.Events;
/// <summary>
/// Hierarchy Window Group Header
/// http://diegogiacomelli.com.br/unitytips-changing-the-style-of-the-hierarchy-window-group-header/
@sundowndev
sundowndev / GoogleDorking.md
Last active November 18, 2024 18:27
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@r-malon
r-malon / monokai.md
Created February 27, 2019 19:15
Monokai colors in RGB and HEX format, taken from Sublime Text 3

Monokai Colors in RGB and HEX format


  • Background: (46, 46, 46); #2e2e2e
  • Comments: (121, 121, 121); #797979
  • White: (214, 214, 214); #d6d6d6
  • Yellow: (229, 181, 103); #e5b567
  • Green: (180, 210, 115); #b4d273
  • Orange: (232, 125, 62); #e87d3e
  • Purple: (158, 134, 200); #9e86c8
@jackrusher
jackrusher / drei.cljs
Created January 30, 2019 13:35
Trying out the three.js + shadow-cljs workflow in clojurescript.
(ns drei
(:require [goog.object :as gobj]
["three" :as three]
["three-orbitcontrols" :refer (OrbitControls)]
["bezier-easing" :as BezierEasing]))
(defonce renderer
(let [rndr (three/WebGLRenderer. (js-obj "antialias" true))]
(.setPixelRatio rndr (.-devicePixelRatio js/window))
(.setSize rndr
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@mishazawa
mishazawa / settings.json
Last active October 24, 2022 22:43
sublime settings
{
"vintage_start_in_command_mode": true,
"rulers": [120, 100, 80],
"tab_size": 2,
"translate_tabs_to_spaces": true,
"highlight_line": true,
"caret_style": "blink",
"caret_extra_width": 0,
"match_brackets_angle": true,
"draw_white_space": "all",