Skip to content

Instantly share code, notes, and snippets.

@lizthegrey
lizthegrey / attributes.rb
Last active June 1, 2023 20:05
Hardening SSH with 2fa
View attributes.rb
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
View regex-weburl.js
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@quchen
quchen / trolling_haskell
Last active March 17, 2023 06:41
Trolling #haskell
View trolling_haskell
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF
| FUCKIN PUSSIES
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS
13:16 <luite> | hello
13:16 <ChongLi> | somebody has a mental illness!
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel
| compelled to write Node.js!
13:16 <genisage> | hi
13:16 <luite> | you might be pleased to learn that you can compile
| haskell to javascript now
@munificent
munificent / gist:9749671
Last active June 23, 2022 04:04
You appear to be creating a new IDE...
View gist:9749671
You appear to be advocating a new:
[ ] cloud-hosted [ ] locally installable [ ] web-based [ ] browser-based [ ] language-agnostic
[ ] language-specific IDE. Your IDE will not succeed. Here is why it will not succeed.
You appear to believe that:
[ ] Syntax highlighting is what makes programming difficult
[ ] Garbage collection is free
[ ] Computers have infinite memory
[ ] Nobody really needs:
@riking
riking / Particle Descriptions
Last active July 22, 2018 20:22
Remember to include ANIMATIONS in the Appearance field! Example pictures (do not demonstrate pitfalls): http://imgur.com/a/73nwQ#20
View Particle Descriptions
Parameters:
Count: This is literal. The count parameter specifies how many particles to spawn at once
with these exact same parameters.
Spread: The starting position of each particle is a normal number with mean of the Location
and standard deviation of the Spread, e.g. (Norm(Loc.X, Spread.X), Norm(Loc.Y,
Spread.Y), Norm(Loc.Z, Spread.Z)). This means that 68% of the particles will be
within the bounding box of +/- 1*Spread, 95% will be within +/- 2*Spread, and 99.7%
will be within +/- 3*Spread for each coordinate.
Speed: The effect of this is determined by each particle.
View gist:9956023

OpenCart Issue #1286

This is the full version of the thread for opencart#1286, archived from notification emails.
The discussion has since been deleted almost entirely by OpenCart's developer.
Everyone who posted in it has also been blocked from the OpenCart repo.


Damian Bushong

@nijikokun
nijikokun / about.md
Last active June 2, 2016 20:22
A small, basic, generic game framework / game with no potential being made for fun using weird javascript techniques. Also, I made my own commenting style based on KSS.
View about.md

GOD.js

Game oriented development framework.

Usage

var entity = god.entity({
  name: "Nijikokun"
}).implement("health").implement("movement");
View Trolling attempt.irclog
* sigraptr (Mibbit@168.28.136.35) has joined #mcmmo
<sigraptr> Why hello there
<Riking> HELLO
<sigraptr> I'm here to share a little info that I have about minecraft.
<sigraptr> Ok, so how, in Minecraft, note that all of the planets are square.
<Riking> this is the mcmmo support channel
* Agge (~Agge@83-177-100-69.cust.tele2.se) has joined #mcmmo
<sigraptr> However, in real life, planets cannot be square as the azimuth, the angle formed betwixt two lines, has to be spherical
<sigraptr> You can find the formula for this by the form, slope 1 times slope 2
<Riking> what planets
@riking
riking / AetherCraftClaimChecker.java
Last active December 14, 2015 08:59
Extensible version of Factions' Player.canClaimForFactionAtLocation(Faction forFaction, Location location, boolean notifyFailure). More work will need to be done to make this usable, like sending the message from the ClaimResult, keeping a modifiable global instance of a IFClaimChecker. Even per-player claim checkers would be possible.
View AetherCraftClaimChecker.java
package com.aethercraft.factions;
import org.bukkit.Location;
import com.massivecraft.factions.FLocation;
import com.massivecraft.factions.Faction;
import com.massivecraft.factions.claims.DefaultClaimChecker;
public class AetherCraftClaimChecker extends DefaultClaimChecker
{
anonymous
anonymous / gist:2572330
Created May 1, 2012 23:25
View gist:2572330
Instance started with command: C:\Program Files\Java\jre6\bin\java.exe -Xmx1024m -Xms512m -cp "C:\Users\games\Desktop\minecraft\multimc" MultiMCLauncher "C:\Users\games\Desktop\minecraft\multimc\instances\Vanilla\.minecraft" "thedanieldude" -2457133257678593272
Loading jars...
Loading URL: file:/C:/Users/games/Desktop/minecraft/multimc/instances/Vanilla/.minecraft/bin/minecraft.jar
Loading URL: file:/C:/Users/games/Desktop/minecraft/multimc/instances/Vanilla/.minecraft/bin/lwjgl.jar
Loading URL: file:/C:/Users/games/Desktop/minecraft/multimc/instances/Vanilla/.minecraft/bin/lwjgl_util.jar
Loading URL: file:/C:/Users/games/Desktop/minecraft/multimc/instances/Vanilla/.minecraft/bin/jinput.jar
Loading natives...
Fixed Minecraft Path: Field was private static java.io.File net.minecraft.client.Minecraft.aj
MCDIR: C:\Users\games\Desktop\minecraft\multimc\instances\Vanilla\.minecraft
27 achievements