install packages first:
yay -S xl2tpd strongswan networkmanager-l2tp
ref: https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
def positional_arguments(arg1, arg2, arg3) | |
puts [arg1, arg2, arg3].join(' ') | |
end | |
positional_arguments('Hello', 'Jean Luc', 'Picard') | |
def positional_with_hash(arg, opts = {}) | |
puts [arg, opts[:firstname], opts[:lastname]].join(' ') | |
end |
# Set vi key bindings mode | |
set -g mode-keys vi | |
set -g status-keys vi | |
# Set new panes to open in current directory | |
bind c new-window -c "#{pane_current_path}" | |
bind '"' split-window -c "#{pane_current_path}" | |
bind % split-window -h -c "#{pane_current_path}" | |
# List of plugins |
import bpy | |
from mathutils import Color | |
bl_info = { | |
'name': 'Select By Color', | |
'author': 'Tamas Kemenczy, updated for 2.8 by Piotr Zgodziński', | |
'version': (0, 2), | |
'blender': (2, 80, 3), | |
'location': 'View3D > Specials > Select By Color', | |
'description': 'Select all faces with the same vertex color of the selected face', |
install packages first:
yay -S xl2tpd strongswan networkmanager-l2tp
ref: https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# app/jobs/example_job.rb | |
class ExampleJob < ActiveJob::Base | |
queue_as :default | |
rescue_from(ActiveRecord::RecordNotFound) do | |
retry_job wait: 1.minute, queue: :default | |
end | |
def perform(param_1, param_2) |
#!/bin/bash | |
# tunejack.sh uses the TuneIn public API (at opml.radiotime.com) to search for | |
# a radio station, print out its details and try to play it somehow. | |
if [ "$#" -eq 0 ]; then | |
echo "$0: search for a radio station using the TuneIn API" | |
echo "Usage: $0 PATTERN" | |
exit 1 | |
fi |
## | |
## TOKEN/API KEY AUTHENTICATION | |
## This was based on blogger-advanced | |
## Continuing from the class we built this in... | |
## if not already done, you'll need to make an ApiKey table in the DB 'rails g model ApiKey token:string' | |
## | |
# app/controllers/api/v1/articles_controller.rb | |
class Api::V1::ArticlesController < ApplicationController | |
#... |