- Intel processor
sudo apt-get install msr-tools linux-cpupower lm-sensors
#!/usr/bin/env bash | |
set +x | |
for file in *.mp4; do | |
if [[ $file == *'_new'* ]]; then | |
echo "----Pass file: ${file}----" | |
continue | |
fi |
#!/bin/bash | |
prezto.sh(){ | |
clear | |
sudo apt-get install -y git | |
sudo apt-get update && sudo apt-get install -y zsh | |
# Get prezto | |
git clone --recursive https://github.com/sorin-ionescu/prezto.git ~/.zprezto | |
# Backup zsh config if it exists |
#include <iostream> | |
#include <bitset> | |
using namespace std; | |
int main() | |
{ | |
/* 1) Если мы делаем сдвиг влево для положительного числа, мы можем получить отрицательное число | |
32:00000000000000000000000000000001->1 | |
31:10000000000000000000000000000000->-2147483648 |
$ brew cask install google-cloud-sdk | |
$ gcloud compute instances create reddit-app-2 \ | |
--boot-disk-size=10GB \ | |
--image-family ubuntu-1604-lts \ | |
--image-project=ubuntu-os-cloud \ | |
--machine-type=g1-small \ | |
--tags puma-server \ | |
--metadata-from-file startup-script=install.sh \ | |
--restart-on-failure |