Skip to content

Instantly share code, notes, and snippets.

View Wishez's full-sized avatar
😍
Work with love

Filipp Zhuravlev Wishez

😍
Work with love
View GitHub Profile
@Wishez
Wishez / acdisable
Created July 10, 2023 14:38 — forked from jasmas/acdisable
Enable/Disable Cisco AnyConnect Socket Filter Extension on MacOS
#!/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
@Wishez
Wishez / JestMockWorker.ts
Created March 6, 2022 15:58
Worker when using jest with workerloader-jest-transformer
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
{
"redux-interfaces": {
"scope": "typescript",
"prefix": "redux-interfaces",
"body": [
"export interface I$1OwnProps {",
"",
"}",
"",
"export interface I$1DispatchProps {",
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
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
currentBranch=`git branch --show-current`
echo "Текущая ветка $currentBranch"
echo "Ребейз на $1. $currentBranch~$2"
git rebase --onto $1 $currentBranch~$2 $currentBranch
git filter-branch -f --env-filter '
GIT_AUTHOR_NAME="Filipp Zhuravlev"
GIT_AUTHOR_EMAIL="shiningfinger@list.ru"
GIT_COMMITTER_NAME="Filipp Zhuravlev"
GIT_COMMITTER_EMAIL="shiningfinger@list.ru"
' HEAD
function insertStyles() {
const style = document.createElement('style');
const initialScale = 0.4;
style.innerHTML = `
portal {
position:fixed;
width: 100%;
height: 100%;
opacity: 0;
transition:
@Wishez
Wishez / .gitconfig
Last active June 4, 2019 13:08
Collection of git aliases
[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
@Wishez
Wishez / dabblet.css
Created May 26, 2018 18:03
Responsive tables with text-shadow
/**
* 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;
}