Skip to content

Instantly share code, notes, and snippets.

vm com o pacote rpm -> ip: 104.131.223.206
10:49 AM <alexandreab> usuário: root
10:49 AM <alexandreab> senha: a se dempre
10:49 AM <alexandreab> arquivo rpm: /tmp/gitlab-spb_novo.el6.x86_64.rpm
10:50 AM <alexandreab> já instalei esse pacote em outra vm limpa (162.243.88.56)
104.131.223.206 - Criando RPM
162.243.88.56 - Instalando o RPM
Passos para 4 de setembro:
// This was based on problem 1077: infix to postfix form
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PRI(c) (c == '*' ? 1 : (c == '(' ? -1 : 0))
#define push iStack++, opStack[iStack].c = infix[i], opStack[iStack].pri = PRI(infix[i])
// Encapsulate an element
1 10 2 1
5 6 4 2
2 10 5 1
9 4 2 7
8 8 4 8
6 5 5 4
5 2 3 10
3 5 1 9
2 6 2 4
1 7 4 4
@chaws
chaws / SATES LOC
Last active November 15, 2016 22:56
Number of LOC per SATE
SATE 2008:
Naim (C) 23,210
Nagios (C) 65,133
Lighttpd (C) 38,306
OpenNMS (Java) 131,507
MvnForum (Java) 128,784
DSpace (Java) 53,847
Total = 440787
#include <iostream>
#include <vector>
// Macro to reduce code
#define add(n) children.push_back(n)
using namespace std;
class Node
{
// g++ btree.cpp
#include "rapidxml.hpp"
#include <iostream>
#include <vector>
#include <fstream>
using namespace std;
using namespace rapidxml;
@chaws
chaws / bash-cheatsheet.sh
Created June 26, 2017 14:25 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
diff --git a/package-lock.json b/package-lock.json
index 2fc8f27..996711a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,8 @@
{
- "requires": true,
+ "name": "squad-tests",
+ "version": "1.0.0",
"lockfileVersion": 1,
[127|0]terraform(move-to-sqs *%) $ ENV=staging ./terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
aws_sns_topic.qa_reports_cloudwatch_notifications: Refreshing state... (ID: arn:aws:sns:us-east-1:495570029050:staging_qa_reports_cloudwatch_notifications)
aws_lb_target_group.qa-reports-tg: Refreshing state... (ID: arn:aws:elasticloadbalancing:us-east-1:...staging-qa-reports-tg/66d3228ab651edce)
aws_key_pair.auth: Refreshing state... (ID: qa-reports-staging)
aws_acm_certificate.acm-cert: Refreshing state... (ID: arn:aws:acm:us-east-1:495570029050:cert...e/2adeddd0-e754-44e8-8b1b-dcf5e77ee94b)
aws_sqs_queue.qa_reports_queue[7]: Refreshing state... (ID: https://sqs.us-east-1.amazonaws.com/495570029050/staging_core_reporting)
#!/bin/bash
set -eu
export DATABASE='ENGINE=django.db.backends.sqlite3:NAME=syzkaller_db.sqlite3'
echo "Setting testing squad-db"
squad-admin migrate 2>&1 > /dev/null
cat << SCRIPT | squad-admin shell