170 lines
5.8 KiB
HTML
170 lines
5.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>linux | Kitaab</title>
|
|
<meta property="og:title" content="linux | Kitaab">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:description"
|
|
content="config.site_meta_description">
|
|
<meta property="og:site_name" content="Kitaab">
|
|
<meta property="og:url" content="build_url">
|
|
<meta property="og:image" content="build_urlassets/social.png">
|
|
<meta property="og:image:height" content="300">
|
|
<meta property="og:image:width" content="300">
|
|
<meta property="og:image:type" content="image/jpeg">
|
|
<link rel="stylesheet" href="asset/style.css" type="text/css"
|
|
media="screen" title="no title" charset="utf-8">
|
|
<!-- Mastodon stuff should go here
|
|
<meta name="twitter:site" content="config.twitter_name">
|
|
<meta name="twitter:title" content="page_title | config.name_of_site">
|
|
<meta name="twitter:image" content="build_urlassets/social.png">
|
|
<meta name="twitter:image:alt" content="page_title | config.name_of_site">
|
|
--!>
|
|
<link rel="apple-touch-icon" sizes="57x57" href="build_urlassets/apple-icon-57x57.png">
|
|
<link rel="apple-touch-icon" sizes="60x60" href="build_urlassets/apple-icon-60x60.png">
|
|
<link rel="apple-touch-icon" sizes="72x72" href="build_urlassets/apple-icon-72x72.png">
|
|
<link rel="apple-touch-icon" sizes="76x76" href="build_urlassets/apple-icon-76x76.png">
|
|
<link rel="apple-touch-icon" sizes="114x114" href="build_urlassets/apple-icon-114x114.png">
|
|
<link rel="apple-touch-icon" sizes="120x120" href="build_urlassets/apple-icon-120x120.png">
|
|
<link rel="apple-touch-icon" sizes="144x144" href="build_urlassets/apple-icon-144x144.png">
|
|
<link rel="apple-touch-icon" sizes="152x152" href="build_urlassets/apple-icon-152x152.png">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="build_urlassets/apple-icon-180x180.png">
|
|
<link rel="icon" type="image/png" sizes="192x192" href="build_urlassets/android-icon-192x192.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="build_urlassets/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="96x96" href="build_urlassets/favicon-96x96.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="build_urlassets/favicon-16x16.png">
|
|
<meta name="msapplication-TileColor" content="#5927e0">
|
|
<meta name="msapplication-TileImage" content="build_urlassets/ms-icon-144x144.png">
|
|
<meta name="theme-color" content="#5927e0">
|
|
<link rel="canonical" href="Raw">
|
|
<link rel="stylesheet" href="assets/main.css">
|
|
</head>
|
|
|
|
<body class="flow-large container">
|
|
<header>
|
|
<a style='display:flex;padding-top:10px' href="home.html" aria-label="Kitaab">Kitaab</a>
|
|
</header>
|
|
<main>
|
|
<div id='navigation' style="float: right;">
|
|
<nav>
|
|
<h2> <a href='tag_index.html'> Index </a> </h2>
|
|
<ul>
|
|
<li> <a href='recents.html'>recents</a></li>
|
|
|
|
<li> <a href='dev_index.html'>dev</a></li>
|
|
|
|
<li> <a href='way_index.html'>way</a></li>
|
|
|
|
<li> <a href='recipe_index.html'>recipe</a></li>
|
|
|
|
<li> <a href='ops_index.html'>ops</a></li>
|
|
|
|
<li> <a href='blog_index.html'>blog</a></li>
|
|
|
|
<li> <a href='rock_index.html'>rock</a></li>
|
|
|
|
<li> <a href='phil_index.html'>phil</a></li>
|
|
|
|
<li> <a href='story_index.html'>story</a></li>
|
|
|
|
<li> <a href='blog_index.html'>blog</a></li>
|
|
|
|
<li> <a href='untagged_index.html'>untagged</a></li>
|
|
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
<h1> linux </h1>
|
|
<div style='max-width:660px;'>
|
|
<article class="flow">
|
|
|
|
|
|
<a href="dev_index.html">
|
|
dev
|
|
</a>
|
|
|
|
|
|
|
|
<date>1970-01-01 10:00</date>
|
|
|
|
<p>linux tips and tricks</p>
|
|
<p><a href='nixOS.html' >nixOS</a></p>
|
|
<h3>installing an app to the gnome menu</h3>
|
|
<p>add an desktop entry to ~/.local/share/applications/ for desktop entries available to a single user (look in that folder for examples)</p>
|
|
<h3>cron</h3>
|
|
<p>crontab -e to edit the cron file
|
|
cron takes 5 inputs followed by the CMD you wish to run:</p>
|
|
<ul>
|
|
<li><ul>
|
|
<li><ul>
|
|
<li><ul>
|
|
<li><ul>
|
|
<li>ls
|
|
min hour day month week</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<p>the above cron tag will run ls every minute of every day all the time. Hour is in 24hr format. So
|
|
00 00 <em> </em> * ~/scripts/music-pull
|
|
will run music-pull everyday at 12AM</p>
|
|
<p>its generally advisable to schedule these scripts at specific odd times so that they don't clash with other things</p>
|
|
<p>There are also other types of formats:
|
|
@reboot (i've run into trouble with this, as it is only called specifically when the computer is rebooted, not at any boot)</p>
|
|
<h3>ssh copy</h3>
|
|
<p>to copy your ssh key to a new computer run
|
|
ssh-copy-id <a href="mailto:user@server">user@server</a></p>
|
|
<h3>ssh config</h3>
|
|
<p>the ssh config file is truly versatile</p>
|
|
<h3>hamachi</h3>
|
|
<p>stop: /etc/init.d/logmein-hamachi stop
|
|
start: /etc/init.d/logmein-hamachi start</p>
|
|
<h3>git</h3>
|
|
<p>rename a branch:</p>
|
|
<ul>
|
|
<li>git branch -m <old> <new></li>
|
|
</ul>
|
|
<p>pull upstream master changes:</p>
|
|
<ul>
|
|
<li>git checkout master</li>
|
|
<li>git pull <a href="https://hostname/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git">https://hostname/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git</a> BRANCH_NAME</li>
|
|
<li>git merge</li>
|
|
</ul>
|
|
<p>see remote repos:</p>
|
|
<ul>
|
|
<li>git remote -v </li>
|
|
</ul>
|
|
<p>add remote repo:</p>
|
|
<ul>
|
|
<li>git remote add <name> ssh://<user>:<dir/of/remote></li>
|
|
<li>git remote add <name> https://<web.repo.com>:<dir/to/remote></li>
|
|
</ul>
|
|
<p>create a git branch:</p>
|
|
<ul>
|
|
<li>git branch <branch-name> </li>
|
|
</ul>
|
|
<p>checkout a branch:</p>
|
|
<ul>
|
|
<li>git checkout <branch-name></li>
|
|
</ul>
|
|
<p>push to specific branch:</p>
|
|
<ul>
|
|
<li>git push --set-upstream <remote> <branch></li>
|
|
</ul>
|
|
<h3>systemd</h3>
|
|
<h3>theming</h3>
|
|
|
|
</article>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
|
|
</html> |