This file contains hidden or 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
export async function getComponents(): Promise<IHandoffComponentNode[]> { | |
const cache = ComponentsCache.getInstance(); | |
if (!cache.hasInitialized) { | |
const components: IHandoffComponentNode[] = []; | |
const totalSteps = figma.root.children.length; | |
let currentStep = 0; | |
for (const page of figma.root.children) { | |
currentStep++; |
This file contains hidden or 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 config from '../config'; | |
import { setDebug } from '../utilities'; | |
const debug = setDebug('bus'); | |
export type FigmaMessage<T extends object = any> = { | |
type: string, | |
payload: T | |
} | |
export type Handler<M extends FigmaMessage = FigmaMessage> = ((payload: M["payload"]) => void); |
This file contains hidden or 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 { | |
simulation, | |
scenario, | |
exec, | |
csv, | |
pause, | |
css, | |
feed, | |
repeat, | |
tryMax, |
This file contains hidden or 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
mysql -u root -p | |
set global net_buffer_length=1000000; --Set network buffer length to a large byte number | |
set global max_allowed_packet=1000000000; --Set maximum allowed packet size to a large byte number | |
SET foreign_key_checks = 0; --Disable foreign key checking to avoid delays,errors and unwanted behaviour | |
source file.sql --Import your sql dump file |
This file contains hidden or 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
SELECT table_name AS "Tables", | |
round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB" | |
FROM information_schema.TABLES | |
WHERE table_schema = "$DB_NAME" | |
ORDER BY (data_length + index_length) DESC; |
This file contains hidden or 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
git log --pretty=format:"[%cr] %ce: %s - %h" --name-status --since=1.weeks |
This file contains hidden or 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 | |
# Lookup multiple zones with dig. Ex cat zones.txt | ./digup.sh | |
while read zone; | |
do | |
echo $zone; | |
dig $zone +short; | |
printf "\n"; | |
done |
This file contains hidden or 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
Show hidden characters
{ | |
// Display file encoding in the status bar | |
"show_encoding": true, | |
"show_line_endings": true, | |
"auto_complete_commit_on_tab": true, | |
"caret_style": "smooth", | |
"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme", | |
"enable_telemetry": false, | |
"font_face": "Inconsolatazi4", | |
"font_size": 23, |
This file contains hidden or 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
UPDATE `wp_options` SET `option_value` = 'a:0:{}' WHERE `wp_options`.`option_name` LIKE 'limit_login_lockouts'; |
This file contains hidden or 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
# | |
# VirtualHost example: | |
# Almost any Apache directive may go into a VirtualHost container. | |
# The first VirtualHost section is used for all requests that do not | |
# match a ServerName or ServerAlias in any <VirtualHost> block. | |
# | |
<VirtualHost *:80> | |
ServerName local.dev | |
ServerAlias *.dev | |
DocumentRoot /Users/ivan/Sites |
NewerOlder