This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ strace -yy flatpak -vv --user update | |
execve("/usr/bin/flatpak", ["flatpak", "-vv", "--user", "update"], 0x7ffe9b6e7900 /* 50 vars */) = 0 | |
brk(NULL) = 0x5584a1cd4000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3</etc/ld.so.cache> | |
fstat(3</etc/ld.so.cache>, {st_mode=S_IFREG|0644, st_size=241778, ...}) = 0 | |
mmap(NULL, 241778, PROT_READ, MAP_PRIVATE, 3</etc/ld.so.cache>, 0) = 0x7f3618a8e000 | |
close(3</etc/ld.so.cache>) = 0 | |
openat(AT_FDCWD, "/usr/lib/libappstream-glib.so.8", O_RDONLY|O_CLOEXEC) = 3</usr/lib/libappstream-glib.so.8.0.10> | |
read(3</usr/lib/libappstream-glib.so.8.0.10>, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320F\1\0\0\0\0\0"..., 832) = 832 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ flatpak update | |
Looking for updates... | |
Installing: org.gtk.Gtk3theme.Adapta-Eta/x86_64/3.22 from flathub | |
[###### ] Downloading: 83.4 kB/348.1 kB | |
Warning: Failed to install org.gtk.Gtk3theme.Adapta-Eta/x86_64/3.22: While pulling runtime/org.gtk.Gtk3theme.Adapta-Eta/x86_64/3.22 from remote flathub: Writing content object: open(O_TMPFILE): Permission denied | |
Updating: org.kde.Platform/x86_64/5.10 from flathub | |
[####################] Downloading: 92.3 MB/92.3 MB (5.4 MB/s) | |
Warning: Failed to update org.kde.Platform/x86_64/5.10: While pulling runtime/org.kde.Platform/x86_64/5.10 from remote flathub: Writing content object: open(O_TMPFILE): Permission denied | |
Installing: org.kde.Platform.Locale/x86_64/5.10 from flathub | |
[########## ] Downloading: 12.5 MB/26.4 MB (6.3 MB/s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
ruby '>=2.4.1' | |
gem 'rails', '~> 5.1.4' | |
gem 'coffee-rails', '~> 4.2' | |
gem 'pg', '~> 0.18' | |
# Spree shop gems | |
gem 'spree', '~> 3.3.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process 8014 (DyingLightGame) of user 1000 dumped core. | |
Stack trace of thread 8014: | |
#0 0x00007faf316671d5 __run_exit_handlers (libc.so.6) | |
#1 0x00007faf316672ea exit (libc.so.6) | |
#2 0x00000000004427b5 _Z21SignalCallbackHandleri (DyingLightGame) | |
#3 0x00007faf316646f0 __restore_rt (libc.so.6) | |
#4 0x00007faf333ed0ef _ZN12CTextManager10InitializeEv (/mnt/sdc2/SteamLibrary/steamapps/common/Dying Light/libengine.so) | |
#5 0x00007faf333ed240 _Z13CreateTextMgrv (/mnt/sdc2/SteamLibrary/steamapps/common/Dying Light/libengine.so) | |
#6 0x00007faf333dab2c _ZN9CRenderer13LoadResourcesEv (/mnt/sdc2/SteamLibrary/steamapps/common/Dying Light/libengine.so) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Family: 0x6 | |
CPU Model: 0x3c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html ng-app="spring-websocket"> | |
<head> | |
<title>Hello WebSocket</title> | |
<base href="/"> | |
<title>Index</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta charset="UTF-8" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" /> | |
<link rel="stylesheet" href="css/app.css" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Burrow < ActiveRecord::Base | |
belongs_to :user | |
default_scope -> { order('created_at DESC') } | |
validates :user_id, presence: true | |
validates :book_id, presence: true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BorrowsController < ApplicationController | |
before_action :signed_in_user, only: [:index,:edit,:update, :destroy] | |
before_action :admin_user, only: :destroy | |
def index | |
@borrow = current_user.borrows.build | |
end | |
def show | |
@borrow = Borrow.find(params[:id]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% provide(:title, "Edit movie") %> | |
<p class="content"> | |
<p class="text"> | |
Edit your account information here: | |
</p> | |
<%= form_for :movie do |f| %> | |
<div class="forms"> | |
<%= f.text_field :name, placeholder: "Name of the movie..." %> | |
<%= f.text_area :description, placeholder: "Describe the movie..." %> | |
<%= f.text_field :year, placeholder: "When was it released..." %> |
NewerOlder