Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am shifur17 on github.
  • I am promobangla (https://keybase.io/promobangla) on keybase.
  • I have a public key ASA2qPLrfsp2UHoi4shsOGOdsWLqTksZBfbTdgCS09Rwjgo

To claim this, I am signing this object:

View gist:ab9571e4db6f1ccb5955ed72ab64d32e
### Keybase proof
I hereby claim:
* I am kaid007 on github.
* I am kaid007 (https://keybase.io/kaid007) on keybase.
* I have a public key ASD5AKk5q17X_mpBLa0ayZXXUYEoNslGTH81DUKrur71yAo
To claim this, I am signing this object:
@saadjahangir
saadjahangir / PY0101EN-4-1-ReadFile.ipynb
Created Nov 20, 2019
Created on Cognitive Class Labs
View PY0101EN-4-1-ReadFile.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@antonioned
antonioned / scan-repos.sh
Created Nov 20, 2019
Script that uses git secrets command to check fo vulnerabilities in git repos.
View scan-repos.sh
#!/bin/bash
for r in REPO1 REPO2 REPO3
do
cd $r
printf "\n\nName of repo: $r\n\n\n" >> ../repos-results.txt
git secrets --scan >> ../results.txt
printf "\n------------------------------------------------\n" >> ../repos-results.txt
cd ../
done
View install-utility
#!/bin/bash
set -e
############################## DEFAULT PARAMETERS ##############################
# Indicates whether we want to install or remove one or multiple packages
# TODO: Also autoremove can be used, to force additional cleanup
install_remove="install"
View Output path comparison
nix-env failed:
error: while evaluating anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-0-gleber.ewr1.nix.ci/.gc-of-borg-outpaths.nix:44:12, called from undefined position:
while evaluating anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-0-gleber.ewr1.nix.ci/pkgs/top-level/release-lib.nix:121:6, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-0-gleber.ewr1.nix.ci/lib/attrsets.nix:292:43:
while evaluating 'hydraJob' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-0-gleber.ewr1.nix.ci/lib/customisation.nix:166:14, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-0-gleber.ewr1.nix.ci/pkgs/top-level/release-lib.nix:121:14:
while evaluating the attribute 'meta' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-0-gleber.ewr1.nix.ci/lib/customisation.nix:171:24:
while evaluating the attr
View gist:97049ce79970351c57934b34dd9ee652

[공통] 마크다운 markdown 작성법

1. 마크다운에 관하여

1.1. 마크다운이란?

Markdown은 텍스트 기반의 마크업언어로 2004년 존그루버에 의해 만들어졌으며 쉽게 쓰고 읽을 수 있으며 HTML로 변환이 가능하다. 특수기호와 문자를 이용한 매우 간단한 구조의 문법을 사용하여 웹에서도 보다 빠르게 컨텐츠를 작성하고 보다 직관적으로 인식할 수 있다. 마크다운이 최근 각광받기 시작한 이유는 깃헙(https://github.com) 덕분이다. 깃헙의 저장소Repository에 관한 정보를 기록하는 README.md는 깃헙을 사용하는 사람이라면 누구나 가장 먼저 접하게 되는 마크다운 문서였다. 마크다운을 통해서 설치방법, 소스코드 설명, 이슈 등을 간단하게 기록하고 가독성을 높일 수 있다는 강점이 부각되면서 점점 여러 곳으로 퍼져가게 된다.

1.2. 마크다운의 장-단점

1.2.1. 장점

View SwiftUI_010.swift
struct ContentView: View {
var programmingBooks: [ProgrammingBook] = []
var body: some View {
NavigationView {
List(programmingBooks) { programmingBook in
NavigationLink(destination: DetailView(name: programmingBook.name, content: programmingBook.content, imageName: programmingBook.imageName)) {
Image(programmingBook.imageName)
.clipShape(Circle())
@y4rr
y4rr / ublock-resources.txt
Created Nov 20, 2019
ublock-resources.txt
View ublock-resources.txt
# Resources to be used as redirect destinations.
#
# - Each distinct resource entry is separated by an empty line.
# - The first line in a resource entry is: token mime-type[;encoding]
# - All following lines are the data. An empty line signals the end of the
# data.
#
# If the encoding is absent, the data will be converted to base64, and the
# encoding will be set to `;base64`.
@k2135ai
k2135ai / 你所谓的“舒服”,正在暴露你的教养
Created Nov 20, 2019
前言 你是否经常遇到这些令你不快的情景: 劳累一天开车回家,有人却把车停在狭窄的过道挡住去路; 好不容易买到一张双人座靠窗的高铁票,上车发现有人坐在你的座位上,美其名曰“哪里都一样”; 难得空闲在书店安静看书,年轻情侣在旁边嘻笑打骂或是旁若无人大声讲电话; 看场电影,前排观众脱鞋臭气熏天; 你会不会在心里琢磨,不论是对一个人还是对一群人,这种只顾自己舒服和方便的行为真的非常自私,让人难以容忍。
View 你所谓的“舒服”,正在暴露你的教养
**“舒服”的结果,你承担不起**
几年前,单位组织到云台山旅游。
第一天就餐时我们桌上9个人,两天下来人越来越多,开始两个行政同事过来坐,第二天设计部汪主管也跑来我们桌。
我问:“什么情况,咋都跑来啦?你们那桌明明很空啊?”
汪主管说:“没法用语言表达,你们去吃一顿就知道。”
行政部小高立马说:“罗经理,千万别去,肯定吃不下饭。”
You can’t perform that action at this time.