I hereby claim:
- I am mustakimali on github.
- I am mustakim (https://keybase.io/mustakim) on keybase.
- I have a public key whose fingerprint is AF3B 05A2 6A25 743E 8B65 622C 2230 AAFF 0FFD 734D
To claim this, I am signing this object:
# An unix shell script to display total transmitted data through you NowTV router (in the UK), | |
# should work with Sky router with a little bit of modification | |
# Refresh every 2 seconds, press Ctrl+C to stop. | |
# Replace the `admin:nowtv` with the username:password of your NowTV router's admin credential if you've changed it. | |
while true; \ | |
do \ | |
curl --user admin:nowtv http://192.168.0.1/Now_TV_system.html 2>/dev/null \ | |
| grep -ioE "(\d{4,})<\/td>" \ | |
| grep -o '[0-9]*' \ |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using EasyMapper; | |
using System; | |
using System.Diagnostics; | |
namespace Test | |
{ | |
[TestClass] | |
public class EasyMapperTest | |
{ |
I hereby claim:
To claim this, I am signing this object:
!#bin/bash | |
sudo apt update | |
sudo apt install -y curl git | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions | |
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh | |
source ~/.zshrc |
#!/bin/sh | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg | |
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ | |
wget -q https://packages.microsoft.com/config/debian/9/prod.list | |
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list | |
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg | |
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list | |
sudo apt-get -y install apt-transport-https | |
sudo apt-get update |
#!/usr/bin/python | |
import os | |
import subprocess | |
def process_log_for_svc(svc,out): | |
print('Processing ' + svc) | |
os.system("rm -f /storage/goaccess/imported-logs/imported-log.log") | |
os.system('find /var/log/containers/ | grep nginx-ingress | xargs sudo cat | grep ' + svc + ' >> /storage/goaccess/imported-logs/imported-log.log') |
syntax = "proto3"; | |
import "google/protobuf/empty.proto"; | |
package GrpcDotNetDemoPackage; | |
service DemoService { | |
rpc SayHello(HelloRequest) returns (HelloResponse); | |
rpc SayHelloToNobody(google.protobuf.Empty) returns (HelloResponse); | |
} |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>netstandard2.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Grpc.Core" Version="1.22.0" /> | |
<PackageReference Include="Grpc.Tools" Version="1.22.0-pre1" /> | |
<PackageReference Include="Google.Protobuf" Version="3.9.0-rc1" /> |
<Project Sdk="Microsoft.NET.Sdk.Web"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp3.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Grpc.AspNetCore.Server" Version="0.1.22-pre2" /> | |
</ItemGroup> |
using System.Net; | |
using System.Threading.Tasks; | |
using Google.Protobuf.WellKnownTypes; | |
using Grpc.Core; | |
using GrpcDotNetDemoPackage; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Server.Kestrel.Core; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; |