This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# James W. Barnett | |
# Takes snapshots of each snapper configuration. It then sends the snapshot to | |
# a location on an external drive. After the initial transfer, it does | |
# incremental snapshots on later calls. It's important not to delete the | |
# snapshot created on your system since that will be used to determine the | |
# difference for the next incremental snapshot. | |
# Can set the backup directory here, or in the snapper configuration file with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from xmlrpclib import ServerProxy | |
proxy = ServerProxy('http://api.springfiles.com/xmlrpc.php') | |
searchstring = { | |
"category" : "engine_linux64", | |
"limit": 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL2/SDL.h> | |
#include <stdio.h> | |
#undef main | |
static bool process_events( void ) | |
{ | |
/* Our SDL event placeholder. */ | |
SDL_Event event; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function widget:GetInfo() | |
return { | |
name = "LAG INFO", | |
desc = "abcdef", | |
author = "abcdef", | |
date = "abcdef", | |
license = "abcdef", | |
layer = 0, | |
enabled = true, -- loaded by default? | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net.NetworkInformation; | |
namespace LobbyClient { | |
using System; | |
public class Crc32 { | |
static uint[] table; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* signaltest.c | |
* | |
* Tests a simple idea for suspending a thread and inspecting its stack using posix thread signals (pthread_kill()). | |
* | |
* 1. Create a simple worker thread that does some (lengthy) work and run it. | |
* 2. Pause the main thread for a while so that we can be fairly certain that the worker's signal handler is installed and it is running. | |
* 3. In the main thread, lock a mutex that the worker will wait on inside its signal handler. | |
* 4. Send SIGUSR1 from the main thread to the worker. The worker's handler tries to lock the mutex. At this point it is suspended. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function widget:GetInfo() | |
return { | |
name = "unitinfo", | |
desc = "prints unit info each frame, used for debugging", | |
author = "abma", | |
date = "Feb. 2012", | |
license = "GNU GPL, v2 or later", | |
layer = 0, | |
enabled = true, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/rts/Sim/Units/CommandAI/TransportCAI.cpp b/rts/Sim/Units/CommandAI/TransportCAI.cpp | |
index 3ac2f5d..cb0db19 100644 | |
--- a/rts/Sim/Units/CommandAI/TransportCAI.cpp | |
+++ b/rts/Sim/Units/CommandAI/TransportCAI.cpp | |
@@ -230,6 +230,7 @@ void CTransportCAI::ExecuteLoadUnits(Command& c) | |
StopMove(); | |
owner->script->TransportPickup(unit); | |
+ StopTransportee(*unit); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
include('../../springpw.php'); | |
mysql_connect($spring_dbhost, $spring_dbuser, $spring_dbpass); | |
mysql_select_db($spring_dbname); | |
$res = mysql_query("SELECT f.id, filename, filesize, p.file_path | |
FROM mantis_bug_file_table f | |
LEFT JOIN mantis_bug_table b ON f.bug_id = b.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function widget:GetInfo() | |
return { | |
name = "ATI pointsize Fail", | |
desc = "ATI pointsize Fail", | |
author = "Masure", | |
date = "2010 Sept 14", | |
license = "GNU GPL, v2 or later", | |
layer = 1, -- after the normal widgets | |
enabled = false -- loaded by default? | |
} |
NewerOlder