Skip to content

Instantly share code, notes, and snippets.

View DaikiMaekawa's full-sized avatar

Daiki Maekawa DaikiMaekawa

View GitHub Profile
$ nmcli device wifi connect [SSID] password [PASSWORD]
function! s:JobHandler(job_id, data, event) dict
if a:event == 'stdout'
let str = self.shell.' stdout: '.join(a:data)
elseif a:event == 'stderr'
let str = self.shell.' stderr: '.join(a:data)
else
let str = self.shell.' exited'
endif
call append(line('$'), str)
hoge
fuga
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Twitter Timeline"/>
<Content type="html">
<![CDATA[
<a class="twitter-timeline" href="https://twitter.com/hashtag/rosjp" data-widget-id="507831437236514816">#rosjp件のツイート</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
]]>
</Content>
</Module>
<!-- Just replace **USERNAME** by your github username :-) -->
<style>
#followGithub {
color: #121516;
text-shadow: 0 1px 1px #ccc;
padding: 0.2em 0.4em;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
// ==UserScript==
// @name follow organization
// @description Show follow button on github organization page
// @namespace http://www.technolize.net/
// @include https://github.com/*
// @version 0.1
// @license MIT License
// @work Google Chrome
// ==/UserScript==
@DaikiMaekawa
DaikiMaekawa / .vimrc
Created May 27, 2013 01:19
configuration file of the vim
syntax on
highlight LineNr ctermfg=darkyellow
highlight NonText ctermfg=darkgrey
highlight Folded ctermfg=blue
highlight SpecialKey cterm=underline ctermfg=darkgrey
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=white
match ZenkakuSpace / /
set ts=4 sw=4
set softtabstop=4
set expandtab
@DaikiMaekawa
DaikiMaekawa / .screenrc
Last active December 17, 2015 04:59
configuration file of the screen
hardstatus alwayslastline "[%02c] %`%-w%{=b bw}%n %t%{-}%+w"
escape ^Zz
@DaikiMaekawa
DaikiMaekawa / touchpad
Created April 27, 2013 01:58
Script turning on and off the touchpad
#! /bin/sh
TOUCH_PAD='AlpsPS/2 ALPS DualPoint TouchPad'
if xinput list "$TOUCH_PAD" >/dev/null 2>&1; then
if(xinput list "$TOUCH_PAD" | grep disabled) >/dev/null 2>&1; then
xinput set-prop "$TOUCH_PAD" 'Device Enabled' 1
else
xinput set-prop "$TOUCH_PAD" 'Device Enabled' 0
fi