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
  • 01:08 (UTC +01:00)
View GitHub Profile
@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>
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
#!/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
#!/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
@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'
@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 / sip.conf
Created July 20, 2016 23:57
sip.conf
textsupport=yes
accept_outofcall_message = yes
outofcall_message_context = pasarelasms
@uranio-235
uranio-235 / extensions.conf
Created July 20, 2016 23:58
extensions.conf
[pasarelasms]
exten => _.,1,NoOp(SMS receiving dialplan invoked)
exten => _.,n,NoOp(To ${MESSAGE(to)})
exten => _.,n,NoOp(From ${MESSAGE(from)})
exten => _.,n,NoOp(Body ${MESSAGE(body)})
exten => _.,n,AGI(chatplan.php,${MESSAGE(from)})
;exten => _.,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})
;exten => _.,n,ExecIf($["${ACTUALTO}" != "sip:${EXTEN}"]?Set(ACTUALTO=sip:${EXTEN}))
exten => _.,n,MessageSend(${ACTUALTOS},${MESSAGE(from)})
exten => _.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
[Jul 20 20:02:09] NOTICE[27890][C-00000000]: chan_sip.c:34526 sip_request_call: Asked to get a channel of unsupported format (nothing) while capability is (gsm|ulaw|alaw|h263|testlaw)
[Jul 20 20:02:09] WARNING[27890][C-00000000]: app_dial.c:2437 dial_exec_full: Unable to create channel of type 'SIP' (cause 58 - Bearer capability not available)
== Everyone is busy/congested at this time (1:0/0/1)
cc -Wclobbered -Wempty-body -Wfloat-equal -Wignored-qualifiers -Wmissing-declarations -Wmissing-parameter-type -Wsign-compare -Wmissing-prototypes -Wold-style-declaration -Wtype-limits -Woverride-init -Wunused -Wstrict-prototypes -Wuninitialized -std=c99 -g -pthread -pedantic -Wall -Wextra -fstack-protector-strong -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -D_GNU_SOURCE -DCOWER_VERSION=\"16\" -D_FORTIFY_SOURCE=2 -c -o cower.o cower.c
cc -Wclobbered -Wempty-body -Wfloat-equal -Wignored-qualifiers -Wmissing-declarations -Wmissing-parameter-type -Wsign-compare -Wmissing-prototypes -Wold-style-declaration -Wtype-limits -Woverride-init -Wunused -Wstrict-prototypes -Wuninitialized -std=c99 -g -pthread -pedantic -Wall -Wextra -fstack-protector-strong -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -D_GNU_SOURCE -DCOWER_VERSION=\"16\" -D_FORTIFY_SOURCE=2 -c -o aur.o aur.c
cc -Wclobbered -Wempty-body -Wfloat-equal -Wignored-qualifiers -Wmissing-declarations -Wmissing-para