This file contains hidden or 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
| sudo rpm -ivh http://yum.puppetlabs.com/el/6/products/i386/puppetlabs-release-6-7.noarch.rpm |
This file contains hidden or 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
| .file "test.c" | |
| .section ".text" | |
| .align 4 | |
| .global float_1 | |
| .type float_1, #function | |
| .proc 06 | |
| float_1: | |
| save %sp, -96, %sp | |
| st %i0, [%fp+68] | |
| st %i1, [%fp+72] |
This file contains hidden or 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> | |
| float float_1( float a, float b ) { | |
| return a + b; | |
| } | |
| float float2( float a, float b ) { | |
| return a + b; | |
| } |
This file contains hidden or 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
| .section ".data" | |
| .global fmt | |
| fmt: | |
| .asciz "uninit value: %d\n" | |
| .section ".bss" | |
| .global a | |
| a: .skip 4 | |
| .section ".text" |
This file contains hidden or 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
| function sesh() { | |
| if [[ $# -gt 0 ]]; then | |
| case "$1" in | |
| new) | |
| tmux new -s "$2" | |
| ;; | |
| *) | |
| if tmux list-sessions | grep "attached"; then | |
| tmux switch -t "$1" | |
| else |
This file contains hidden or 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 ("net"; "fmt"; "log") | |
| func main() { | |
| conn, err := net.Dial("tcp", "localhost:9999") | |
| if err != nil { | |
| log.Panic(err) | |
| } |
This file contains hidden or 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
| require 'resolv' | |
| module Puppet::Parser::Functions | |
| newfunction(:get_ip_addr, :type => :rvalue) do |args| | |
| # Super sexy regex to match valid IPs | |
| ip_addr_re = /\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/ | |
| hostname = args[0].strip | |
| if hostname =~ ip_addr_re then return hostname end | |
| begin | |
| Resolv::DNS.open { |dns| return dns.getaddress hostname } |
This file contains hidden or 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
| $(document).ready(function() { | |
| $('.normheight').css({ | |
| 'height': $('.normheight').height() | |
| }); | |
| }); |
NewerOlder