Run rails new --help
to see all of the options you can use to create a new Rails application:
Output for Rails 8+
Usage:
rails COMMAND [options]
You must specify a command:
# Stick this in your home directory and point your Global Git config at it by running: | |
# | |
# $ git config --global core.attributesfile ~/.gitattributes | |
# | |
# See https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more for more details | |
*.c diff=cpp | |
*.h diff=cpp | |
*.c++ diff=cpp | |
*.h++ diff=cpp |
Angular CLI version | Angular version | Node.js version | TypeScript version | |
---|---|---|---|---|
- | 2.x | 6.0.x or later minor version | 2.0.x | |
1.0.6 | 4.x | 6.9.x or later minor version | 2.2.x | |
1.1.3 | 4.x | 6.9.x or later minor version | 2.3.x | |
1.2.7 | 4.x | 6.9.x or later minor version | 2.3.x | |
1.3.2 | 4.2.x or later minor version | 6.9.x or later minor version | 2.4.x | |
1.4.10 | 4.2.x or later minor version | 6.9.x/8.9.x or later minor version | 2.4.x | |
(1.5.6) | 5.0.x | 6.9.x/8.9.x or later minor version | 2.4.x | |
1.5.6 | 5.1.x | 6.9.x/8.9.x or later minor version | 2.5.x | |
1.6.7 | 5.2.x or later minor version | 6.9.x/8.9.x or later minor version | 2.5.x |
html { | |
scroll-behavior: smooth; | |
} | |
@media (prefers-reduced-motion: reduce) { | |
html { | |
scroll-behavior: auto; | |
} | |
} |
#!/bin/bash | |
# Variable DELAYED_JOB_ARGS contains the arguments for delayed jobs for, e.g. defining queues and worker pools. | |
# function that is called when the docker container should stop. It stops the delayed job processes | |
_term() { | |
echo "Caught SIGTERM signal! Stopping delayed jobs !" | |
# unbind traps | |
trap - SIGTERM | |
trap - TERM |
Nextjs in server side to detect device with user agent |
@NgModule({ | |
imports: [OAuthModule.forRoot({...})] // <-- how to use the configuration.json here | |
}) | |
export class AppModule { | |
constructor(@Inject(AppConfig) private readonly appConfig: AppConfiguration) {} // I can inject | |
} |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"copyOnSelect": false, | |
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
// Add custom keybindings to this array. | |
// To unbind a key combination from your defaults.json, set the command to "unbound". | |
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings | |
"keybindings": | |
[ | |
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. |
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
Run rails new --help
to see all of the options you can use to create a new Rails application:
Output for Rails 8+
Usage:
rails COMMAND [options]
You must specify a command:
# Attempt to fix broken network in WSL2.0 | |
$guest_ip = bash -c "/sbin/ifconfig eth0 | egrep -o 'inet [0-9\.]+' | cut -d ' ' -f2" | |
Write-Output "Guest IP IS: $guest_ip" | |
$gateway_ips = Get-NetIPAddress -InterfaceAlias "vEthernet (WSL)" | select IPAddress | |
$gateway_ip = $gateway_ips[1].IPAddress | |
Write-Output "Gateway (local WSL adapter) IP is: $gateway_ip" | |
bash -c "sudo ifconfig eth0 netmask 255.255.240.0" | |
bash -c "sudo ip route add default via $gateway_ip" |