Skip to content

Instantly share code, notes, and snippets.

View Blizzardo1's full-sized avatar
😬
Have you tried turning it off and on again?

Adonis Deliannis Blizzardo1

😬
Have you tried turning it off and on again?
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
int main(void) {
pid_t proc1 = fork();
pid_t proc2 = fork();
#include <stdio.h>
#include <stdlib.h>
int turn = 0;
void some_routine(void) {
// Some code here
}
int critical_section() {
[
{
"name": "John",
"id": 1,
"expired": false,
"locked": false
}
]
class Graphics {
constructor(board) {
this.board = board;
}
circle(x, y, r, fill=false) {
this.canvas.beginPath();
this.canvas.arc(x, y, r, 0, 2 * Math.PI);
this.canvas.stroke();
if(fill) {
Get-WmiObject -query "select DeviceId from Win32_LogicalDisk" | foreach { Get-WmiObject -query "associators of {Win32_LogicalDisk=`"$($_.DeviceID)`"}"; write-host "-----------------------------------------------------"}
Hidden :
Archive :
EightDotThreeFileName :
FileSize :
Name : C:\
Compressed :
Encrypted :
Readable : True
| | Compare | Contrast JUnit | Contrast TestNG | | |
|--------------------|----------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|---|
| Initialization | Uses annotations for Initialization and cleanup
@Blizzardo1
Blizzardo1 / vpnchk
Created February 26, 2021 03:12
Check current VPN Connections in Vyatta-flavored systems
#!/usr/bin/env python
import os
run = '/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper'
runusr = '/opt/vyatta/bin/vyatta-op-cmd-wrapper'
red=31
green=32
reset=37
def make_color(color):
@Blizzardo1
Blizzardo1 / blockip
Created February 13, 2021 22:18
Python script for Vyatta flavored configurations. Adds an IP to a block list.
#!/usr/bin/env python
import os
import sys
import vyatta
run = '/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper'
runusr = '/opt/vyatta/bin/vyatta-op-cmd-wrapper'
red=31
green=32
reset=37
// #define DRYRUN
#region Header
// Sql.cs\n Copyright (C) Adonis Deliannis, 2019\nCreated 26 08, 2019
// Place each class and interface in their respected files to clean up this file for easier reading, your prerogative.
#endregion
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
System.MissingMethodException: Method not found: 'System.String Microsoft.Build.Evaluation.ProjectCollection.get_DisplayVersion()'.
at Microsoft.Build.CommandLine.MSBuildApp.DisplayCopyrightMessage()
at Microsoft.Build.CommandLine.MSBuildApp.ProcessCommandLineSwitches(CommandLineSwitches switchesFromAutoResponseFile, CommandLineSwitches switchesNotFromAutoResponseFile, String& projectFile, String[]& targets, String& toolsVersion, Dictionary`2& globalProperties, ILogger[]& loggers, LoggerVerbosity& verbosity, List`1& distributedLoggerRecords, Boolean& needToValidateProject, String& schemaFile, Int32& cpuCount, Boolean& enableNodeReuse, TextWriter& preprocessWriter, Boolean& detailedSummary, ISet`1& warningsAsErrors, ISet`1& warningsAsMessages, Boolean& enableRestore, Boolean& interactive, ProfilerLogger& profilerLogger, Boolean& enableProfiler, Dictionary`2& restoreProperties, Boolean& isolateProjects, Boolean& graphBuild, Strin