Skip to content

Instantly share code, notes, and snippets.

View Tenrys's full-sized avatar

Bell Tenrys

View GitHub Profile
@IlyaShastin
IlyaShastin / 3DPaintablePanel.lua
Last active December 16, 2020 06:36
Paint 2D in 3D on 2D screen!
if SERVER then return end
vgui.Paint3D = {} -- Table in global vgui table to hold our stuff
vgui.Paint3D.Panels = {} -- Table containing panels to be 3D painted
vgui.Paint3D.Movement = {} -- Table containing panels to be affected by movement
vgui.Paint3D.Cache = {}
--
-- Grab a few important variables for view calc and save them in the global vgui table.
@saitho
saitho / app.ts
Created November 2, 2017 21:11
Node.js Steamstore - Redeem key example
const SteamUser = require('steam-user');
const SteamTotp = require('steam-totp');
const SteamStore = require('steamstore');
const client = new SteamUser();
const steamstore = new SteamStore();
client.logOn({
"accountName": "###username###",
"password": "###password###",
@NanoAi
NanoAi / blargh.lua
Last active March 26, 2018 06:45
rrrrrrrrrreeeeeeeeeeeeee
local TOOL = _G.TOOL -- Luadev makes this need to be _G.TOOL otherwise I'd use TOOL.
local liveLoad = false
local gmodTool = {}
if not TOOL then -- If the TOOL variable is not found settup a new variable.
gmodTool = weapons.Get("gmod_tool")
TOOL = getmetatable(gmodTool.Tool.weld):Create()
TOOL.Mode = "mapdefine"
liveLoad = true -- If the TOOL variable does not exist that means we are live loading.
end
using UnityEngine;
using System;
public class ScreenshotCamera
{
static Vector3 FocusPoint;
static float Aperture = 20.0f;
RealTimeSince timeSinceMessage;
string MessageText;
@twilight-sparkle-irl
twilight-sparkle-irl / rtpin.js
Last active March 30, 2025 18:51
pin retweets on twitter ----> ----> !! YOU NEED TO BE ON THE OLD LAYOUT, GET GoodTwitter !! <---- <----
$(document).ajaxComplete((e, x, o) => {
if (o.url == "https://api.twitter.com/1.1/statuses/retweet.json") {
tweet_id = JSON.parse(x.responseText)['id_str'];
auth_token = JSON.parse(document.querySelector('#init-data').value)['formAuthenticityToken'];
fetch("https://twitter.com/i/tweet/pin", {
body: `authenticity_token=${auth_token}&id=${tweet_id}`,
method: "POST",
headers: {
Accept: "application/json, text/javascript, */*; q=0.01",
"Cache-Control": "no-cache",
@jackfiallos
jackfiallos / Readme.md
Last active July 30, 2024 14:20
Import SSL Comodo cert to AWS Certificate Manager

Install your Comodo Certificates to Amazon AWS

Comodo, the leading Internet Security Provider offers Free Antivirus, SSL Certificate and other Internet Security related products with complete protection. In this post I will walk you through the setup of SSL in Amazon CloudFront (the process is common to all Amazon services)

AWS need that all your certificates are in PEM format. They are two main of encoding certificate:

DER: is a binary encoding of a certificate. Typically these use the file extension of .crt or .cert.

PEM: is a Base64 encoding of a certificate represented in ASCII therefore it is readable as a block of text. This is very useful as you can open it in a text editor work with the data more easily. Comodo certificate are delivered in DER format .crt, so we need to convert them to PEM.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace Facepunch
{
public class VirtualScroll : MonoBehaviour
{
@11philip22
11philip22 / app.js
Last active April 17, 2025 06:35
Crack Monokai pro theme for Visual Studio Code or VSCodium
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("path"),require("child_process"),require("os"),require("fs")):"function"==typeof define&&define.amd?define(["path","child_process","os","fs"],t):"object"==typeof exports?exports["app"]=t(require("path"),require("child_process"),require("os"),require("fs")):e["app"]=t(e["path"],e["child_process"],e["os"],e["fs"])}(this,function(e,t,s,i){return(e=>{function t(i){if(s[i])return s[i].exports;var r=s[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var s={};return t.m=e,t.c=s,t.d=((e,s,i)=>{t.o(e,s)||Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:i})}),t.n=(e=>{var s=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(s,"a",s),s}),t.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t)),t.p="",t(t.s=1)})([(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={APP:{NAME:"MonokaiPro-VSCode",
THEMES:["Monokai Pro","Monokai Pro (F
@IanColdwater
IanColdwater / twittermute.txt
Last active April 14, 2025 16:31
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
--[[---------------------------------------------------------
Promise object definition
-----------------------------------------------------------]]
local PENDING = 0
local RESOLVED = 1
local REJECTED = -1
local Promise = {}
Promise.__index = Promise
function Promise:_New(callback)