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
    
  
  
    
  | CREATE OR REPLACE FUNCTION totp(key BYTEA, token_timestamp BIGINT, clock_offset INT DEFAULT 0) RETURNS INT AS $$ | |
| DECLARE | |
| -- Convert token_timestamp to a 30-second time step | |
| c BYTEA := '\x000000000' || TO_HEX((token_timestamp / 1000 / 30)::INT + clock_offset); | |
| mac BYTEA := HMAC(c, key, 'sha1'); -- Compute HMAC-SHA1 | |
| trunc_offset INT := GET_BYTE(mac, 19) % 16; -- Dynamic truncation offset | |
| -- Truncate and extract the TOTP | |
| result INT := SUBSTRING(SET_BIT(SUBSTRING(mac FROM 1 + trunc_offset FOR 4), 7, 0)::TEXT, 2)::BIT(32)::INT % 100000000; | |
| BEGIN | |
| RETURN result; | 
  
    
      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
    
  
  
    
  | use std::process::Stdio; | |
| use tokio::{process::{Child, Command as TokioCommand, ChildStdout, ChildStderr}, io::BufReader}; | |
| use crate::errors::provisioner_errors::ProvisionerError; | |
| pub struct Shell { | |
| pub command: String | |
| } | |
| impl Shell { | |
| pub async fn execute(&self) -> Result<(), ProvisionerError> { | 
  
    
      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
    
  
  
    
  | "use client"; | |
| import { Fragment } from 'react' | |
| import { Menu, Popover, Transition } from '@headlessui/react' | |
| import { | |
| ChatBubbleLeftEllipsisIcon, | |
| CodeBracketIcon, | |
| EllipsisVerticalIcon, | |
| EyeIcon, | |
| FlagIcon, | 
  
    
      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
    
  
  
    
  | import React from 'react'; | |
| import { | |
| List, | |
| CellMeasurer, | |
| CellMeasurerCache, | |
| InfiniteLoader, | |
| AutoSizer | |
| } from 'react-virtualized'; | |
| import Item from './Item'; | 
  
    
      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
    
  
  
    
  | # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
  
    
      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
    
  
  
    
  | location ^~ /api { | |
| rewrite ^/api/(.*)$ /$1 break; | |
| proxy_pass http://localhost:6969; | |
| } | 
  
    
      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
    
  
  
    
  | /* | |
| * This is a simple and easy approach to reuse the same | |
| * navigation drawer on your other activities. Just create | |
| * a base layout that conains a DrawerLayout, the | |
| * navigation drawer and a FrameLayout to hold your | |
| * content view. All you have to do is to extend your | |
| * activities from this class to set that navigation | |
| * drawer. Happy hacking :) | |
| * P.S: You don't need to declare this Activity in the | |
| * AndroidManifest.xml. This is just a base class. | 
  
    
      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
    
  
  
    
  | <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>My Location</title> | |
| <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
| <meta charset="utf-8"> | |
| <style> | |
| #map { | |
| height: 616px; | |
| margin-top: 5px; | 
  
    
      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
    
  
  
    
  | // react-redux app template | |
| // based on create-react-app cli | |
| // change { name } | |
| { | |
| "name": "", | |
| "version": "0.1.0", | |
| "private": true, | |
| "dependencies": { | |
| "react": "^15.6.1", | 
  
    
      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
    
  
  
    
  | { | |
| "name": "moduleloader", | |
| "version": "1.0.0", | |
| "description": "fucking module loading system", | |
| "main": "webpack.config.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "none", | |
| "license": "ISC", | 
NewerOlder