Skip to content

Instantly share code, notes, and snippets.

╭─jaen@yuuki /mnt/media/steam-library/SteamApps/common/Natural Selection 2 ‹2.0.0-p247›
╰─$ LOCALE=en_US.UTF-8 ~/.steam/bin32/steam-runtime/run.sh primusrun ./ns2_linux32
GetInstanceCount currently unimplemented
Build 261
Linux
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Reflections reflections = new Reflections("pl.edu.polsl.labjava");
commandMap = new TreeMap<String, Class<? extends Command>>();
Set<Class<? extends Command>> commandClasses = reflections.getSubTypesOf(Command.class);
commandClasses.stream()
.map((Function<Class<? extends Command>, KeyValue<String, Class<? extends Command>>>) (commandClass -> {
String commandName;
try {
@jaen
jaen / gist:8860336
Created February 7, 2014 10:28
I dare you to change { } to do ... end. I double dare you, even.
private def sanitise_recursively(params)
params.map { |key, value|
safe_value = case value
when Hash; Hash[sanitise_recursively(value)]
when Array; sanitise_recursively(value)
when String; @sanitiser.call(value)
else value
end
[ key, safe_value ]
Index: hash.c
===================================================================
--- hash.c (revision 44369)
+++ hash.c (revision 44370)
@@ -1169,7 +1169,7 @@
#endif
}
}
-#if HASH_REJECT_COPY_MISC_ATTRIBUTES
+#if HASH_REJECT_COPY_EXTRA_STATES
Index: hash.c
===================================================================
--- hash.c (revision 44369)
+++ hash.c (revision 44370)
@@ -1169,7 +1169,7 @@
#endif
}
}
-#if HASH_REJECT_COPY_MISC_ATTRIBUTES
+#if HASH_REJECT_COPY_EXTRA_STATES
install_package "yaml-0.1.6" "http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz#5fe00cda18ca5daeb43762b80c38e06e" --if needs_yaml
install_package "openssl-1.0.1g" "https://www.openssl.org/source/openssl-1.0.1g.tar.gz#de62b43dfcd858e66a74bee1c834e959" mac_openssl --if has_broken_mac_openssl
install_git "ruby-2.1.0-github" "https://github.com/github/ruby.git" "2.1" ldflags_dirs autoconf standard verify_openssl
@jaen
jaen / ruby-2.1.0-github
Created April 24, 2014 08:22
ruby-2.1.0-github
install_package "yaml-0.1.6" "http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz#5fe00cda18ca5daeb43762b80c38e06e" --if needs_yaml
install_package "openssl-1.0.1g" "https://www.openssl.org/source/openssl-1.0.1g.tar.gz#de62b43dfcd858e66a74bee1c834e959" mac_openssl --if has_broken_mac_openssl
install_git "ruby-2.1.0-github" "https://github.com/github/ruby.git" "2.1" ldflags_dirs autoconf standard verify_openssl
#!/bin/sh
WPS_LED="/sys/devices/platform/leds-gpio/leds/netgear:green:wps/trigger"
if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
logger "WPS button pressed, looking for active radios"
for dir in /var/run/hostapd*; do
[ -d "$dir" ] || continue
hostapd_cli -p "$dir" wps_pbc && \
echo "timer" > $WPS_LED
done
while true ; do
void Draw (void)
{
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear Screen And Depth Buffer
glLoadIdentity (); // Reset The Modelview Matrix
// Get FPS
if( GetTickCount() - g_dwLastFPS >= 1000 ) // When A Second Has Passed...
{
g_dwLastFPS = GetTickCount(); // Update Our Time Variable
g_nFPS = g_nFrames; // Save The FPS
╭─jaen@himitsu ~/projects/mediApp ‹2.2.0› ‹master*›
╰─$ grails run-app
| Running Grails application
Configuring Spring Security Core ...
... finished configuring Spring Security Core
Configuring Spring Security REST ...
... finished configuring Spring Security REST
2015-04-13 09:16 -- ERROR-org.hibernate.tool.hbm2ddl.SchemaExport:HHH000389: Unsuccessful: alter table device drop constraint FK_pcy81225bwhco6jbog85ysx0k
2015-04-13 09:16 -- ERROR-org.hibernate.tool.hbm2ddl.SchemaExport:ERROR: relation "device" does not exist
2015-04-13 09:16 -- ERROR-org.hibernate.tool.hbm2ddl.SchemaExport:HHH000389: Unsuccessful: alter table employee_specialization drop constraint FK_a837a22vdkyxqih1o0y5dv954