Skip to content

Instantly share code, notes, and snippets.

@archi144
archi144 / main.go
Created June 6, 2024 19:20
Redeliver GitHub webhook for certain repos
package main
import (
"context"
"github.com/google/go-github/v62/github"
"log"
)
const (
orgName = ""
int main(int argc,char* argv[])
{
cout<<"\nРодительский PID: " << getpid()<< "\nРодительский PPID: "<< getppid()<< "\nРодительский GPID: "<< getgid() << endl;
int status = fork();
if(status)
{
cout<<"\nВыполняется родительский процесс..."<<endl;
cout<<"\nВозвращаемый код fork: " << status << endl;
cout<<"Родительский PID: " << getpid()<< "\nРодительский PPID: "<< getppid()<< "\nРодительский GPID: "<< getgid() << endl;
pause();
@archi144
archi144 / lab1_1.cpp
Last active October 11, 2019 21:11
Работа над/с ошибками
#include <iostream>
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <cstring>
using namespace std;
int main()
#include <vector>
#include <iterator>
int lengthOfLongestSubstring(string s) {
vector <char> alph;
char ch{};
int count{};
int max_count{};
for(size_t i=0; i<s.size(); ++i)
{