Skip to content

Instantly share code, notes, and snippets.

View glacion's full-sized avatar
😎
Nope

Can Güvendiren glacion

😎
Nope
View GitHub Profile
{
"basics": {
"email": "ahmtcngvndrn@gmail.com",
"label": "DevOps Engineer",
"location": {
"city": "İzmir",
"countryCode": "TR"
},
"name": "Ahmetcan Güvendiren",
"profiles": [
@glacion
glacion / setup.sh
Created February 15, 2020 20:29
Setup an ubuntu server with http and https access on GCP.
#!/bin/bash
# Exit when any command fails
set -e
function log() {
echo "$(tput setaf 2)==> $(tput setaf 7)$@"
}
log 'Checking for SSH key.'
@glacion
glacion / slide.sh
Last active February 8, 2020 14:36
#!/usr/bin/env bash
col=0
line=0
# $1 -> Count
# $2 -> Char
function put_n_chars {
# Read $1 amount of characters from /dev/zero
# Replace them with $2
#!/bin/bash
function print_spinner {
for item in "$@"
do
echo -n "$item" # Print without newline.
sleep 0.2 # Wait 0.2 seconds.
echo -ne "\b" # Erase previous character.
done
}
#!/usr/bin/env bash
date +"%B, %d, %Y"
@glacion
glacion / rename.sh
Last active February 2, 2020 08:34
Bulk Rename
#!/bin/sh
find . -type f -printf "%f\n" | xargs -I@ sh -c "mv @ file-@"
@glacion
glacion / material_solarized_darker.icls
Created November 23, 2018 19:04
Material Solarized Darker
<scheme name="Material Solarized Darker" version="142" parent_scheme="Darcula">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2018-11-23T22:01:58</property>
<property name="ide">idea</property>
<property name="ideVersion">2018.3.0.0</property>
<property name="modified">2018-11-23T22:02:00</property>
<property name="originalScheme">Material Solarized Darker</property>
</metaInfo>
<option name="CONSOLE_FONT_NAME" value="Source Code Pro Semibold" />
@glacion
glacion / Arch-Install-Cheatsheet
Last active December 3, 2017 17:50
Arch Linux installation
#Load keyboard layout.
loadkeys trq
#Establish internet connection through wifi.
wifi-menu
#Establish internet connection through ethernet.
dhcpcd
#Test internet connection.