Skip to content

Instantly share code, notes, and snippets.

View greggyNapalm's full-sized avatar

Gregory Komissarov greggyNapalm

  • Saint-Petersburg
View GitHub Profile
package com.example.xsupplydemo;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.viewpager.widget.ViewPager;
import android.os.Bundle;
import com.google.android.material.tabs.TabLayout;
import android.widget.TextView;
import com.x.sdk.xSdk;
@greggyNapalm
greggyNapalm / .java
Created June 3, 2022 13:09
Android question
package com.example.xsupplydemo;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
client
dev tap
proto udp
remote <host> <port>
resolv-retry infinite
nobind
persist-key
persist-tun
ns-cert-type server
comp-lzo
@greggyNapalm
greggyNapalm / tunnelblick-issue-2WCGD3Mc4S8.log
Created October 10, 2015 13:55
tunnelblick-issue-2WCGD3Mc4S8.log
2015-10-10 16:46:50 *Tunnelblick: OS X 10.10.5; Tunnelblick 3.6beta10 (build 4400); prior version 3.5.4 (build 4270.4395)
2015-10-10 16:46:51 *Tunnelblick: Attempting connection with xxx-spb using shadow copy; Set nameserver = 1; monitoring connection
2015-10-10 16:46:51 *Tunnelblick: openvpnstart start xxx-spb.tblk 1337 1 0 1 0 541042 -ptADGNWradsgnw 2.3.7
2015-10-10 16:46:52 *Tunnelblick: openvpnstart log:
Loading tap-signed.kext
OpenVPN started successfully. Command used to start OpenVPN (one argument per displayed line):
/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.7/openvpn
--daemon
--log
#!/bin/bash
# from http://habrahabr.ru/post/108240/
ncpus=`grep -ciw ^processor /proc/cpuinfo`
test "$ncpus" -gt 1 || exit 1
n=0
for irq in `cat /proc/interrupts | grep eth | awk '{print $1}' | sed s/\://g`
do
f="/proc/irq/$irq/smp_affinity"
object Host "app1.xxx" {
import "generic-host"
address = "192.168.1.1"
vars.os = "Linux"
vars.os_family = "Centos"
vars.placement = "yyy"
vars.placement = "zzz"
vars.operator = "on_call"
vars.sla = "24x7"
object Host "pkg7.xxx" {
import "generic-host"
address = "192.168.1.1"
vars.os = "Linux"
vars.os_family = "Centos"
vars.operator = "on_call"
vars.sla = "24x7"
object Service "load_average" {
object Host "pkg7.xxx" {
import "generic-host"
address = "192.168.1.1"
vars.os = "Linux"
vars.os_family = "Centos"
vars.operator = "on_call"
vars.sla = "24x7"
vars.host_name = "pkg7.xxx"
object Host "pkg7.xxx" {
import "generic-host"
address = "192.168.5.2"
vars.os = "Linux"
vars.os_family = "Centos"
//check_command = "http"
vars.operator = "on_call"
vars.sla = "24x7"
[root@rhel6-vm-local pulp]# pulp-admin puppet repo sync run --repo-id=repo1
+----------------------------------------------------------------------+
Synchronizing Repository [repo1]
+----------------------------------------------------------------------+
An internal error occurred on the Pulp server:
RequestException: POST request
on /pulp/api/v2/repositories/repo1/actions/sync/ failed with 500 - Unhandled
Exception