Skip to content

Instantly share code, notes, and snippets.

View orlandov's full-sized avatar

Orlando Vazquez orlandov

View GitHub Profile
((ProjectileClass=BlueprintGeneratedClass'"/Game/OWIVehicles/Pawns/UGV/BP_Projectile_12-7x99mm.BP_Projectile_12-7x99mm_C"',FiringFX=ParticleSystem'"/Game/OWIVehicles/Shared/Particles/FX/Weapons/MuzzleFlashes/Cannon/Muzzleflash-2A72.Muzzleflash-2A72"',FXSocket="Socket_BarrelFX",ProjectileSpawnSocket="Socket_ProjectileSpawn",FireRate=0.300000,bIsAuto=True,Reticle=WidgetBlueprintGeneratedClass'"/Game/OWIVehicles/Pawns/M2A3/Materials/BP_M2A3_GunnerReticle.BP_M2A3_GunnerReticle_C"',DisplayName="12.7mm",FiringSound=SoundCue'"/Game/Art/Items/M67/Sounds/SC_GrenadeExplosion.SC_GrenadeExplosion"'),(ProjectileClass=BlueprintGeneratedClass'"/Game/OWIVehicles/Pawns/UGV/BP_Projectile_40x53mm.BP_Projectile_40x53mm_C"',FiringFX=ParticleSystem'"/Game/OWIVehicles/Shared/Particles/FX/Weapons/MuzzleFlashes/Muzzleflash-M2_1P.Muzzleflash-M2_1P"',FXSocket="Socket_CoaxFX",ProjectileSpawnSocket="Socket_CoaxFX",FireRate=0.100000,bIsAuto=True,Reticle=WidgetBlueprintGeneratedClass'"/Game/OWIVehicles/Pawns/M2A3/Materials/BP_M2A3_GunnerRe
@orlandov
orlandov / .clang-format
Created July 30, 2019 17:59 — forked from intinig/.clang-format
.clang-format for UE4
---
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
#!/bin/bash -ex
# Paste this into ssh
# curl -sL https://gist.github.com/orlandov/6083287/download | tar -xzO | /bin/bash -ex
# When forking, you can get the URL from the download button.
pushd $HOME
#aptget='sudo apt-get'
#chsh='sudo chsh'
@orlandov
orlandov / 0001-Re-enable-listenFD-via-pipe_wrap.patch
Created January 19, 2012 21:42
[PATCH] Re-enable listenFD via pipe_wrap
From 25d5da023f0fbb901c3b91b5137191b506e9ee0d Mon Sep 17 00:00:00 2001
From: Orlando Vazquez <[email protected]>
Date: Thu, 19 Jan 2012 10:20:01 -0800
Subject: [PATCH] Re-enable listenFD via pipe_wrap
---
deps/uv/src/unix/pipe.c | 1 -
lib/net.js | 9 +++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
-bash-4.1# truss /var/tmp/bin/vim
execve("/var/tmp/bin/vim", 0x08047D64, 0x08047D6C) argc = 1
sysinfo(SI_MACHINE, "i86pc", 257) = 6
mmap(0x00000000, 32, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEFB0000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEFA0000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF90000
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF80000
memcntl(0xFEFB7000, 32112, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
getcwd("/root", 1022) = 0
resolvepath("/root/", "/root", 1023) = 5
set -g prefix C-a
set -g status-bg black
set -g status-fg default
set -g status-left-length 20
set -g status-left '#[fg=green]#H#[fg=default]'
set -g status-justify centre
set -gw window-status-format '#I#F#$ #W'
set -gw window-status-current-format '#[fg=red](#[fg=default]#I#F#[fg=yellow]⚡#[fg=default] #[fg=white]#W#[fg=default]#[fg=red])#[fg=default]'
set -g status-keys vi
@orlandov
orlandov / tmux.conf
Created December 9, 2010 23:26
Orlando's tmux config
set -g prefix C-a
set -g status-bg black
set -g status-fg default
set -g status-left-length 20
set -g status-left '#[fg=green]#H#[fg=default]'
set -g status-justify centre
set -gw window-status-format '#I#F#$ #W'
set -gw window-status-current-format '#[fg=red](#[fg=default]#I#F#[fg=yellow]⚡#[fg=default] #[fg=white]#W#[fg=default]#[fg=red])#[fg=default]'
set -g status-keys vi
@orlandov
orlandov / gist:629171
Created October 15, 2010 23:55
Calling OS zone functions from node with node-ffi
FFI = require('./node-ffi/node-ffi');
var Zone = new FFI.Library("libc", {
// ssize_t getzonenamebyid(zoneid_t id, char *buf, size_t buflen)
"getzonenamebyid": [ "uint32", [ "uint32", 'pointer', "int32" ] ],
"getzoneid": [ "int32", [] ],
"getzoneidbyname": [ "int32", [ 'string' ] ]
});
var str = new FFI.Pointer(64);
@orlandov
orlandov / gist:629168
Created October 15, 2010 23:53
Using OS zone functions from Node with node-ffi
FFI = require('./node-ffi/node-ffi');
var Zone = new FFI.Library("libc", {
// ssize_t getzonenamebyid(zoneid_t id, char *buf, size_t buflen)
"getzonenamebyid": [ "int32", [ "int32", 'pointer', "uint32" ] ],
"getzoneid": [ "int32", [] ],
"getzoneidbyname": [ "int32", [ 'string' ] ]
});
var str = new FFI.Pointer(64);