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
set text item delimiters to ASCII character 10 --LF | |
tell application "Spotify" | |
set toot to {} | |
set end of toot to (name of current track) as string | |
set end of toot to (artist of current track) as string | |
set end of toot to "#nowplaying" | |
set the clipboard to toot as string | |
end tell |
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
path = ENV['PATH'].split(':') | |
path.unshift('/sbin') | |
path.unshift('/usr/sbin') | |
path.unshift('/usr/local/sbin') | |
path.unshift('/bin') | |
path.unshift('/usr/bin') | |
path.unshift('/usr/local/bin') | |
path.uniq! | |
ENV['PATH'] = path.join(':') |
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
<?php | |
$gd = imagecreatefromstring( | |
file_get_contents(__DIR__ . '/sample.png') | |
); | |
imagealphablending($gd, false); | |
imagesavealpha($gd, true); | |
// このへんで色々やる。 | |
header('Content-Type: image/png'); |
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
#!/usr/bin/env php | |
<?php | |
$seconds = 0.05; | |
$source = $_SERVER['argv'][1]; | |
$cost = 7; | |
do { | |
$cost ++; | |
$start = microtime(true); | |
$hash = password_hash($source, PASSWORD_DEFAULT, ['cost' => $cost]); | |
$end = microtime(true); |
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
// Commonly used web colors | |
$black: #000000; // Black | |
$white: #ffffff; // White | |
$success-green: #79bd9a; // Padua | |
$error-red: #df405a; // Cerise | |
$warning-red: #ff5050; // Sunset Orange | |
$gold-star: #ca8f04; // Dark Goldenrod | |
// Values from the classic Mastodon UI | |
$classic-base-color: #223322; |
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
@import 'mastodon/mixins'; | |
@import 'bshock/variables'; | |
@import 'fonts/roboto'; | |
@import 'fonts/roboto-mono'; | |
@import 'fonts/montserrat'; | |
@import 'mastodon/reset'; | |
@import 'mastodon/basics'; | |
@import 'mastodon/containers'; | |
@import 'mastodon/lists'; |
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
default: styles/application.scss | |
bshock: styles/bshock.scss |
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
ERROR in ./node_modules/css-loader?{"minimize":true}!./node_modules/postcss-loader/lib?{"sourceMap":true}!./node_modules/resolve-url-loader!./node_modules/sass-loader/lib/loader.js!./app/javascript/styles/bshock.scss | |
Module build failed: | |
@each $lang in $cjk-langs { | |
^ | |
Undefined variable: "$cjk-langs". | |
in /usr/local/www/mastodon/app/javascript/styles/mastodon/landing_strip.scss (line 16, column 20) |
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
local-address=0.0.0.0 | |
allow-from=127.0.0.1,192.168.100.0/24,192.168.101.0/24 | |
forward-zones=kapi.local=127.0.0.1:10053,b-shock.local=192.168.100.175 |
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
daemon=yes | |
master=yes | |
loglevel=9 | |
log-dns-details=on | |
local-address=127.0.0.1 | |
local-port=10053 | |
default-soa-mail=admin.b-shock.co.jp |