Skip to content

Instantly share code, notes, and snippets.

View cawwot's full-sized avatar

Ian Spooner cawwot

View GitHub Profile
@vitalyisaev2
vitalyisaev2 / personal_access_token.py
Last active April 26, 2024 05:02
Script for obtaining Gitlab API Personal Access Token
#!/usr/bin/python3
"""
Script that creates Personal Access Token for Gitlab API;
Tested with:
- Gitlab Community Edition 10.1.4
- Gitlab Enterprise Edition 12.6.2
- Gitlab Enterprise Edition 13.4.4
"""
import sys
import requests
@ducas
ducas / Set-LocalAccountPassword.ps1
Last active January 19, 2018 15:27
Change a local user account's password using PowerShell
$Username = "su"
$Password = "password"
$adsi = [ADSI]"WinNT://$env:COMPUTERNAME"
$existing = $adsi.Children | where {$_.SchemaClassName -eq 'user' -and $_.Name -eq $Username }
if ($existing -eq $null) {
Write-Error "User $Username does not exist"
return
}
@lirenlin
lirenlin / gist:9892945
Last active April 21, 2024 17:27
i3 wm, hide window title bar
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname