URL: http://teamcity:8111/httpAuth/app/rest/projects/
Method: POST
Accept: application/xml
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'org.ajoberstar:gradle-git:0.5.0' // not used in this example, but it's what brings in JGit | |
classpath 'com.jcraft:jsch.agentproxy.jsch:0.0.5' | |
classpath 'com.jcraft:jsch.agentproxy.usocket-jna:0.0.5' | |
classpath 'com.jcraft:jsch.agentproxy.sshagent:0.0.5' | |
} |
#!/bin/sh | |
rm ~/.IntelliJIdea*/config/eval/idea*.evaluation.key && \ | |
sed -i '/evlsprt/d' ~/.IntelliJIdea*/config/options/other.xml && \ | |
rm -rf ~/.java/.userPrefs/jetbrains | |
# It is Highly Advised to Purchase the JetBrain Softwares | |
# This is only for the case You just want to Extend the | |
# Trial Period and Evaluate the IDE for some more Time |
#!/usr/bin/env python | |
import socket | |
import threading | |
import select | |
import sys | |
terminateAll = False | |
class ClientThread(threading.Thread): |
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md | |
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192 | |
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB. | |
------------ | |
-- Basics -- | |
------------ | |
-- Get indexes of tables |
URL: http://teamcity:8111/httpAuth/app/rest/projects/
Method: POST
Accept: application/xml
image: docker:latest | |
before_script: | |
- apt-get update -y # Updating the Ubuntu Docker instance. | |
- python -V # Print out python version for debugging. | |
- apt install -y zip jq | |
- pip install awscli --upgrade --user | |
- export PATH=~/.local/bin:$PATH # Required for awscli. | |
- aws --version # Print out aws cli version for debugging. |
/* --------------------------------------------------------------------- | |
* PWM LED Brightness control for ATtiny13. | |
* Datasheet for ATtiny13: http://www.atmel.com/images/doc2535.pdf | |
* | |
* Pin configuration - | |
* PB1/OC0B: LED output (Pin 6) | |
* PB2/ADC1: Potentiometer input (Pin 7) | |
* | |
* ~100 bytes. | |
* |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" | |
int senderId; | |
// Set up nRF24L01 radio on SPI bus plus pins 9 & 10 | |
//Contacts from the radio to connect NRF24L01 pinamnam -> Arduino |
/* Sleep Demo Serial | |
* ----------------- | |
* Example code to demonstrate the sleep functions in a Arduino. Arduino will wake up | |
* when new data is received in the serial port USART | |
* Based on Sleep Demo Serial from http://www.arduino.cc/playground/Learning/ArduinoSleepCode | |
* | |
* Copyright (C) 2006 MacSimski 2006-12-30 | |
* Copyright (C) 2007 D. Cuartielles 2007-07-08 - Mexico DF | |
* | |
* With modifications from Ruben Laguna 2008-10-15 |