This file contains hidden or 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
| sudo apt-get install --reinstall binutils |
This file contains hidden or 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
| org 7C00h | |
| jmp short Start ;Jump over the data (the 'short' keyword makes the jmp instruction smaller) | |
| Msg: db "Hello World! " | |
| EndMsg: | |
| Start: mov bx, 000Fh ;Page 0, colour attribute 15 (white) for the int 10 calls below | |
| mov cx, 1 ;We will want to write 1 character | |
| xor dx, dx ;Start at top left corner |
This file contains hidden or 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
| SELECT format( | |
| 'ALTER SCHEMA %I OWNER TO %I;', | |
| schema_name, | |
| current_user | |
| ) | |
| FROM information_schema.schemata; | |
| SELECT format( | |
| 'GRANT SELECT, INSERT, UPDATE, DELETE ON %I TO %I', | |
| table_name, |
This file contains hidden or 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 RabbitMQ.Client; | |
| using System; | |
| using System.Text; | |
| using System.Threading; | |
| namespace Publisher | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
This file contains hidden or 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 Microsoft.Extensions.Hosting; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using System.Web.Http; | |
| namespace WebApplication2 | |
| { | |
| public class WebApiApplication : System.Web.HttpApplication | |
| { | |
| protected void Application_Start() |
This file contains hidden or 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
| public static class TimeZoneBrazil | |
| { | |
| public static DateTime GetCurrentLocalDate() | |
| { | |
| long ticks; | |
| if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) | |
| { | |
| ticks = TimeZoneInfo | |
| .FindSystemTimeZoneById("America/Sao_Paulo") |
This file contains hidden or 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 RabbitMQ.Client; | |
| using System; | |
| using System.Text; | |
| namespace ConsoleApp1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
This file contains hidden or 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; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| var tzis = TimeZoneInfo.GetSystemTimeZones(); | |
| foreach (var tzi in tzis) | |
| { |
This file contains hidden or 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
| --- | |
| version: '2' | |
| services: | |
| zookeeper: | |
| image: confluentinc/cp-zookeeper:latest | |
| networks: | |
| - net | |
| ports: | |
| - 2181:2181 | |
| environment: |
This file contains hidden or 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 RabbitMQ.Client; | |
| using RabbitMQ.Client.Events; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Security.Cryptography.X509Certificates; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Channels; |