Will presumably work for many RHEL "derivatives", like CentOS, Oracle Enterprise Linux, Scientific Linux as well as "similar enough" versions of Fedora.
There is a use case for 32-bit ruby as set out in this G+ post
#!/usr/bin/env ruby | |
require 'csv' | |
CSV.foreach(ARGV[0],'r') {|row| puts row.size} |
#!/bin/sh | |
# | |
# Puma control script | |
# | |
# chkconfig: - 80 20 | |
# description: Puma | |
# Create an /etc/sysconfig/file of the same name as this with the following settings | |
# Note this code does NOT pick any defaults, so will fall over if these are unset. | |
# RACK_ENV=production |
Will presumably work for many RHEL "derivatives", like CentOS, Oracle Enterprise Linux, Scientific Linux as well as "similar enough" versions of Fedora.
There is a use case for 32-bit ruby as set out in this G+ post
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace DesignerTest | |
{ | |
class Program | |
{ |
#!/usr/bin/env ruby | |
# Linux only, sorry. | |
# | |
# Look for ext[34], xfs and vxfs. Alter the regexp FILESYSTEMS for others | |
# | |
# If you have /root as a separate partition, alter the value of ROOT_USABLE | |
# Config |
#!/bin/bash | |
mountpoint=/tmp | |
sleeper=240 | |
# percentage of disk used | |
function percentage { df $1 | tail -1 | awk '{print $4}' | tr -d % ; } | |
# Where we'll write | |
tempdir=$(mktemp -d --tmpdir=${mountpoint}) |
import org.apache.commons.csv.CSVPrinter | |
import org.apache.commons.csv.CSVFormat | |
CSVPrinter printer = new CSVPrinter( | |
new PrintWriter("test.csv"), | |
CSVFormat.DEFAULT | |
) | |
answer = [ [5,6,"asdf",7],[9,10,"a b","z,x",12]] |
#!/bin/bash | |
. /lib/lsb/init-functions | |
pidofproc "$@" &>> /dev/null | |
retval=$? | |
# Ignore cases such as retval=3 (Pid file doesn't exist) | |
if [ $retval -ne 1 ] |
#!/bin/bash | |
# I know it's a bit stupid and there's better ways to do it. But who doesn't like playing. | |
# Written for an old CentOS 4 server where people have installed Perl modules any old how. | |
# Is there a way to merge the two matches together? | |
find /usr/*/perl5 | ruby -ne '/^(\/\w+){4}\/.*\.pm/.match($_) && puts( /^(\/\w+){4}\/[\.\d]*\/{0,1}(.*)/.match($_)[2] )' |
#!/bin/bash | |
7z a -x'!*/.git' $1.7z $1 |