sudo pacman-mirrors --geoip && sudo pacman -Syyu
https://wiki.archlinux.org/title/Pacman#Enabling_parallel_downloads
| using (var imageData = NSData.FromStream(myStream)) | |
| using (var image = UIImage.LoadFromData(imageData)) | |
| { | |
| myUiImageView.Image = image; | |
| } |
| [*.{appxmanifest,asax,ascx,aspx,build,cs,cshtml,dtd,fs,fsi,fsscript,fsx,master,ml,mli,nuspec,razor,resw,resx,skin,vb,xaml,xamlx,xoml,xsd}] | |
| indent_style=space | |
| indent_size=4 | |
| tab_width=4 | |
| trim_trailing_whitespace=true | |
| insert_final_newline=true | |
| charset=utf-8 | |
| end_of_line=lf |
| use dotfiles |
sudo pacman-mirrors --geoip && sudo pacman -Syyu
https://wiki.archlinux.org/title/Pacman#Enabling_parallel_downloads
| class Pagination<T> { | |
| Pagination({ | |
| this.page, | |
| this.perPage, | |
| this.total, | |
| this.totalPages, | |
| this.collection, | |
| }); | |
| int page; |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>destination</key> | |
| <string>upload</string> | |
| <key>method</key> | |
| <string>app-store</string> | |
| <key>teamID</key> | |
| <string>MyTeamID</string> <!-- your team ID, something like "AB12C345DE" --> |
| #!/bin/sh | |
| current_branch=$(git rev-parse --abbrev-ref HEAD) | |
| push_command=$(ps -ocommand= -p $PPID) | |
| is_destructive='force|delete|\-f' | |
| confirm_destructive_action(){ | |
| read -p 'Are you sure you want to push to "'$current_branch'" ? (y/n): ' -n 1 -r < /dev/tty |
rubocop-daemon gem (https://github.com/fohte/rubocop-daemon#installation):gem 'rubocop-daemon', require: falserubocop-daemon-wrapper (https://github.com/fohte/rubocop-daemon#more-speed):curl https://raw.githubusercontent.com/fohte/rubocop-daemon/master/bin/rubocop-daemon-wrapper -o /tmp/rubocop-daemon-wrapper
sudo mkdir -p /usr/local/bin/rubocop-daemon-wrapper| class ApplicationController < ActionController::Base | |
| include SetCurrentRequestDetails | |
| include SetCurrentTimeZone | |
| include Authenticate | |
| include ForgeryProtection | |
| include ErrorResponses | |
| include SetSentryUser |