Skip to content

Instantly share code, notes, and snippets.

@echo off
:start
:: Init settings
mode con: cols=122 lines=24
title Project Zomboid : Moodles Effects
chcp 65001 > nul
@ahmoin
ahmoin / aftman_knit_setup.sh
Last active July 29, 2024 20:51
use aftman to setup rojo, wally, lune, selene, stylua. create a boilerplate knit project after
git init
aftman init
aftman add rojo-rbx/rojo
aftman add upliftgames/wally
aftman add lune-org/lune
aftman add kampfkarren/selene
aftman add johnnymorganz/stylua
FOLDER_NAME=$(basename "$(pwd)")
/*
!! The feature that uses this endpoint has recently started rolling out to users.
!! See `App > Avatar > Profile Picture Editor`
!!
!! You may continue using this script, the only advantage is being able to
!! customize FullBody and Closeup independently.
*/
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*
@huscael
huscael / SimpleSocket.java
Last active December 15, 2022 11:10
[Java Socket] java socket demo #java #socket
class ServerDemo {
public void start() throws IOException{
ServerSocket ss = new ServerSocket(5678);
ss.bind(local);
while (true) {
Socket socket = ss.accept();
@fxchen
fxchen / zshrc
Created September 24, 2018 22:19
Default zshrc config
# ~/zshrc
# 1. Run Install.sh (https://gist.github.com/fxchen/9c5c950b6c9117930fa2aff804e7856b)
# 2. Modify the bottom environment variables. Add a link to this zshrc from the profile
# 3. Set iTerm word jump https://coderwall.com/p/h6yfda/use-and-to-jump-forwards-backwards-words-in-iterm-2-on-os-x 5
# 4. Configure oh-my-zsh .zshrc: plugins=(git sublime osx git-flow git-extras npm node theme web-search battery)
# Inspiration: http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/
####################################################################
# Shell aliases
@2624789
2624789 / enviar_correo_con_mensaje.py
Created November 21, 2015 19:59
Enviar por correo un objeto mensaje utilizando python
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
# Iniciamos los parámetros del script
remitente = 'rpi.mailer.1@gmail.com'
destinatario = 'destinatario@correo.com'
# Creamos el objeto mensaje
mensaje = MIMEMultipart()
@jrus
jrus / lua-uuid.lua
Created July 29, 2012 09:26
quick lua implementation of "random" UUID
local random = math.random
local function uuid()
local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'
return string.gsub(template, '[xy]', function (c)
local v = (c == 'x') and random(0, 0xf) or random(8, 0xb)
return string.format('%x', v)
end)
end