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
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.riking.org; # change this lol | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl spdy; | |
listen [::]:443 ssl spdy; |
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
package main | |
var namesMap = map[string]string{"Hello": "World","foo":"bar"} | |
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
// u8 xer_so_ov; // format: (SO << 1) | OV | |
diff --git a/Source/Core/Core/PowerPC/PowerPC.h b/Source/Core/Core/PowerPC/PowerPC.h | |
index 69eb0da..071582d 100644 | |
--- a/Source/Core/Core/PowerPC/PowerPC.h | |
+++ b/Source/Core/Core/PowerPC/PowerPC.h | |
@@ -306,6 +306,20 @@ inline int GetXER_SO() | |
inline void SetXER_SO(int value) | |
{ |
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
package main | |
import ( | |
"fmt" | |
. "github.com/riking/sdlTest/tutorial8" | |
"github.com/veandco/go-sdl2/sdl" | |
) | |
func main() { | |
err := Initialize() |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<table border="1" style="border-collapse:collapse"> | |
<tr><th>#</th><th>post_id</th><th>topic_title</th><th>first_hit</th><th>hit_count</th><th>referring_user</th></tr> | |
<tr><td>1</td><td>7241</td><td>Is it better for Discourse to use JavaScript or CoffeeScript?</td><td>2014-03-31 14:23:18.060741</td><td>3471</td><td>eviltrout</td></tr> | |
<tr><td>2</td><td>28238</td><td>Difference between Reddit and Discourse</td><td>2013-09-12 05:01:20.511688</td><td>2700</td><td>codinghorror</td></tr> |
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
package main | |
import "fmt" | |
func generateStream() chan int { | |
ch := make(chan int) | |
go func() { | |
for i := 2; i < 1000000; i++ { | |
ch <- i |
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
$ systemd-analyze critical-chain | |
The time after the unit is active or started is printed after the "@" character. | |
The time the unit takes to start is printed after the "+" character. | |
graphical.target @23.816s | |
└─multi-user.target @23.816s | |
└─kerneloops.service @23.753s +63ms | |
└─network-online.target @23.751s | |
└─network.target @23.751s | |
└─NetworkManager.service @11.995s +4.071s |
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
kane@newlaptop:~$ ls -l /usr/bin/hhvm-php/ | |
total 4 | |
lrwxrwxrwx 1 root root 7 Oct 4 15:10 php -> ../hhvm | |
-rwxr-xr-x 1 root root 249 Oct 4 15:36 php-cgi | |
kane@newlaptop:~$ cat /usr/bin/hhvm-php/php-cgi | |
#!/bin/sh | |
PORT=80 | |
while getopts "eb:" OPTION |
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
PG::Error: ERROR: duplicate key value violates unique constraint "post_timings_unique" | |
DETAIL: Key (topic_id, post_number, user_id)=(9429, 2, 5052) already exists. | |
: INSERT INTO post_timings (topic_id, user_id, post_number, msecs) | |
SELECT 9429, 5052, 2, 3003 | |
WHERE NOT EXISTS(SELECT 1 FROM post_timings | |
WHERE topic_id = 9429 | |
AND user_id = 5052 | |
AND post_number = 2) |
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
/** | |
* | |
* This event is called when a player places one or more blocks. If the place involves | |
* just one block, a SinglePlaceEvent will be called instead. The PlaceEvent will be | |
* called when a single block placement action of a player triggers the | |
* creation of multiple blocks (e.g. placing a bed block, or a door, or a mod-added item). | |
* The block returned by {@link #block} and its related methods represent the block where | |
* the placement started. | |
* | |
* If a Block Place event is cancelled, the block will not be placed (the world state is rolled back to what you see in the block snapshots). |