Skip to content

Instantly share code, notes, and snippets.

View uranio-235's full-sized avatar
🐚
C# Developer at Work

Lázaro Armando uranio-235

🐚
C# Developer at Work
  • ChipojoSoft
  • Portugal
  • 15:30 (UTC)
View GitHub Profile
@uranio-235
uranio-235 / sip.conf
Created July 20, 2016 23:57
sip.conf
textsupport=yes
accept_outofcall_message = yes
outofcall_message_context = pasarelasms
@uranio-235
uranio-235 / gist:79cf285b13438dc9af03626f222cf263
Last active July 4, 2016 00:45
assaultcube-reloaded compilation
rendertext.cpp:333:30: error: switch quantity not an integer
switch(abs(stack[sp]))
^
make: *** [<builtin>: rendertext.o] Error 1
==> ERROR: A failure occurred in package().
Aborting...
==> ERROR: Makepkg was unable to build assaultcube-reloaded.
@uranio-235
uranio-235 / Gemfile
Created March 6, 2016 17:18
path in gemfile
source 'https://rubygems.org'
path Gem.user_dir
gem 'mail'
gem 'rest-client'
Configuration file: hostapd.conf
nl80211: Failed to add interface wlp0s29u1u4 into bridge enp2s0: Operation not supported
nl80211: deinit ifname=wlp0s29u1u4 disabled_11b_rates=0
nl80211 driver initialization failed.
wlp0s29u1u4: interface state UNINITIALIZED->DISABLED
wlp0s29u1u4: AP-DISABLED
hostapd_free_hapd_data: Interface wlp0s29u1u4 wasn't started
@uranio-235
uranio-235 / application.html.ejs
Created July 16, 2014 14:42
application.html.ejs the navbar part
<%= partial('layout_header'); %>
<body>
<!-- La barra superior -->
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
#!/usr/bin/ruby
require 'data_mapper'
DataMapper.setup(:default, 'sqlite::memory:')
# la tabla es una clase
class Foo
include DataMapper::Resource
property :id, Serial
property :name, String
end
#!/bin/sh
# el rpoceso es simple, cada linea es una maquina
# Entra en la capera compartida y ala las facturas
# la mauqina debe tener la carpeta debidamente compartida
# cuyo recurso debe llamarse "factura"
# en algunso casos se usa cat /root/pass.txt com parametro,
# dicho fichero contiene el password del Domain Controller
# posisiionate en la carpeta compartida