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/sh | |
echo Disabling vpnagentd... | |
sudo launchctl disable system/com.cisco.anyconnect.vpnagentd | |
echo Tearing down vpnagentd... | |
sudo launchctl bootout system /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist | |
echo Deactivating Cisco AnyConnect Socket Filter Extension... | |
/Applications/Cisco/Cisco\ AnyConnect\ Socket\ Filter.app/Contents/MacOS/Cisco\ AnyConnect\ Socket\ Filter -deactivateExt |
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 interface JestMockWorker { | |
postMessage(message: any, transfer: Transferable[]): void | |
postMessage(message: any, options?: StructuredSerializeOptions): void | |
terminate(): void | |
addEventListener<K extends keyof WorkerEventMap>( | |
type: K, | |
listener: (this: Worker, ev: WorkerEventMap[K]) => any, | |
options?: boolean | AddEventListenerOptions, | |
): void | |
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): 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
Show hidden characters
{ | |
"redux-interfaces": { | |
"scope": "typescript", | |
"prefix": "redux-interfaces", | |
"body": [ | |
"export interface I$1OwnProps {", | |
"", | |
"}", | |
"", | |
"export interface I$1DispatchProps {", |
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
configUrl=/home/shiningfinger/scripts/agromarket/dzorov_stage.conf | |
podId=`kubectl --kubeconfig=$configUrl get pods --namespace=test$1 | grep -oP 'front-[\w\-]*'` | |
kubectl --kubeconfig=$configUrl logs $podId --container=front --follow=true --namespace=test$1 |
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
webpackProcessId=`sudo netstat -nptl | grep -oP '\d*(?=/webpack)'` | |
nodeProcessId=`sudo netstat -nptl | grep -oP '\d*(?=/node)'` | |
if [ $webpackProcessId ]; then | |
echo "Убил вебпак лайврелоад $webpackProcessId" | |
sudo kill -9 $webpackProcessId | |
fi | |
if [ $nodeProcessId ]; then |
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
currentBranch=`git branch --show-current` | |
echo "Текущая ветка $currentBranch" | |
echo "Ребейз на $1. $currentBranch~$2" | |
git rebase --onto $1 $currentBranch~$2 $currentBranch |
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
function insertStyles() { | |
const style = document.createElement('style'); | |
const initialScale = 0.4; | |
style.innerHTML = ` | |
portal { | |
position:fixed; | |
width: 100%; | |
height: 100%; | |
opacity: 0; | |
transition: |
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
[alias] | |
st = status | |
co = commit -m | |
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short | |
setpush = "!f () { git push -u origin $1; }; f" | |
nbr = "!f () { git ch -b feature/$@; }; f" | |
alias = "!f() { git config --global alias.\"$1\" \"$2\"; }; f" | |
br = branch | |
ch = checkout | |
eat = commit --amend -m |
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
/** | |
* Responsive tables with text-shadow | |
* Pros: No markup changes, works with normal table markup, no content duplication | |
* Cons: Need to know max number of rows, doesn't work with all styles | |
*/ | |
@media (max-width: 600px) { | |
tr, td, th, thead, tbody, table { | |
display: block; | |
} |