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
    
  
  
    
  | #!/usr/bin/env python3 | |
| import re | |
| import csv | |
| import requests as req | |
| from bs4 import BeautifulSoup | |
| URL = "http://georgianwine.gov.ge/Ge/WineCompaniesAndWineries?page=1&pageSize=2000" | |
| class Patern: | |
| EMAIL = '[\w.-]+@[\w.-]+' | 
  
    
      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
    
  
  
    
  | # Install dependencies | |
| sudo apt install libffi-dev libbz2-dev liblzma-dev libsqlite3-dev \ | |
| libncurses5-dev libgdbm-dev zlib1g-dev libreadline-dev libssl-dev \ | |
| tk-dev build-essential libncursesw5-dev libc6-dev openssl git | |
| # download python | |
| wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz | |
| # Extract it | |
| tar -xf Python-3.7*.tar.xz | |
| # Configure with optimisation | 
  
    
      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
    
  
  
    
  | void SysClkSetHSI(uint32_t PLLMul) { | |
| if (PLLMul > RCC_PLLMul_12) { | |
| FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Enable); | |
| // Flash 2 wait state for freq > 4x12 48MHz | |
| FLASH_SetLatency(FLASH_Latency_2); | |
| } | |
| else if (PLLMul > RCC_PLLMul_6) { | |
| FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Enable); | |
| // Flash 1 wait state for freq > 4x6 24MHz | |
| FLASH_SetLatency(FLASH_Latency_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
    
  
  
    
  | #include "stm32f10x_rcc.h" | |
| #include "stm32f10x_gpio.h" | |
| #include "stm32f10x.h" | |
| #define LED_PORT GPIOB | |
| void LED_GPIO_Configuration(void); | |
| void Delay(__IO uint32_t nCount); | |
| void NMI_Handler(); | |
| void SetClk(uint32_t PLLMul); | 
  
    
      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
    
  
  
    
  | apt-get -y install libbz2-dev liblzma-dev libsqlite3-dev libncurses5-dev \ | |
| libgdbm-dev zlib1g-dev libreadline-dev libssl-dev tk-dev build-essential \ | |
| libncursesw5-dev libc6-dev openssl libsqlite3-dev | |
| wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz | |
| tar -xf Python-3.6.0.tar.xz | |
| cd Python-3.6.0 | |
| ./configure | |
| make | 
  
    
      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
    
  
  
    
  | # -*- coding: utf-8 -*- | |
| # multitascing decorator library | |
| import threading | |
| class Thread(object): | |
| def __init__(self): | |
| self.threads = [] | |
| def __call__(self, f): | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env python3 | |
| import os | |
| import sys | |
| from subprocess import call | |
| # just temporary file name | |
| temphtml = '12341dj823ddd2.html' | |
| # orgMode file | 
  
    
      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
    
  
  
    
  | # clear disk sdx | |
| # dd if=/dev/zero |pv|dd of=/dev/sdb bs=64K | |
| dd if=/dev/zero of=/dev/sdb bs=4M | |
| # write image to disk | |
| dd if=/path/to/your/isofile of=/your/usb/disk bs=4M | 
  
    
      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
    
  
  
    
  | from flask import Flask | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def main(): | |
| return 'hello world' | |
| if __name__ == "__main__": | |
| context = ('./domain.crt', './domain.key') | 
  
    
      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
    
  
  
    
  | Format with vFat FileSystem | |
| $ sudo mkfs.vfat /dev/sdc1 | |
| Format with NTFS FileSystem | |
| $ sudo mkfs.ntfs /dev/sdc1 | |
| Format with EXT4 FileSystem | |
| $ sudo mkfs.ext4 /dev/sdc1 | 
NewerOlder