Skip to content

Instantly share code, notes, and snippets.

View ianlikono's full-sized avatar
🎯
Focusing

Ian Likono ianlikono

🎯
Focusing
View GitHub Profile
@ianlikono
ianlikono / steps
Created April 10, 2021 11:42
roomPage
‎‎​
@ianlikono
ianlikono / 1. restartapache.sh
Last active April 12, 2021 15:18
Restart apache cron
#!/bin/bash
SERVICENAME="apache2"
STATUS=$? # return value is 0 if running
systemctl is-active --quiet $SERVICENAME
function checkStatus() {
:: Chocolatey install script
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
:: Install all the packages
:: -fy force & confirm yes for any prompt during the install process
:: choco install <package_name> repeats for all the packages you want to install
:: Reference - https://chocolatey.org/docs/commandsinstall
:::::::::::::::::::: Open Source Packages ::::::::::::::::::::
:: Batch Script Created by FreeBooter.
@Echo Off & Cls
:: Check if batch script executed with administrators privilege.
Call :IsAdmin
:: Check version of the Windows OS.
Reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductName | find /i "Windows XP" >Nul
If Not Errorlevel 1 (
@ianlikono
ianlikono / PowerShell Customization.md
Created July 2, 2020 01:24 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@ianlikono
ianlikono / terminal.json
Created October 31, 2019 00:11
windows terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
//styled-components
{
"styled components": {
"prefix": "scc",
"body": [
"",
"export const ${1: Name} = styled.${2: property}`",
" ",
"`;",
@ianlikono
ianlikono / extensions
Last active March 23, 2019 13:45
vscode extension
2gua.rainbow-brackets
angryobject.react-pure-to-class-vscode
apollographql.vscode-apollo
be5invis.vscode-custom-css
burkeholland.react-food-truck
burkeholland.simple-react-snippets
capaj.vscode-exports-autocomplete
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
cmstead.jsrefactor
@ianlikono
ianlikono / settings.json
Last active March 31, 2021 02:32
vscode settings
{
"workbench.colorTheme": "Cyberpunk",
// The Cursive font is operator Mono, it's $200 and you need to buy it to get the cursive
"editor.fontFamily": "Victor Mono",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"powermode.enabled": true,
"editor.lineHeight": 25,
"emmet.includeLanguages": {
"javascript": "javascriptreact",
@ianlikono
ianlikono / .eslintrc
Created January 7, 2018 01:49 — forked from radiovisual/.eslintrc
React Native AirBnB ESLint Config
{
"parser": "babel-eslint",
"plugins": [
"react",
"react-native"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true