sudo sh /PATH/TO/bin/startxfce4 -r DISTRO
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
Show hidden characters
{ | |
"cmd": ["bcc32", "-e${file_base_name}.exe", "${file_name}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"shell": true, | |
"path": "C:\\bcc55\\Bin\\", | |
"working_dir": "${file_path}", | |
"encoding": "cp932", | |
"selector": "source.c", | |
"variants": |
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
#!perl | |
use FCGI; | |
use Socket; | |
use FCGI::ProcManager; | |
sub shutdown { FCGI::CloseSocket($socket); exit; } | |
sub restart { FCGI::CloseSocket($socket); &main; } | |
use sigtrap 'handler', \&shutdown, 'normal-signals'; | |
use sigtrap 'handler', \&restart, 'HUP'; | |
require 'syscall.ph'; | |
use POSIX qw(setsid); |
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 | |
# /etc/init.d/minecraft | |
# Original: http://minecraft.gamepedia.com/Tutorials/Server_startup_script | |
# version 0.4.2 2016-02-09 (YYYY-MM-DD) | |
# Arranged: https://gist.github.com/Sotalbireo/6364b210c4d6f1499d735c1e931a8e6c | |
# version 0.0.5 2016-10-14 (YYYY-MM-DD) | |
### BEGIN INIT INFO | |
# Provides: minecraft | |
# Required-Start: $local_fs $remote_fs screen-cleanup |
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
# coding: UTF-8 | |
import sqlite3 | |
import random | |
import sys | |
if __name__ == '__main__': | |
# データベースと接続、無ければ作成 |
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
let a = "e58299e5bf98e98cb2", s=""; | |
for(let i=0; i<a.length; i++) | |
s += (i%2 == 0 ? "%" : "") + a[i]; | |
decodeURIComponent(s); |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
void tokoroten(int arr[], int val) | |
{ | |
arr[0] = arr[1]; | |
arr[1] = arr[2]; | |
arr[2] = val; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#define TRUE 1 | |
#define FALSE 0 | |
#ifdef _WIN32 | |
#include <windows.h> | |
void _sleep(unsigned milliseconds) |
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
{ | |
"title": "Fn+CapsLockキーを英かなトグルにする", | |
"rules": [ | |
{ | |
"description": "US入力と、ことえりのひらがなをトグルする", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", |
I hereby claim:
- I am sotalbireo on github.
- I am sotalbireo (https://keybase.io/sotalbireo) on keybase.
- I have a public key ASD4eq_9tB3qjAi7P3KF834juFgFjtPo7PLRlaES1-OWhgo
To claim this, I am signing this object: