git worktree add --detach <worktree-path> <branch-name>
git worktree add --detach <worktree-path> <remote-name>/<branch-name>
git worktree add --detach
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.4.22 <0.9.0; | |
library console { | |
address constant CONSOLE_ADDRESS = | |
0x000000000000000000636F6e736F6c652e6c6f67; | |
function _sendLogPayloadImplementation(bytes memory payload) internal view { | |
address consoleAddress = CONSOLE_ADDRESS; | |
/// @solidity memory-safe-assembly |
image: atlassian/default-image:3 | |
pipelines: | |
branches: | |
develop: | |
- step: | |
name: Deploy to GCP | |
caches: | |
- docker | |
script: |
FROM node:lts-alpine3.18 | |
WORKDIR /app | |
COPY package.json . | |
RUN yarn | |
COPY . . | |
RUN yarn build | |
EXPOSE 3000 | |
CMD [ "yarn", "start:prod" ] |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Facades\Blade; | |
use Illuminate\Support\ServiceProvider; | |
class JsTranslationsServiceProvider extends ServiceProvider | |
{ | |
public function register(): void |
# Node Js | |
curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - | |
sudo yum install nodejs | |
node --version | |
npm --version | |
# Redis |
export function decode(querystring: string): object { | |
function parseValue(value: string): any { | |
if (value === 'TRUE') return true; | |
if (value === 'FALSE') return false; | |
return isNaN(Number(value)) ? value : Number(value); | |
} | |
function dec(list: any[], isArray = false): object { | |
let obj: any = isArray ? [] : {}; |
import { defineConfig } from 'vite'; | |
import laravel from 'laravel-vite-plugin'; | |
export default defineConfig({ | |
server: { | |
https: { | |
key: "/opt/homebrew/etc/httpd/certs/syanat-app.test-key.pem", | |
cert: "/opt/homebrew/etc/httpd/certs/syanat-app.test.pem", | |
}, | |
host: 'syanat-app.test', |
function fallbackCopyTextToClipboard(text) { | |
var textArea = document.createElement("textarea"); | |
textArea.value = text; | |
// Avoid scrolling to bottom | |
textArea.style.top = "0"; | |
textArea.style.left = "0"; | |
textArea.style.position = "fixed"; | |
document.body.appendChild(textArea); |
SET @target_table = '`klame_new`.`url`'; | |
SET @source_table = '`klame_url`.`url`'; | |
SELECT GROUP_CONCAT(column_name) | |
FROM INFORMATION_SCHEMA.COLUMNS a | |
WHERE a.TABLE_NAME = 'url' | |
AND a.TABLE_SCHEMA = 'klame_url' | |
AND a.COLUMN_NAME IN ( | |
SELECT b.COLUMN_NAME | |
FROM INFORMATION_SCHEMA.COLUMNS b |