Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

Andreas Galazis agalazis

🌴
On vacation
View GitHub Profile
View gist:5a75570b0e78328636b944b873900caf
git for-each-ref --sort=taggerdate --format '%(tag)%(taggerdate)' | grep 2020 |wc -l
@agalazis
agalazis / ptgd sites.txt
Created Oct 27, 2019
Put the glass down sites...
View ptgd sites.txt
https://blogs.dropbox.com/tech/
http://www.bash.org/?latest
http://www.commitstrip.com/en/?
https://www.monkeyuser.com/
https://devrant.com/search?term=joke&sort=algo
https://devdojo.com/fun
https://www.codemopolitan.com/
https://thecodinglove.com/
View gist:c522a4e0dd6e6205d07fe7827d88e799
yes yes |for d in ./*/ ; do (cd "$d" &&terraform init && terraform 0.12upgrade ); done
@agalazis
agalazis / postman_fc29_install.sh
Created May 4, 2019 — forked from udomsak/postman_fc29_install.sh
Install postman on Fedora core 29 - Dec 2018
View postman_fc29_install.sh
#!/bin/bash
wget https://dl.pstmn.io/download/latest/linux64 -O postman-linux-x64.tar.gz
sudo tar xvzf postman-linux-x64.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/bin/postman
cat << EOF > ~/.local/share/applications/postman2.desktop
[Desktop Entry]
Name=Postman
GenericName=API Client
View gist:ef3ae658c416ecfbf3e9d5544d8dc9bc
create-nx-workspace modulename --npm-scope=@modulename
ng generate lib components
ng generate module atoms --app="components"
ng generate module molecules --app="components"
ng generate module organisms --app="components"
ng generate app hospital-admin --routing
npm i -g @storybook/cli@4.0.0-alpha.8
npm i --save-dev babel-core react react-dom
ng generate component atoms/input-field --app=components
@agalazis
agalazis / python-es6-comparison.md
Created Apr 7, 2018 — forked from revolunet/python-es6-comparison.md
# Python VS ES6 syntax comparison
View python-es6-comparison.md

Python VS ES6 syntax comparison

Python syntax here : 2.7 - online REPL

Javascript ES6 via Babel transpilation - online REPL

Imports

import math
@agalazis
agalazis / best-node-typescript-generators-install.sh
Last active Dec 19, 2017
Best Generators Cheat sheet just the favourites... <3
View best-node-typescript-generators-install.sh
#!/bin/bash
yarn global add generator-express-no-stress-typescript
yarn global add generator-ts-np
@agalazis
agalazis / fedora-26-arm-rpi3-installer.sh
Last active Nov 11, 2017
Script that installs fedora arm on rpi
View fedora-26-arm-rpi3-installer.sh
MEDIA=$1
if [ -z "$MEDIA" ]; then
echo "Please enter media name:"
read MEDIA
fi
[ -z "$MEDIA" ] && printf "[error]: %s\n" "Media optiion is required" >&2 && exit 1 ;
IMAGE="Fedora-Server-armhfp-26-1.5-sda.raw.xz"
TEMP_DIR=$(mktemp -d)
TEMP_IMAGE_FILE_PATH="$TEMP_DIR/$IMAGE"
curl https://download.fedoraproject.org/pub/fedora/linux/releases/26/Server/armhfp/images/$IMAGE -L -o "$TEMP_IMAGE_FILE_PATH"
@agalazis
agalazis / gdbv8.md
Last active Aug 7, 2016
GDB debugging on latest version of node
View gdbv8.md
 gdb attach $(pidof node)
 b v8::internal::Runtime_StackGuard
 print 'v8::Isolate::GetCurrent'()
 -----------------------------
 output: $1=<result>
 ---------------------
print 'v8::Isolate::TerminateExecution'(<result>)
c
@agalazis
agalazis / install.sh
Created Jul 20, 2016 — forked from vodolaz095/install.sh
Little script to help me installing Fedora 23 linux on my home PCs (comment lins you do not need)
View install.sh
#!/bin/sh
echo "Start SSHD service"
systemctl enable sshd
systemctl start sshd
echo "Remove junky programs i hate"
dnf -y remove clipit asunder gnomebaker lxmusic gnumeric osmo pidgin xpad
echo "Upgrade system"