Skip to content

Instantly share code, notes, and snippets.

@paurosello
paurosello / gist:9804942
Last active August 29, 2015 13:57
Extern
void configInt(int gma, int sb){
extern int Coefs[NUM_BANDAS][NUM_COEFS];
if(sb==1){Coefs[gma][5]+=10;}
else if(sb==0){Coefs[gma][5]-=10;}
}
{
"uuid":"b6db8bd0-44cc-4c47-9565-e202fe6a940e",
“runName”: “PRE_DIAGNOSTICO_AUTOM_SIGMA_VPN_MPLS”,
“logLevel”: “DEBUG”, 
"inputs":
{
"SigmaIncidencia" : "0241886",
"SigmaAdmin" : "20150102-SITEMPLS-0000392578",
"SigmaCode" : "3",
"SigmaCodeDescr" : "Avería en Linea de Respaldo",
frappe.query_reports["Groups"] = {
"filters": [
{
"fieldname":"family",
"label": __("Family"),
"fieldtype": "Link",
"options": "Family",
"default": ""
}
],
// source https://www.ibm.com/developerworks/community/blogs/ideallyradical/entry/removing-invalid-characters-from-xml?lang=es
function cleanXML_Invalid(input) {
tab = "\u0009"
newline = "\u000A"
carriagereturn = "\u000D"
group1 = "\u0020-\uD7FF"
group2 = "\uE000-\uFFFD"
group3 = "\u10000-\u10FFFF"
input = input.replace("^[" + tab + newline + carriagereturn + group1 + group2 + group3 + "]", "")
RP/0/RSP0/CPU0:GRAFRAIX4#sho route vrf vpn_12956_50700 192.168.110.31/32
Fri Nov 4 12:59:45.361 UTC
Routing entry for 192.168.110.31/32
Known via "bgp 12956", distance 20, metric 0
Tag 65083, type external
Installed Nov 2 09:59:55.288 for 2d02h
Routing Descriptor Blocks
172.31.228.46, from 172.31.228.46, BGP external
Route metric is 0
@paurosello
paurosello / redis_cache.conf
Created November 26, 2017 11:09
Redis Configuration
dbfilename redis_cache.rdb
dir /Users/pau/frappe-bench/config/pids
pidfile /Users/pau/frappe-bench/config/pids/redis_cache.pid
bind 127.0.0.1
port 13000
maxmemory 1638mb
maxmemory-policy allkeys-lru
appendonly no
save ""
stages:
- tests
tests:
stage: tests
image: node:10
variables:
SWAGGER: ${SWAGGER}
before_script:
- npm install -g swagger-cli
@paurosello
paurosello / BudgieDebian
Created November 28, 2018 18:46 — forked from HoriLiu/BudgieDebian
Debian budgie-desktop
#Get debian-testing-amd64-netinst.iso in
http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/
#Setup OS then Reboot
https://github.com/neurite/debian-setup/wiki/Debian-Installation
#Install Budgie Desktop
sudo apt-get update
sudo apt-get install gdm3 budgie-desktop synaptic gedit gnome-tweak-tool xfce4-terminal
sudo systemctl enable gdm3