Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: iAtYJ4HpUVfIUoNnif1DA
package main | |
import ( | |
"net/http" | |
"github.com/go-playground/validator/v10" | |
"github.com/labstack/echo/v4" | |
) | |
type UserDetail struct { |
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: iAtYJ4HpUVfIUoNnif1DA
docker run -it --rm --name containerName -p 80:80 --log-driver json-file --log-opt tag="{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}" imageName:imageTag |
import requests | |
from time import time | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
now = time() | |
urls = ['https://linggar.asia', 'https://detik.com', 'https://kompas.com'] | |
def download_page(url): | |
return requests.get(url).links |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import requests | |
import json | |
import base64 | |
def new_decoder(encoded): | |
equalsigns = '=' * int(encoded[-1]) |
#!/bin/bash | |
# This script is for rebuilding the virtualenv when using virtualenvwrapper | |
# Sometimes the virtualenv is broken after upgrading the python version | |
# Inspired from https://gist.github.com/pujianto/7df2413d64480f7797e1f0c434841283 | |
# | |
# Usage: | |
# $ ./venv_upgrade.sh | |
# Input your virtualenvs base directory then select the virtualenv you want to rebuild | |
if [ "`command -v pip`" == "" ]; then |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
autocrlf = input | |
[rerere] | |
enabled = 1 | |
autoupdate = 1 | |
[push] | |
default = matching |
# forward from windows to wsl | |
netsh interface portproxy add v4tov4 listenport=8000 listenaddress=0.0.0.0 connectport=8000 connectaddress=127.0.0.1 | |
# remove forwarding | |
netsh interface portproxy delete v4tov4 listenport=8000 listenaddress=0.0.0.0 |
# add to first column for matching purpose (lower char), $3 is key to be matched | |
cat first.csv | awk -F"," 'BEGIN { OFS = "," }; {$1=tolower($3) OFS $1; print}' > firstWithLow.csv | |
# remove match line by first column | |
awk -F"," 'NR==FNR{a[$1]++;next} !(a[$1])' exclude_list.csv master_file.csv > outfile.csv | |
# remove first column | |
cat outfile.csv | cut -d"," -f2- > outfileclean.csv |
sqlcmd -S localhost -U SA -W -d db_name -h -1 -Q "SET NOCOUNT ON;select * from table_name" -o "file_name.csv" -s"," -w 10000 |