Skip to content

Instantly share code, notes, and snippets.

* QA Notice: Package triggers severe warnings which indicate that it
* may exhibit random runtime failures.
* globalincs/safe_strings.cpp:42:15: warning: converting to non-pointer type ‘char’ from NULL
* globalincs/safe_strings.cpp:49:14: warning: converting to non-pointer type ‘char’ from NULL
* globalincs/safe_strings.cpp:61:14: warning: converting to non-pointer type ‘char’ from NULL
* globalincs/safe_strings.cpp:78:15: warning: converting to non-pointer type ‘char’ from NULL
* globalincs/safe_strings.cpp:85:14: warning: converting to non-pointer type ‘char’ from NULL
* globalincs/safe_strings.cpp:101:14: warning: converting to non-pointer type ‘char’ from NULL
* globalincs/safe_strings.cpp:111:14: warning: converting to non-pointer type ‘char’ from NULL
@fira
fira / gist:3763672
Created September 21, 2012 20:18
Sample pam.d system-auth
auth required pam_env.so
auth required pam_unix.so try_first_pass likeauth nullok
auth optional pam_permit.so
account required pam_unix.so
account optional pam_permit.so
password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
password required pam_unix.so try_first_pass use_authtok nullok sha512 shadow
password optional pam_permit.so
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/lolcat/lolcat-42.0.99.ebuild,v 1.1 2012/09/24 18:51:47 hasufell Exp $
EAPI=4
USE_RUBY="ruby18"
RUBY_FAKEGEM_TASK_TEST=""
RUBY_FAKEGEM_TASK_DOC=""
Sectors overview:
- 1: Station
- 2: CentComm, Syndie, etc (Unreachable)
- 3: Tcomms
- 4: DJ, Derelict
- 5: Asteroid
- 6: ???
Escape: 192,132
Shuttle cockpit: 219,142
/*
author: fira <loyauflorian@gmail.com>
consider this under GPLv3, have fun modifying and resharing ^=^
feel free to remove the author line aswell */
/* Read important math notes down in calc code, and please bear with me, i didn't have time to implement rightmost GUI functions fully or make the source pretty */
<style>
td { text-align:center; }
@fira
fira / process_machines_power
Last active August 29, 2015 14:02
Flattened
datum/controller/game_controller/proc/process_machines_power()
for(var/area/A in active_areas)
/* Remove disabled areas that don't belong in here */
if(!A.apc.len || (A.master != A))
A.powerupdate = 0
active_areas.Remove(A)
else if(A.powerupdate--)
for(var/area/SubArea in A.related)
for(var/obj/machinery/M in SubArea)
@fira
fira / unrolled_process_machines_power
Created June 22, 2014 15:31
Unrolled Process_Machines_Power
datum/controller/game_controller/proc/process_machines_power()
var/i=1
while(i<=active_areas.len)
var/area/A = active_areas[i]
if(A.powerupdate && A.master == A)
A.powerupdate -= 1
for(var/area/SubArea in A.related)
for(var/obj/machinery/M in SubArea)
if(M)
[center]
[img]https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSVICQsSsjLsH294uVLo7wg8uDQXexCPjZxVotUJHOyepouRcXw[/img]
[/center]
[center][rr][size=30px][color=#375D81]Candidature aux Elections Présidentielles[/color][/size][/rr] [/center]
[justify]Bonjour à tous une fois de plus ! Vous vous en doutez sûrement, ce soir ont lieues les prochaines élections aux présidentielles de notre bien aimée République Française. Je suis fière d'aujourd'hui me présenter en nom de l'UCF pour prendre la suite de la présidence d'Aē∂∂āи.[/justify]
[center][img]https://minecraft.fr/wp-content/uploads/2018/01/Admin_Arabesque_2.png[/img][/center]
#!/usr/bin/env ruby
require 'eventmachine'
require 'websocket-eventmachine-client'
require 'json'
require 'uri'
require 'cgi'
require 'curses'
if (ARGV.length != 3)
#!/usr/bin/env ruby
require 'eventmachine'
require 'websocket-eventmachine-client'
require 'elasticsearch'
require 'json'
require 'uri'
require 'cgi'
class KeyboardHandler < EventMachine::Connection