Snippets Collections
curl https://ollama.ai/install.sh | sh
$ python -c 'import sys; print(sys.path)'
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']

$ pip --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
BeautifulSoup==3.2.0
Django==1.3
Fabric==1.2.0
Jinja2==2.5.5
PyYAML==3.09
Pygments==1.4
SQLAlchemy==0.7.1
South==0.7.3
amqplib==0.6.1
anyjson==0.3
...
/**
 * 定制接口
 * @param opts 定制内容
 */
setShareInfo({
    title:          '父爱,在你看不到的地方', // 分享标题
    summary:        '父爱如山,感觉不到只因身在此山中', // 分享内容
    pic:            'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png', // 分享图片
    url:            'http://qzs.qzone.qq.com/qzone/qzact/act/2015/father-day-m/index.html', // 分享链接
    // 微信权限验证配置信息,若不在微信传播,可忽略
    WXconfig: {
        swapTitleInWX: true, // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)
        appId: appId, // 公众号的唯一标识
        timestamp: timestamp, // 生成签名的时间戳
        nonceStr: nonceStr, // 生成签名的随机串
        signature: signature // 签名
    }
});
require(['http://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js'], function(setShareInfo) {
    setShareInfo({
        title:          '父爱,在你看不到的地方',
        summary:        '父爱如山,感觉不到只因身在此山中',
        pic:            'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png',
        url:            'http://qzs.qzone.qq.com//qzone/qzact/act/2015/father-day-m/index.html',
        WXconfig:       {
            swapTitleInWX: true,
            appId: '',
            timestamp:'',
            nonceStr: '',
            signature: ''
        }
    });
});
require(['http://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js'], function(setShareInfo) {
    setShareInfo({
        title:          '父爱,在你看不到的地方',
        summary:        '父爱如山,感觉不到只因身在此山中',
        pic:            'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png',
        url:            'http://qzs.qzone.qq.com//qzone/qzact/act/2015/father-day-m/index.html',
        WXconfig:       {
            swapTitleInWX: true,
            appId: '',
            timestamp:'',
            nonceStr: '',
            signature: ''
        }
    });
});
mysql> help

List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
?         (\?) Synonym for `help'.
clear     (\c) Clear the current input statement.
connect   (\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter.
edit      (\e) Edit command with $EDITOR.
ego       (\G) Send command to mysql server, display result vertically.
exit      (\q) Exit mysql. Same as quit.
go        (\g) Send command to mysql server.
help      (\h) Display this help.
nopager   (\n) Disable pager, print to stdout.
notee     (\t) Don't write into outfile.
pager     (\P) Set PAGER [to_pager]. Print the query results via PAGER.
print     (\p) Print current command.
prompt    (\R) Change your mysql prompt.
quit      (\q) Quit mysql.
rehash    (\#) Rebuild completion hash.
source    (\.) Execute an SQL script file. Takes a file name as an argument.
status    (\s) Get status information from the server.
system    (\!) Execute a system shell command.
tee       (\T) Set outfile [to_outfile]. Append everything into given
               outfile.
use       (\u) Use another database. Takes database name as argument.
charset   (\C) Switch to another charset. Might be needed for processing
               binlog with multi-byte charsets.
warnings  (\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.
resetconnection(\x) Clean session context.
query_attributes Sets string parameters (name1 value1 name2 value2 ...)
for the next query to pick up.
ssl_session_data_print Serializes the current SSL session data to stdout 
or file.

For server side help, type 'help contents'
docker-compose down
docker-compose up -d
100% — FF

95% — F2

90% — E6

85% — D9

80% — CC

75% — BF

70% — B3

65% — A6

60% — 99

55% — 8C

50% — 80

45% — 73

40% — 66

35% — 59

30% — 4D

25% — 40

20% — 33

15% — 26

10% — 1A

5% — 0D

0% — 00
sudo apt update
cd ~/Downloads/
wget http://archive.ubuntu.com/ubuntu/pool/universe/n/nitroshare/nitroshare_0.3.3-1_amd64.deb
sudo apt install ./nitroshare/nitroshare_0.3.3-1_amd64.deb
C:\Program Files\Vivaldi\Application\[version]\resources\vivaldi\style\custom.css
--flag-switches-begin --debug-packed-apps --silent-debugger-extension-api --flag-switches-end
@echo off
color f0
:: overwrite your program name after the '=' ::
set ProgramNameHere=ProgramNameHere
goto start
:start
cd/
cd users
cd %username%
cd desktop
md %ProgramNameHere%
:: overwrite your file path on the 'DATA' ::
:: overwrite your file name on the 'file1', 'file2'...
:: overwritw your file name after the 'extracting'.
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file1.txt
echo extracting file 1
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file2.txt
echo extracting file 2
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file3.txt
echo extracting file 3
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file4.txt
echo extracting file 4
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file5.txt
echo extracting file 5
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file6.txt
echo extracting file 6
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file7.txt
echo extracting file 7
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file8.txt
echo extracting file 8
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file9.txt
echo extracting file 9
ping localhost>nul
echo DATA>>C:\Users\%Username%\Desktop\%programNameHere%\file10.txt
echo extracting file 10
ping localhost>nul
goto exit

:exit
exit
# Created by https://www.gitignore.io/api/laravel

### Laravel ###
vendor/
node_modules/
npm-debug.log

# Laravel 4 specific
bootstrap/compiled.php
app/storage/

# Laravel 5 & Lumen specific
public/storage
public/hot
storage/*.key
.env.*.php
.env.php
.env
Homestead.yaml
Homestead.json

# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
.rocketeer/
Start-Process powershell.exe -verb runAs -ArgumentList '-NoExit', '-Command', 'cd D:\folder'
<?php
function factorial ($number, $factorial = 1) {
    if ($number < 0) {
        throw new InvalidArgumentException('Number cannot be less than zero (0)');
    }
    if ($number == 0) {
        return $factorial;
    }
    else {
        return factorial($number - 1, $factorial * $number);
    }
}
star

Wed Jan 31 2024 17:08:51 GMT+0000 (Coordinated Universal Time) https://ollama.ai/download/linux

#none
star

Thu Feb 16 2023 22:48:54 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/7225900/how-can-i-install-packages-using-pip-according-to-the-requirements-txt-file-from

#none
star

Thu Feb 16 2023 22:47:24 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/7225900/how-can-i-install-packages-using-pip-according-to-the-requirements-txt-file-from

#none
star

Tue Nov 08 2022 08:36:02 GMT+0000 (Coordinated Universal Time) https://www.cnblogs.com/qianduanjingying/p/5150975.html

#none
star

Tue Nov 08 2022 08:35:54 GMT+0000 (Coordinated Universal Time) https://www.cnblogs.com/qianduanjingying/p/5150975.html

#none
star

Tue Nov 08 2022 08:35:46 GMT+0000 (Coordinated Universal Time) https://www.cnblogs.com/qianduanjingying/p/5150975.html

#none
star

Wed Oct 26 2022 09:23:19 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-system

#none
star

Wed Jun 01 2022 00:55:49 GMT+0000 (Coordinated Universal Time) https://dev.mysql.com/doc/refman/8.0/en/mysql-commands.html

#none
star

Sun May 15 2022 16:15:20 GMT+0000 (Coordinated Universal Time) https://docs.azuracast.com/en/user-guide/sftp-server

#none
star

Sun May 15 2022 16:12:35 GMT+0000 (Coordinated Universal Time) https://docs.azuracast.com/en/getting-started/settings

#none
star

Tue Apr 05 2022 04:47:36 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/50081213/how-do-i-use-hexadecimal-color-strings-in-flutter

#none
star

Wed Mar 16 2022 09:18:45 GMT+0000 (Coordinated Universal Time) https://askubuntu.com/questions/1308474/i-need-help-to-install-nitroshare-on-ubuntu-20-04

#none
star

Thu Mar 10 2022 08:44:20 GMT+0000 (Coordinated Universal Time) https://letswp.io/customize-vivaldi-browser-with-custom-css/

#none
star

Thu Mar 10 2022 08:42:26 GMT+0000 (Coordinated Universal Time) https://letswp.io/customize-vivaldi-browser-with-custom-css/

#none
star

Fri Oct 29 2021 15:00:19 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/8954436/making-a-batch-file-to-install-a-program

#none
star

Tue Jul 13 2021 15:08:44 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/25748132/what-to-include-in-gitignore-for-a-laravel-and-phpstorm-project

#none
star

Tue Mar 16 2021 10:01:13 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/43494863/start-process-workingdirectory-as-administrator-does-not-set-location

#none
star

Thu Dec 17 2020 06:56:54 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/64597051/how-to-downgrade-or-install-a-specific-version-of-composer-on-windows

#none
star

Wed Dec 02 2020 05:05:12 GMT+0000 (Coordinated Universal Time) https://www.sitepoint.com/understanding-recursion/

#none

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension