Skip to content

Instantly share code, notes, and snippets.

View sainad2222's full-sized avatar
🎆
Open to contribute

Sainath Singineedi sainad2222

🎆
Open to contribute
  • epiFi
  • Bangalore
View GitHub Profile
@unrooted
unrooted / initSystemsCheatSheet.md
Created December 31, 2020 11:58
init systems cheat sheet

Manage services in systemd, openRC and runit

systemd

  • list all services: systemctl list-unit-files
  • list running services status: systemctl list-units
  • list failed services: systemctl --failed
  • list available services: systemctl --all
  • start a service: systemctl start [SERVICE_NAME]
  • stop a service: systemctl stop [SERVICE_NAME]
@blattmann
blattmann / Git: Empty branch.md
Last active October 9, 2023 22:40
Git: Create empty branch

Replace empty-branch with your desired branch name.

git checkout --orphan empty-branch

Then you can remove all the files you'll have in the staging area (so that they don't get committed):

git rm -rf .

At this point you have an empty branch, on your machine.

@ikegami-yukino
ikegami-yukino / google_login.py
Created June 12, 2015 09:26
Automatically Google login by selenium
mail_address = ''
password = ''
from selenium import webdriver
UA = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0'
PHANTOMJS_ARG = {'phantomjs.page.settings.userAgent': UA}
driver = webdriver.PhantomJS(desired_capabilities=PHANTOMJS_ARG)
url = 'https://www.google.com/accounts/Login?hl=ja&continue=http://www.google.co.jp/'
@tuxfight3r
tuxfight3r / vim-shortcuts.md
Last active May 3, 2024 05:11
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)