Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
#!/bin/sh | |
# Install Zsh + Oh My Zsh + Powerlevel10k theme (macOS & Linux) | |
# run: sh -c "$(curl -fsSL "$(echo "$(curl -s "https://api.github.com/gists/254e58bd87009963b3f58405d75cbe6c")" | grep -o '"raw_url": *"[^"]*"' | cut -d'"' -f4)")" | |
# Remove installations + configurations | |
rm -f ~/.p10k.zsh | |
rm -rf -- ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
sh ~/.oh-my-zsh/tools/uninstall.sh -y | |
sudo chsh -s $(which bash) |
import axios, { AxiosError } from "axios"; | |
import { GetServerSidePropsContext } from "next"; | |
import Router from "next/router"; | |
const isServer = () => { | |
return typeof window === "undefined"; | |
} | |
let accessToken = ""; | |
let context = <GetServerSidePropsContext>{}; |
import 'package:bloc/bloc.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
void main() => runApp(BlocProvider<TestBloc>( | |
create: (c) => TestBloc(), | |
child: MyApp(), | |
)); | |
class MyApp extends StatelessWidget { |
### Test on https://github.com/yousseb/meld/releases/tag/osx-20 | |
### OSX - 3.21.0 (r4) Sonoma | |
#!/bin/zsh | |
#Fix libpng16.16.dylib not found | |
install_name_tool -change /usr/local/opt/libpng/lib/libpng16.16.dylib @executable_path/../Frameworks/libpng16.16.dylib /Applications/Meld.app/Contents/Frameworks/libfreetype.6.20.0.dylib | |
#Fix libbrotlidec.1.dylib not found | |
install_name_tool -change /usr/local/opt/brotli/lib/libbrotlidec.1.dylib @executable_path/../Frameworks/libbrotlidec.1.dylib /Applications/Meld.app/Contents/Frameworks/libfreetype.6.20.0.dylib |
#!/usr/bin/env python3 | |
# Поток простейший. Очередь отсутствует. | |
data = {"lambda": 0.95, "tsred": 1, "mu": 1, "m": 0 } | |
def setRo(data): | |
data["ro"] = data["lambda"] / data["mu"] |
<?php | |
//class docs: http://www.orderingdisorder.com/aws/ses/ | |
require_once('ses.php'); | |
//get credentials at http://aws.amazon.com My Account / Console > Security Credentials | |
$ses = new SimpleEmailService('ACCESSkeyID', 'SECRETaccessKEY', 'eu-west-1', 'email.eu-west-1.amazonaws.com'); | |
//print_r($ses->listVerifiedEmailAddresses()); |
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
Description | Syntax |
---|---|
Get the length of a string | ${#VARNAME} |
Get a single character | ${VARNAME[index]} |