Skip to content

Instantly share code, notes, and snippets.

@Yasushi
Yasushi / gist:872020cd5ec8d5a3e87a
Created May 15, 2014 03:15
mount cifs options
_netdev,cache=none,noserverino,actimeo=0,username=,password=,uid=yasushi,gid=yasushi
package main
import (
"bufio"
"bytes"
"compress/zlib"
"encoding/binary"
"io/ioutil"
"log"
"os"
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"
#!/bin/sh
NODE_VERSION=${NAVE_VERSION:-0.10.28}
NODE_PATH=~/.nave/installed/$NODE_VERSION/lib/node
NAVEPATH=~/.nave/installed/$NODE_VERSION/bin
PATH=$NAVEPATH:$PATH
export PATH NODE_PATH
$NAVEPATH/`basename $0` $*
ant.importBuild "build.xml"
defaultTasks 'crx'
def keystore = ant.properties['cert.chromePath']+"/"+ant.properties.name+".p12"
def chromeCrx = ant.properties.dist+"/"+ant.properties.name+".crx"
import java.security.*
import java.security.spec.*
import java.nio.ByteBuffer
import com.theoryinpractise.coffeescript.CoffeeScriptCompiler
import org.gradle.api.InvalidUserDataException
import org.gradle.api.file.FileCollection
import org.gradle.api.file.FileVisitDetails
import org.gradle.internal.classloader.ClasspathUtil
import org.gradle.api.tasks.*
import org.gradle.api.logging.LogLevel
class TaliosCoffeeScriptCompiler extends SourceTask {
git for-each-ref --sort=-committerdate --format=$'%(committerdate:iso8601)\t%(refname:short)\t%(contents:subject)' refs/heads
#
# /etc/fstab
# Created by anaconda on Tue Jul 8 07:11:07 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos-root / xfs defaults 1 1
UUID=3999c8bf-0ec8-432a-bee3-350014640ab5 /boot xfs defaults 1 2
/dev/mapper/centos-swap swap swap defaults 0 0
---
- hosts: all
sudo: yes
tasks:
- yum: name={{ item }}
with_items:
- libselinux-python
- unzip
- openssh-clients
- git
class Ex
def sum(l, s)
@c = (@c||0) + 1
(not l or l.empty?) ? s : sum(l[1..-1],s+l[0])
end
def count ; @c end
end